Skip to content

Commit

Permalink
Added tests for NUL bytes in PKCS8 passphrases (#9001)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jun 1, 2023
1 parent 0cbf35a commit 22f53ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/hazmat/primitives/test_ed25519.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ def test_invalid_public_bytes(self, backend):
None,
serialization.load_der_private_key,
),
(
serialization.Encoding.DER,
serialization.PrivateFormat.PKCS8,
serialization.BestAvailableEncryption(b"\x00"),
b"\x00",
serialization.load_der_private_key,
),
],
)
def test_round_trip_private_serialization(
Expand Down

0 comments on commit 22f53ee

Please sign in to comment.