Lines Matching defs:infile
49 " --key <infile> RSA key file (.keyb or .pem)\n"
62 "Usage: " MYNAME " %s --unpack <infile>\n"
70 static int Pack(const char *infile, const char *outfile, uint64_t algorithm,
76 if (!infile || !outfile) {
81 pubkey = PublicKeyReadKeyb(infile, algorithm, version);
91 privkey = PrivateKeyReadPem(infile, algorithm);
101 VbExError("Unable to parse either .keyb or .pem from %s\n", infile);
106 static int Unpack(const char *infile, const char *outfile)
111 if (!infile) {
116 pubkey = PublicKeyRead(infile);
118 printf("Public Key file: %s\n", infile);
138 privkey = PrivateKeyRead(infile);
140 printf("Private Key file: %s\n", infile);
160 infile);
167 char *infile = NULL;
185 infile = optarg;
211 infile = optarg;
227 return Pack(infile, outfile, algorithm, version);
229 return Unpack(infile, outfile);