(backend, wycheproof)
| 115 | ) |
| 116 | @wycheproof_tests(class="st">"mlkem_1024_keygen_seed_test.json") |
| 117 | def test_mlkem1024_keygen_seed(backend, wycheproof): |
| 118 | seed = binascii.unhexlify(wycheproof.testcase[class="st">"seed"]) |
| 119 | expected_ek = binascii.unhexlify(wycheproof.testcase[class="st">"ek"]) |
| 120 | |
| 121 | key = MLKEM1024PrivateKey.from_seed_bytes(seed) |
| 122 | |
| 123 | pub = key.public_key() |
| 124 | assert pub.public_bytes_raw() == expected_ek |
| 125 | |
| 126 | |
| 127 | @pytest.mark.supported( |
nothing calls this directly
no test coverage detected