Lines Matching refs:pubk
27 struct vb2_public_key pubk; in test_unpack_key() local
35 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
40 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
46 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
52 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
54 TEST_EQ(strcmp(pubk.desc, ""), 0, " empty desc string"); in test_unpack_key()
58 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
64 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
79 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
84 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
90 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
96 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
102 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
108 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
176 struct vb2_public_key pubk; in test_verify_data() local
183 pubk = *pubk_orig; in test_verify_data()
191 pubk.sig_alg = VB2_SIG_INVALID; in test_verify_data()
192 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
194 pubk = *pubk_orig; in test_verify_data()
197 pubk.hash_alg = VB2_HASH_INVALID; in test_verify_data()
198 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
201 pubk = *pubk_orig; in test_verify_data()
205 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
211 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
216 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
220 TEST_EQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb), in test_verify_data()
226 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
233 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
250 struct vb2_public_key *pubk = NULL; in test_algorithm() local
263 TEST_SUCC(vb2_public_key_read_keyb(&pubk, filename), in test_algorithm()
265 pubk->hash_alg = hash_alg; in test_algorithm()
266 vb2_public_key_set_desc(pubk, "public key"); in test_algorithm()
267 TEST_SUCC(vb2_public_key_pack(&key2, pubk), "Pack public key"); in test_algorithm()
274 test_verify_data(pubk, sig2); in test_algorithm()
280 vb2_public_key_free(pubk); in test_algorithm()