Lines Matching refs:pubk
458 const struct vb2_public_key *pubk) in vb2_public_key_pack() argument
472 key.c.desc_size = vb2_desc_size(pubk->desc); in vb2_public_key_pack()
475 if (pubk->sig_alg != VB2_SIG_NONE) { in vb2_public_key_pack()
476 key.key_size = vb2_packed_key_size(pubk->sig_alg); in vb2_public_key_pack()
484 key.key_version = pubk->version; in vb2_public_key_pack()
485 key.sig_alg = pubk->sig_alg; in vb2_public_key_pack()
486 key.hash_alg = pubk->hash_alg; in vb2_public_key_pack()
487 key.guid = *pubk->guid; in vb2_public_key_pack()
496 if (pubk->desc && *pubk->desc) { in vb2_public_key_pack()
497 strcpy((char *)(buf + key.c.fixed_size), pubk->desc); in vb2_public_key_pack()
501 if (pubk->sig_alg != VB2_SIG_NONE) { in vb2_public_key_pack()
504 buf32[0] = pubk->arrsize; in vb2_public_key_pack()
505 buf32[1] = pubk->n0inv; in vb2_public_key_pack()
506 memcpy(buf32 + 2, pubk->n, pubk->arrsize * sizeof(uint32_t)); in vb2_public_key_pack()
507 memcpy(buf32 + 2 + pubk->arrsize, pubk->rr, in vb2_public_key_pack()
508 pubk->arrsize * sizeof(uint32_t)); in vb2_public_key_pack()