Open 0xacb opened 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.
@nmurtagh Hello! Sure, I understand. I'm happy to contribute, please let me know if you need a hand 👍
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.