Lines Matching refs:wycheproof
52 def test_ecdh(backend, wycheproof): argument
53 curve = _CURVES[wycheproof.testgroup["curve"]]
56 "Unsupported curve ({})".format(wycheproof.testgroup["curve"])
61 int(wycheproof.testcase["private"], 16), curve, backend
66 binascii.unhexlify(wycheproof.testcase["public"]), backend
69 assert wycheproof.has_flag("UnnamedCurve")
72 assert wycheproof.invalid or wycheproof.acceptable
77 if wycheproof.valid or wycheproof.acceptable:
79 expected_shared = binascii.unhexlify(wycheproof.testcase["shared"])
93 def test_ecdh_ecpoint(backend, wycheproof): argument
94 curve = _CURVES[wycheproof.testgroup["curve"]]
98 int(wycheproof.testcase["private"], 16), curve, backend
101 if wycheproof.invalid:
104 curve, binascii.unhexlify(wycheproof.testcase["public"])
108 assert wycheproof.valid or wycheproof.acceptable
110 curve, binascii.unhexlify(wycheproof.testcase["public"])
113 expected_shared = binascii.unhexlify(wycheproof.testcase["shared"])