diff --git a/pkcs11_cryptography_keys/keys/ec.py b/pkcs11_cryptography_keys/keys/ec.py index 1537cae..efeea88 100644 --- a/pkcs11_cryptography_keys/keys/ec.py +++ b/pkcs11_cryptography_keys/keys/ec.py @@ -27,7 +27,6 @@ from pkcs11_cryptography_keys.card_token.PKCS11_token import PKCS11Token - # Translation from mechanism read from the card to parameters needed for cryptography API # At init time this is used to for operations list for later use in function calls as card limitations _digest_algorithm_implementations: Dict[str, Dict] = { diff --git a/pkcs11_cryptography_keys/keys/rsa.py b/pkcs11_cryptography_keys/keys/rsa.py index f561c36..d4f0fa2 100644 --- a/pkcs11_cryptography_keys/keys/rsa.py +++ b/pkcs11_cryptography_keys/keys/rsa.py @@ -10,13 +10,11 @@ from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import _serialization, hashes from cryptography.hazmat.primitives._asymmetric import AsymmetricPadding -from cryptography.hazmat.primitives.asymmetric import ( - utils as asym_utils, -) +from cryptography.hazmat.primitives.asymmetric import utils as asym_utils from cryptography.hazmat.primitives.asymmetric.padding import ( - PKCS1v15, OAEP, PSS, + PKCS1v15, ) from cryptography.hazmat.primitives.asymmetric.rsa import ( RSAPrivateKey,