Lines Matching refs:wycheproof
26 def should_verify(backend, wycheproof): argument
27 if wycheproof.valid:
30 if wycheproof.acceptable:
33 wycheproof.has_flag("MissingNull")
65 def test_rsa_pkcs1v15_signature(backend, wycheproof): argument
67 binascii.unhexlify(wycheproof.testgroup["keyDer"]), backend
69 digest = _DIGESTS[wycheproof.testgroup["sha"]]
71 if should_verify(backend, wycheproof):
73 binascii.unhexlify(wycheproof.testcase["sig"]),
74 binascii.unhexlify(wycheproof.testcase["msg"]),
81 binascii.unhexlify(wycheproof.testcase["sig"]),
82 binascii.unhexlify(wycheproof.testcase["msg"]),
98 def test_rsa_pss_signature(backend, wycheproof): argument
100 binascii.unhexlify(wycheproof.testgroup["keyDer"]), backend
102 digest = _DIGESTS[wycheproof.testgroup["sha"]]
103 mgf_digest = _DIGESTS[wycheproof.testgroup["mgfSha"]]
105 if wycheproof.valid or wycheproof.acceptable:
107 binascii.unhexlify(wycheproof.testcase["sig"]),
108 binascii.unhexlify(wycheproof.testcase["msg"]),
111 salt_length=wycheproof.testgroup["sLen"]
118 binascii.unhexlify(wycheproof.testcase["sig"]),
119 binascii.unhexlify(wycheproof.testcase["msg"]),
122 salt_length=wycheproof.testgroup["sLen"]