Demonware / jose

Python implementation of the Javascript Object Signing and Encryption (JOSE) framework (https://datatracker.ietf.org/wg/jose/charter/)
BSD 3-Clause "New" or "Revised" License
95 stars 34 forks source link

Adds support for encrypted RSA private keys in decrypt_oaep and rsa_sign functions #23

Open 0xacb opened 7 years ago

0xacb commented 7 years ago

Added support for encrypted RSA private keys (decrypt and sign):

jwk = {"k": PEMPrivateKey, "passphrase": keyPassphrase}

Please take a look on the failed Travis CI. The build fails when hmac_sign is called for encryption/decryption and not for signing/verification.

nmurtagh commented 7 years ago

@ABaptista Hi Andre, thank you for your contribution! I'm happy to merge this but it needs all the existing tests to be fixed up (you have changed the API of some of the algorithms), and also needs unit tests for keys with passphrases.

0xacb commented 7 years ago

@nmurtagh Hello! Sure, I understand. I'm happy to contribute, please let me know if you need a hand 👍