Lines Matching refs:prik
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()
100 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, ""), in sig_tests()
103 TEST_SUCC(vb2_sig_size_for_key(&size, prik, ""), "Sig size"); in sig_tests()
113 prik2 = *prik; in sig_tests()
120 TEST_SUCC(vb2_sig_size_for_key(&size, prik, NULL), "Sig size"); in sig_tests()
127 TEST_SUCC(vb2_sign_object(buf, c_sig_offs, prik, NULL), "Sign object"); in sig_tests()
132 TEST_EQ(vb2_sign_object(buf, c_sig_offs + 4, prik, NULL), in sig_tests()
162 vb2_private_key_free(prik); in sig_tests()