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