MCPcopy Create free account
hub / github.com/pyca/cryptography / load_wycheproof_tests

Function load_wycheproof_tests

tests/utils.py:921–928  ·  view source on GitHub ↗
(wycheproof, test_file)

Source from the content-addressed store, hash-verified

919
920
921def load_wycheproof_tests(wycheproof, test_file):
922 path = os.path.join(wycheproof, "testvectors", test_file)
923 with open(path) as f:
924 data = json.load(f)
925 for group in data.pop("testGroups"):
926 cases = group.pop("tests")
927 for c in cases:
928 yield WycheproofTest(data, group, c)

Callers 1

run_wycheproofFunction · 0.85

Calls 1

WycheproofTestClass · 0.85

Tested by

no test coverage detected