We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 057bc6f commit 6965967Copy full SHA for 6965967
jose/backends/cryptography_backend.py
@@ -56,6 +56,11 @@
56
57
58
def is_pem_format(key):
59
+ """
60
+ Return True if the key is PEM format
61
+ This function uses the list of valid PEM headers defined in
62
+ _PEMS dict.
63
64
return bool(_PEM_RE.search(key))
65
66
@@ -73,6 +78,11 @@ def is_pem_format(key):
73
78
74
79
75
80
def is_ssh_key(key):
81
82
+ Return True if the key is a SSH key
83
+ This function uses the list of valid SSH key format defined in
84
+ _SSH_KEY_FORMATS dict.
85
76
86
if any(string_value in key for string_value in _SSH_KEY_FORMATS):
77
87
return True
88
0 commit comments