Skip to content

Commit bf332e8

Browse files
some old, some new
1 parent 1498e41 commit bf332e8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

kmip/services/server/crypto/engine.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
from cryptography import exceptions as errors
2020
from cryptography.hazmat.backends import default_backend
21-
from cryptography.hazmat.decrepit.ciphers import algorithms
21+
from cryptography.hazmat.decrepit.ciphers import new_algorithms
2222
from cryptography.hazmat.primitives import serialization, hashes, hmac, cmac
2323
from cryptography.hazmat.primitives import padding as symmetric_padding
2424
from cryptography.hazmat.primitives.asymmetric import rsa
2525
from cryptography.hazmat.primitives.asymmetric import padding as \
2626
asymmetric_padding
2727
from cryptography.hazmat.primitives import ciphers, keywrap
28-
from cryptography.hazmat.primitives.ciphers import modes
28+
from cryptography.hazmat.primitives.ciphers import algorithms, modes
2929
from cryptography.hazmat.primitives.kdf import hkdf
3030
from cryptography.hazmat.primitives.kdf import kbkdf
3131
from 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

Comments
 (0)