diff options
| author | José Padilla <jpadilla@webapplicate.com> | 2017-06-21 15:49:41 -0400 |
|---|---|---|
| committer | José Padilla <jpadilla@webapplicate.com> | 2017-06-22 09:58:04 -0400 |
| commit | 37926ea0dd207db070b45473438853447e4c1392 (patch) | |
| tree | eac05889d2f990aa62228c3da37e3902bb2866a7 /jwt/algorithms.py | |
| parent | e4c67b1abf5acf2a5079fc735ec54a5b78556e4a (diff) | |
| download | pyjwt-37926ea0dd207db070b45473438853447e4c1392.tar.gz | |
Throw if key is an PKCS1 PEM-encoded public key
Diffstat (limited to 'jwt/algorithms.py')
| -rw-r--r-- | jwt/algorithms.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py index f6d990a..47043c3 100644 --- a/jwt/algorithms.py +++ b/jwt/algorithms.py @@ -142,6 +142,7 @@ class HMACAlgorithm(Algorithm): invalid_strings = [ b'-----BEGIN PUBLIC KEY-----', b'-----BEGIN CERTIFICATE-----', + b'-----BEGIN RSA PUBLIC KEY-----', b'ssh-rsa' ] |
