Home
last modified time | relevance | path

Searched refs:secure_hdr (Results 1 – 1 of 1) sorted by relevance

/external/u-boot/tools/
Dkwbimage.c1107 int export_pub_kak_hash(RSA *kak, struct secure_hdr_v1 *secure_hdr) in export_pub_kak_hash() argument
1114 res = kwb_export_pubkey(kak, &secure_hdr->kak, hashf, "KAK"); in export_pub_kak_hash()
1122 struct secure_hdr_v1 *secure_hdr, RSA *csk) in kwb_sign_csk_with_kak() argument
1137 if (export_pub_kak_hash(kak, secure_hdr)) in kwb_sign_csk_with_kak()
1140 if (kwb_import_pubkey(&kak_pub, &secure_hdr->kak, "KAK") < 0) in kwb_sign_csk_with_kak()
1143 if (kwb_export_pubkey(csk, &secure_hdr->csk[csk_idx], NULL, "CSK") < 0) in kwb_sign_csk_with_kak()
1146 if (kwb_sign_and_verify(kak, &secure_hdr->csk, in kwb_sign_csk_with_kak()
1147 sizeof(secure_hdr->csk) + in kwb_sign_csk_with_kak()
1148 sizeof(secure_hdr->csksig), in kwb_sign_csk_with_kak()
1152 if (kwb_verify(kak_pub, &secure_hdr->csk, in kwb_sign_csk_with_kak()
[all …]