Lines Matching refs:pubkey
73 VbPublicKey *pubkey; in Pack() local
81 pubkey = PublicKeyReadKeyb(infile, algorithm, version); in Pack()
82 if (pubkey) { in Pack()
83 if (0 != PublicKeyWrite(outfile, pubkey)) { in Pack()
87 free(pubkey); in Pack()
108 VbPublicKey *pubkey; in Unpack() local
116 pubkey = PublicKeyRead(infile); in Unpack()
117 if (pubkey) { in Unpack()
119 printf("Algorithm: %" PRIu64 " %s\n", pubkey->algorithm, in Unpack()
120 (pubkey->algorithm < kNumAlgorithms ? in Unpack()
121 algo_strings[pubkey->algorithm] : "(invalid)")); in Unpack()
122 printf("Key Version: %" PRIu64 "\n", pubkey->key_version); in Unpack()
124 PrintPubKeySha1Sum(pubkey); in Unpack()
127 if (0 != PublicKeyWrite(outfile, pubkey)) { in Unpack()
130 free(pubkey); in Unpack()
134 free(pubkey); in Unpack()