(backend, wycheproof)
| 47 | ) |
| 48 | @wycheproof_tests("mlkem_768_keygen_seed_test.json") |
| 49 | def test_mlkem768_keygen_seed(backend, wycheproof): |
| 50 | seed = binascii.unhexlify(wycheproof.testcase["seed"]) |
| 51 | expected_ek = binascii.unhexlify(wycheproof.testcase["ek"]) |
| 52 | |
| 53 | key = MLKEM768PrivateKey.from_seed_bytes(seed) |
| 54 | |
| 55 | pub = key.public_key() |
| 56 | assert pub.public_bytes_raw() == expected_ek |
| 57 | |
| 58 | |
| 59 | @pytest.mark.supported( |
nothing calls this directly
no test coverage detected