Skip to content

Commit

Permalink
Added tests for NUL bytes in PKCS8 passphrases
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jun 1, 2023
1 parent 58e9cc1 commit 0b7ab2c
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 0b7ab2c

Please sign in to comment.