We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adaf864 commit 68b7399Copy full SHA for 68b7399
1 file changed
src/ecdsa/test_der.py
@@ -26,6 +26,8 @@
26
remove_octet_string,
27
remove_sequence,
28
encode_implicit,
29
+ unpem,
30
+ topem,
31
)
32
33
@@ -629,3 +631,9 @@ def test_remove_implicit_rejects_truncated_length():
629
631
UnexpectedDER, match="Length longer than the provided buffer"
630
632
):
633
remove_implicit(bad)
634
+
635
636
+def test_unpem_with_str():
637
+ data = b"\xff\x00\x01"
638
+ out = unpem(str(topem(data, "KEY"), "ASCII"))
639
+ assert data == out
0 commit comments