Lines Matching refs:sig2
87 struct vb2_signature *sig2; in test_verify_data() local
92 sig2 = (struct vb2_signature *)malloc(sig_total_size); in test_verify_data()
98 memcpy(sig2, sig, sig_total_size); in test_verify_data()
100 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
104 memcpy(sig2, sig, sig_total_size); in test_verify_data()
106 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
111 memcpy(sig2, sig, sig_total_size); in test_verify_data()
112 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
116 memcpy(sig2, sig, sig_total_size); in test_verify_data()
117 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
120 memcpy(sig2, sig, sig_total_size); in test_verify_data()
121 sig2->sig_size -= 16; in test_verify_data()
122 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
125 memcpy(sig2, sig, sig_total_size); in test_verify_data()
126 TEST_NEQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb), in test_verify_data()
129 memcpy(sig2, sig, sig_total_size); in test_verify_data()
130 vb2_signature_data(sig2)[0] ^= 0x5A; in test_verify_data() local
131 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
134 free(sig2); in test_verify_data()