MCPcopy
hub / github.com/pyca/cryptography / test_mldsa65_private_key_no_seed

Function test_mldsa65_private_key_no_seed

tests/hazmat/primitives/test_mldsa.py:555–564  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

553 skip_message="Requires a backend with ML-DSA support",
554)
555def test_mldsa65_private_key_no_seed(backend):
556 pkcs8_der = load_vectors_from_file(
557 os.path.join("asymmetric", "MLDSA", "mldsa65_noseed_priv.der"),
558 lambda derfile: derfile.read(),
559 mode="rb",
560 )
561 with pytest.raises(ValueError):
562 serialization.load_der_private_key(
563 pkcs8_der, password=None, backend=backend
564 )

Callers

nothing calls this directly

Calls 1

load_vectors_from_fileFunction · 0.85

Tested by

no test coverage detected