|
7 | 7 | from cryptography.hazmat.bindings.openssl.binding import Binding |
8 | 8 | from cryptography.hazmat.primitives import hashes, hmac, serialization |
9 | 9 | from cryptography.hazmat.primitives.asymmetric import ec, padding, rsa |
10 | | -from cryptography.hazmat.primitives.asymmetric.utils import ( |
11 | | - decode_dss_signature, encode_dss_signature) |
12 | | -from cryptography.hazmat.primitives.ciphers import (Cipher, aead, algorithms, |
13 | | - modes) |
14 | | -from cryptography.hazmat.primitives.keywrap import (InvalidUnwrap, |
15 | | - aes_key_unwrap, |
16 | | - aes_key_wrap) |
| 10 | +from cryptography.hazmat.primitives.asymmetric.utils import decode_dss_signature, encode_dss_signature |
| 11 | +from cryptography.hazmat.primitives.ciphers import Cipher, aead, algorithms, modes |
| 12 | +from cryptography.hazmat.primitives.keywrap import InvalidUnwrap, aes_key_unwrap, aes_key_wrap |
17 | 13 | from cryptography.hazmat.primitives.padding import PKCS7 |
18 | | -from cryptography.hazmat.primitives.serialization import (load_pem_private_key, |
19 | | - load_pem_public_key) |
| 14 | +from cryptography.hazmat.primitives.serialization import load_pem_private_key, load_pem_public_key |
20 | 15 | from cryptography.utils import int_to_bytes |
21 | 16 | from cryptography.x509 import load_pem_x509_certificate |
22 | 17 |
|
23 | 18 | from ..constants import ALGORITHMS |
24 | 19 | from ..exceptions import JWEError, JWKError |
25 | | -from ..utils import (base64_to_long, base64url_decode, base64url_encode, |
26 | | - long_to_base64) |
| 20 | +from ..utils import base64_to_long, base64url_decode, base64url_encode, long_to_base64 |
27 | 21 | from .base import Key |
28 | 22 |
|
29 | 23 | _binding = None |
|
0 commit comments