1818
1919from cryptography import exceptions as errors
2020from cryptography .hazmat .backends import default_backend
21- from cryptography .hazmat .decrepit .ciphers import algorithms
21+ from cryptography .hazmat .decrepit .ciphers import new_algorithms
2222from cryptography .hazmat .primitives import serialization , hashes , hmac , cmac
2323from cryptography .hazmat .primitives import padding as symmetric_padding
2424from cryptography .hazmat .primitives .asymmetric import rsa
2525from cryptography .hazmat .primitives .asymmetric import padding as \
2626 asymmetric_padding
2727from cryptography .hazmat .primitives import ciphers , keywrap
28- from cryptography .hazmat .primitives .ciphers import modes
28+ from cryptography .hazmat .primitives .ciphers import algorithms , modes
2929from cryptography .hazmat .primitives .kdf import hkdf
3030from cryptography .hazmat .primitives .kdf import kbkdf
3131from cryptography .hazmat .primitives .kdf import pbkdf2
@@ -50,13 +50,13 @@ def __init__(self):
5050 # The IDEA algorithm is supported by cryptography but may not be
5151 # supported by certain backends, like OpenSSL.
5252 self ._symmetric_key_algorithms = {
53- enums .CryptographicAlgorithm .TRIPLE_DES : algorithms .TripleDES ,
53+ enums .CryptographicAlgorithm .TRIPLE_DES : new_algorithms .TripleDES ,
5454 enums .CryptographicAlgorithm .AES : algorithms .AES ,
55- enums .CryptographicAlgorithm .BLOWFISH : algorithms .Blowfish ,
55+ enums .CryptographicAlgorithm .BLOWFISH : new_algorithms .Blowfish ,
5656 enums .CryptographicAlgorithm .CAMELLIA : algorithms .Camellia ,
57- enums .CryptographicAlgorithm .CAST5 : algorithms .CAST5 ,
58- enums .CryptographicAlgorithm .IDEA : algorithms .IDEA ,
59- enums .CryptographicAlgorithm .RC4 : algorithms .ARC4
57+ enums .CryptographicAlgorithm .CAST5 : new_algorithms .CAST5 ,
58+ enums .CryptographicAlgorithm .IDEA : new_algorithms .IDEA ,
59+ enums .CryptographicAlgorithm .RC4 : new_algorithms .ARC4
6060 }
6161 self ._asymmetric_key_algorithms = {
6262 enums .CryptographicAlgorithm .RSA : self ._create_rsa_key_pair
0 commit comments