/external/vboot_reference/tests/ |
vb20_common2_tests.c | 26 struct vb2_public_key pubk; local 37 TEST_SUCC(vb2_unpack_key(&pubk, buf, size), "vb2_unpack_key() ok"); 39 TEST_EQ(pubk.sig_alg, vb2_crypto_to_signature(key->algorithm), 41 TEST_EQ(pubk.hash_alg, vb2_crypto_to_hash(key->algorithm), 47 TEST_EQ(vb2_unpack_key(&pubk, buf, size), 53 TEST_EQ(vb2_unpack_key(&pubk, buf, size), 59 TEST_EQ(vb2_unpack_key(&pubk, buf, size + 1), 65 TEST_EQ(vb2_unpack_key(&pubk, buf, size), 70 TEST_EQ(vb2_unpack_key(&pubk, buf, size - 1), 85 struct vb2_public_key pubk, pubk_orig local [all...] |
vb21_host_sig_tests.c | 45 struct vb2_public_key *pubk, pubhash; local 68 TEST_SUCC(vb2_public_key_read_keyb(&pubk, keybfile), "Read pub key"); 69 pubk->guid = &test_guid; 70 pubk->hash_alg = combo->hash_alg; 71 vb2_public_key_set_desc(pubk, test_desc); 90 TEST_SUCC(vb2_verify_data(test_data, test_size, sig, pubk, &wb), 129 TEST_SUCC(vb2_verify_data(buf, c_sig_offs, sig, pubk, &wb), 147 TEST_SUCC(vb2_verify_data(buf, c_sig_offs, sig, pubk, &wb), 163 vb2_public_key_free(pubk);
|
vb21_common2_tests.c | 27 struct vb2_public_key pubk; local 35 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), 40 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), 46 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), 52 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), 54 TEST_EQ(strcmp(pubk.desc, ""), 0, " empty desc string"); 58 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), 64 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), 79 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), 84 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size) 176 struct vb2_public_key pubk; local 250 struct vb2_public_key *pubk = NULL; local [all...] |
vb21_common_tests.c | 222 struct vb2_public_key pubk; local 231 TEST_SUCC(vb2_public_key_hash(&pubk, VB2_HASH_SHA256), 239 sig, &pubk, &wb), 243 TEST_EQ(vb2_verify_data(test_data, sizeof(test_data), sig, &pubk, &wb), 256 struct vb2_public_key pubk, pubk2, pubk3; local 266 TEST_SUCC(vb2_public_key_hash(&pubk, VB2_HASH_SHA256), 292 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), 306 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), 312 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), 318 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb) 383 struct vb2_public_key pubk; local [all...] |