Lines Matching refs:sig

47 	uint8_t sig[RSA1024NUMBYTES];  in test_signatures()  local
55 Memcpy(sig, signatures[0], sizeof(sig)); in test_signatures()
56 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_signatures()
62 Memcpy(sig, signatures[i], sizeof(sig)); in test_signatures()
63 if (!vb2_rsa_verify_digest(key, sig, in test_signatures()
80 uint8_t sig[RSA1024NUMBYTES]; in test_verify_digest() local
86 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
87 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
90 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
91 vb2_workbuf_init(&wb, workbuf, sizeof(sig) * 3 - 1); in test_verify_digest()
92 TEST_EQ(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
98 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
99 TEST_EQ(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
105 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
106 TEST_EQ(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
112 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
113 sig[3] ^= 0x42; in test_verify_digest()
114 TEST_EQ(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
117 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
118 sig[RSA1024NUMBYTES - 3] ^= 0x56; in test_verify_digest()
119 TEST_EQ(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()