Lines Matching refs:sig_alg
129 key->sig_alg = pkey->sig_alg; in vb2_private_key_unpack()
134 if (pkey->sig_alg == VB2_SIG_NONE) { in vb2_private_key_unpack()
238 .sig_alg = key->sig_alg, in vb2_private_key_write()
251 if (key->sig_alg != VB2_SIG_NONE) { in vb2_private_key_write()
297 .sig_alg = VB2_SIG_NONE, in vb2_private_key_hash()
310 .sig_alg = VB2_SIG_NONE, in vb2_private_key_hash()
323 .sig_alg = VB2_SIG_NONE, in vb2_private_key_hash()
337 enum vb2_signature_algorithm sig_alg) in vb2_public_key_alloc() argument
340 uint32_t key_data_size = vb2_packed_key_size(sig_alg); in vb2_public_key_alloc()
354 key->sig_alg = sig_alg; in vb2_public_key_alloc()
383 enum vb2_signature_algorithm sig_alg; in vb2_public_key_read_keyb() local
391 for (sig_alg = VB2_SIG_RSA1024; sig_alg <= VB2_SIG_RSA8192; sig_alg++) { in vb2_public_key_read_keyb()
392 if (key_size == vb2_packed_key_size(sig_alg)) in vb2_public_key_read_keyb()
395 if (sig_alg > VB2_SIG_RSA8192) { in vb2_public_key_read_keyb()
400 if (vb2_public_key_alloc(&key, sig_alg)) { in vb2_public_key_read_keyb()
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()
485 key.sig_alg = pubk->sig_alg; in vb2_public_key_pack()
501 if (pubk->sig_alg != VB2_SIG_NONE) { in vb2_public_key_pack()
539 key->sig_alg = VB2_SIG_NONE; in vb2_public_key_hash()