Lines Matching refs:sig

46 	struct vb2_signature *sig, *sig2;  in sig_tests()  local
82 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, NULL), in sig_tests()
84 TEST_PTR_NEQ(sig, NULL, " sig_ptr"); in sig_tests()
85 TEST_EQ(0, strcmp(vb2_common_desc(sig), test_desc), " desc"); in sig_tests()
86 TEST_EQ(0, memcmp(&sig->guid, &test_guid, sizeof(test_guid)), " guid"); in sig_tests()
87 TEST_EQ(sig->data_size, test_size, " data_size"); in sig_tests()
89 TEST_EQ(size, sig->c.total_size, " size"); in sig_tests()
90 TEST_SUCC(vb2_verify_data(test_data, test_size, sig, pubk, &wb), in sig_tests()
92 free(sig); in sig_tests()
94 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, in sig_tests()
97 TEST_EQ(0, strcmp(vb2_common_desc(sig), test_sig_desc), " desc"); in sig_tests()
98 free(sig); in sig_tests()
100 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, ""), in sig_tests()
102 TEST_EQ(sig->c.desc_size, 0, " desc"); in sig_tests()
104 TEST_EQ(size, sig->c.total_size, " size"); in sig_tests()
105 free(sig); in sig_tests()
107 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prihash, NULL), in sig_tests()
109 TEST_SUCC(vb2_verify_data(test_data, test_size, sig, &pubhash, &wb), in sig_tests()
111 free(sig); in sig_tests()
115 TEST_EQ(vb2_sign_data(&sig, test_data, test_size, &prik2, NULL), in sig_tests()
128 sig = (struct vb2_signature *)(buf + c_sig_offs); in sig_tests()
129 TEST_SUCC(vb2_verify_data(buf, c_sig_offs, sig, pubk, &wb), in sig_tests()
146 sig = (struct vb2_signature *)(buf + c_sig_offs); in sig_tests()
147 TEST_SUCC(vb2_verify_data(buf, c_sig_offs, sig, pubk, &wb), in sig_tests()
149 sig2 = (struct vb2_signature *)(buf + c_sig_offs + sig->c.total_size); in sig_tests()
157 TEST_EQ(size, sig->c.total_size + sig2->c.total_size, in sig_tests()