Lines Matching refs:pubkey
80 VbPublicKey *pubkey = 0; in vb1_make_keypair() local
136 pubkey = PublicKeyAlloc(keyb_size, vb1_algorithm, opt_version); in vb1_make_keypair()
137 if (!pubkey) in vb1_make_keypair()
139 memcpy(GetPublicKeyData(pubkey), keyb_data, keyb_size); in vb1_make_keypair()
143 if (0 != PublicKeyWrite(outfile, pubkey)) { in vb1_make_keypair()
153 free(pubkey); in vb1_make_keypair()
162 struct vb2_public_key *pubkey = 0; in vb2_make_keypair() local
216 if (vb2_public_key_alloc(&pubkey, sig_alg)) { in vb2_make_keypair()
231 pubkey_buf = vb2_public_key_packed_data(pubkey); in vb2_make_keypair()
235 if (vb2_unpack_key_data(pubkey, pubkey_buf, keyb_size)) { in vb2_make_keypair()
240 pubkey->hash_alg = opt_hash_alg; in vb2_make_keypair()
241 pubkey->version = opt_version; in vb2_make_keypair()
242 memcpy((struct vb2_guid *)pubkey->guid, &opt_guid, sizeof(opt_guid)); in vb2_make_keypair()
243 if (opt_desc && vb2_public_key_set_desc(pubkey, opt_desc)) { in vb2_make_keypair()
250 if (vb2_public_key_write(pubkey, outfile)) { in vb2_make_keypair()
263 vb2_public_key_free(pubkey); in vb2_make_keypair()