diff --git a/doc/jwe.rst b/doc/jwe.rst index f3211110..031f35e4 100644 --- a/doc/jwe.rst +++ b/doc/jwe.rst @@ -43,10 +43,10 @@ There is a lower level way of doing the same, it will look like this:: >>> from cryptojwt.jwk.rsa import import_private_rsa_key_from_file >>> from cryptojwt.jwe.jwe_rsa import JWE_RSA - >>> priv_key = import_private_rsa_key_from_file(KEY) + >>> priv_key = import_private_rsa_key_from_file('certs/key.pem') >>> pub_key = priv_key.public_key() >>> plain = b'Now is the time for all good men to come to the aid of ...' - >>> _rsa = JWE_RSA(plain, alg="RSA1_5", enc="A128CBC-HS256") + >>> _rsa = JWE_RSA(plain, alg="RSA-OAEP", enc="A128CBC-HS256") >>> jwe = _rsa.encrypt(pub_key) Here the key is an cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey @@ -61,7 +61,7 @@ Decrypting using the encrypted message above. >>> from cryptojwt.jwe.jwe import factory >>> from cryptojwt.jwk.rsa import RSAKey - >>> _decryptor = factory(jwe, alg="RSA1_5", enc="A128CBC-HS256") + >>> _decryptor = factory(jwe, alg="RSA-OAEP", enc="A128CBC-HS256") >>> _dkey = RSAKey(priv_key=priv_key) >>> msg = _decryptor.decrypt(jwe, [_dkey]) diff --git a/src/cryptojwt/key_jar.py b/src/cryptojwt/key_jar.py index f667ddb4..b4610907 100755 --- a/src/cryptojwt/key_jar.py +++ b/src/cryptojwt/key_jar.py @@ -318,7 +318,6 @@ def load_keys(self, issuer_id, jwks_uri="", jwks=None, replace=False): should be replace. :return: Dictionary with usage as key and keys as values """ - logger.debug("Initiating key bundle for issuer: %s" % issuer_id) _issuer = self.return_issuer(issuer_id)