Skip to content

Commit 6c26bee

Browse files
committed
Add a comment explaining RsaKey vs _RSAobj
1 parent ae8c918 commit 6c26bee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jose/jwk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
from jose.exceptions import JWSError
1818
from jose.exceptions import JOSEError
1919

20+
# PyCryptodome's RSA module doesn't have PyCrypto's _RSAobj class
21+
# Instead it has a class named RsaKey, which serves the same purpose.
2022
if hasattr(RSA, '_RSAobj'):
2123
_RSAKey = RSA._RSAobj
2224
else:

0 commit comments

Comments
 (0)