Searched refs:prik (Results 1 – 4 of 4) sorted by relevance
/external/vboot_reference/tests/ |
D | vb21_host_sig_tests.c | 43 struct vb2_private_key *prik, prik2; in sig_tests() local 62 TEST_SUCC(vb2_private_key_read_pem(&prik, pemfile), "Read private key"); in sig_tests() 63 prik->guid = test_guid; in sig_tests() 64 prik->hash_alg = combo->hash_alg; in sig_tests() 65 prik->sig_alg = combo->sig_alg; in sig_tests() 66 vb2_private_key_set_desc(prik, test_desc); in sig_tests() 78 priks[0] = prik; in sig_tests() 82 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, NULL), in sig_tests() 88 TEST_SUCC(vb2_sig_size_for_key(&size, prik, NULL), "Sig size"); in sig_tests() 94 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, in sig_tests() [all …]
|
D | vb21_host_keyblock_tests.c | 28 const struct vb2_private_key *prik[2]; in keyblock_tests() local 80 prik[0] = prik4096; in keyblock_tests() 81 TEST_SUCC(vb2_keyblock_create(&kb, pubk2048, prik, 1, 0x1234, NULL), in keyblock_tests() 94 prik[0] = prik8192; in keyblock_tests() 95 prik[1] = prikhash; in keyblock_tests() 96 TEST_SUCC(vb2_keyblock_create(&kb, pubk4096, prik, 2, 0, test_desc), in keyblock_tests() 107 prik[0] = prik8192; in keyblock_tests() 109 TEST_EQ(vb2_keyblock_create(&kb, pubk4096, prik, 1, 0, NULL), in keyblock_tests() 113 prik[0] = prik4096; in keyblock_tests() 115 TEST_EQ(vb2_keyblock_create(&kb, pubk4096, prik, 1, 0, NULL), in keyblock_tests()
|
D | vb21_common2_tests.c | 248 struct vb2_private_key *prik = NULL; in test_algorithm() local 256 TEST_SUCC(vb2_private_key_read_pem(&prik, filename), in test_algorithm() 258 prik->hash_alg = hash_alg; in test_algorithm() 259 prik->sig_alg = sig_alg; in test_algorithm() 260 vb2_private_key_set_desc(prik, "private key"); in test_algorithm() 270 TEST_SUCC(vb2_sign_data(&sig2, test_data, test_size, prik, ""), in test_algorithm() 279 vb2_private_key_free(prik); in test_algorithm()
|
D | vb21_common_tests.c | 221 const struct vb2_private_key *prik; in test_verify_hash() local 229 TEST_SUCC(vb2_private_key_hash(&prik, VB2_HASH_SHA256), in test_verify_hash() 235 TEST_SUCC(vb2_sign_data(&sig, test_data, sizeof(test_data), prik, NULL), in test_verify_hash() 255 const struct vb2_private_key *prik[2]; in test_verify_keyblock() local 273 TEST_SUCC(vb2_private_key_hash(prik + 0, VB2_HASH_SHA256), in test_verify_keyblock() 275 TEST_SUCC(vb2_private_key_hash(prik + 1, VB2_HASH_SHA512), in test_verify_keyblock() 279 TEST_SUCC(vb2_keyblock_create(&kbuf, &pubk3, prik, 2, 0x4321, desc), in test_verify_keyblock() 325 vb2_sign_data(&sig, buf, kbuf->sig_offset, prik[0], NULL); in test_verify_keyblock()
|