Skip to content

Commit

Permalink
Add a comment explaining RsaKey vs _RSAobj
Browse files Browse the repository at this point in the history
  • Loading branch information
jeethu committed Nov 24, 2015
1 parent ae8c918 commit 6c26bee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jose/jwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from jose.exceptions import JWSError
from jose.exceptions import JOSEError

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

0 comments on commit 6c26bee

Please sign in to comment.