Lines Matching defs:pubk
27 struct vb2_public_key pubk;
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),
90 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size),
96 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size),
102 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size),
108 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size),
176 struct vb2_public_key pubk;
183 pubk = *pubk_orig;
191 pubk.sig_alg = VB2_SIG_INVALID;
192 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb),
194 pubk = *pubk_orig;
197 pubk.hash_alg = VB2_HASH_INVALID;
198 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb),
201 pubk = *pubk_orig;
205 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb),
211 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb),
216 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb),
220 TEST_EQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb),
226 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb),
233 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb),
250 struct vb2_public_key *pubk = NULL;
263 TEST_SUCC(vb2_public_key_read_keyb(&pubk, filename),
265 pubk->hash_alg = hash_alg;
266 vb2_public_key_set_desc(pubk, "public key");
267 TEST_SUCC(vb2_public_key_pack(&key2, pubk), "Pack public key");
274 test_verify_data(pubk, sig2);
280 vb2_public_key_free(pubk);