Lines Matching refs:wycheproof
17 def test_keywrap_with_padding(backend, wycheproof): argument
18 wrapping_key = binascii.unhexlify(wycheproof.testcase["key"])
19 key_to_wrap = binascii.unhexlify(wycheproof.testcase["msg"])
20 expected = binascii.unhexlify(wycheproof.testcase["ct"])
25 if wycheproof.valid or wycheproof.acceptable:
28 if wycheproof.valid or (wycheproof.acceptable and not len(expected) < 16):
42 def test_keywrap(backend, wycheproof): argument
43 wrapping_key = binascii.unhexlify(wycheproof.testcase["key"])
44 key_to_wrap = binascii.unhexlify(wycheproof.testcase["msg"])
45 expected = binascii.unhexlify(wycheproof.testcase["ct"])
48 wycheproof.valid or (
49 wycheproof.acceptable and
50 wycheproof.testcase["comment"] != "invalid size of wrapped key"
56 if wycheproof.valid or wycheproof.acceptable: