File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 2020)
2121@wycheproof_tests ("x25519_test.json" )
2222def test_x25519 (backend , wycheproof ):
23- assert set (wycheproof .testgroup .items ()) == {
24- ("curve" , "curve25519" ),
25- ("type" , "XdhComp" ),
26- }
23+ assert wycheproof .testgroup ["curve" ] == "curve25519"
24+ assert wycheproof .testgroup ["type" ] == "XdhComp"
2725
2826 private_key = X25519PrivateKey .from_private_bytes (
2927 binascii .unhexlify (wycheproof .testcase ["private" ])
Original file line number Diff line number Diff line change 2020)
2121@wycheproof_tests ("x448_test.json" )
2222def test_x448 (backend , wycheproof ):
23- assert set (wycheproof .testgroup .items ()) == {
24- ("curve" , "curve448" ),
25- ("type" , "XdhComp" ),
26- }
23+ assert wycheproof .testgroup ["curve" ] == "curve448"
24+ assert wycheproof .testgroup ["type" ] == "XdhComp"
2725
2826 private_key = X448PrivateKey .from_private_bytes (
2927 binascii .unhexlify (wycheproof .testcase ["private" ])
You can’t perform that action at this time.
0 commit comments