updated cryptography deprecated things
Some checks failed
Tox Tests / test-setup (py39-setup, 3.9) (push) Waiting to run
Tox Tests / pep8 (push) Waiting to run
Tox Tests / finish-coveralls (push) Blocked by required conditions
Tox Tests / unit-tests (macos-10.15, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.9) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.9) (push) Has been cancelled
Tox Tests / c-locale-test (push) Has been cancelled
Tox Tests / test-setup (py310-setup, 3.10) (push) Has been cancelled
Tox Tests / test-setup (py36-setup, 3.6) (push) Has been cancelled
Tox Tests / test-setup (py37-setup, 3.7) (push) Has been cancelled
Tox Tests / test-setup (py38-setup, 3.8) (push) Has been cancelled
Some checks failed
Tox Tests / test-setup (py39-setup, 3.9) (push) Waiting to run
Tox Tests / pep8 (push) Waiting to run
Tox Tests / finish-coveralls (push) Blocked by required conditions
Tox Tests / unit-tests (macos-10.15, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (macos-10.15, 3.9) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.10) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.6) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.7) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.8) (push) Has been cancelled
Tox Tests / unit-tests (ubuntu-18.04, 3.9) (push) Has been cancelled
Tox Tests / c-locale-test (push) Has been cancelled
Tox Tests / test-setup (py310-setup, 3.10) (push) Has been cancelled
Tox Tests / test-setup (py36-setup, 3.6) (push) Has been cancelled
Tox Tests / test-setup (py37-setup, 3.7) (push) Has been cancelled
Tox Tests / test-setup (py38-setup, 3.8) (push) Has been cancelled
This commit is contained in:
@@ -16,6 +16,7 @@ from pyasn1.type.univ import ObjectIdentifier
|
|||||||
from cryptography.hazmat.backends import openssl
|
from cryptography.hazmat.backends import openssl
|
||||||
from cryptography.hazmat.primitives.asymmetric import ec
|
from cryptography.hazmat.primitives.asymmetric import ec
|
||||||
from cryptography.hazmat.primitives.ciphers import algorithms
|
from cryptography.hazmat.primitives.ciphers import algorithms
|
||||||
|
from cryptography.hazmat.decrepit.ciphers import algorithms as algorithms_n
|
||||||
|
|
||||||
from .types import FlagEnum
|
from .types import FlagEnum
|
||||||
from .decorators import classproperty
|
from .decorators import classproperty
|
||||||
@@ -188,10 +189,10 @@ class SymmetricKeyAlgorithm(IntEnum):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def cipher(self):
|
def cipher(self):
|
||||||
bs = {SymmetricKeyAlgorithm.IDEA: algorithms.IDEA,
|
bs = {SymmetricKeyAlgorithm.IDEA: algorithms_n.IDEA,
|
||||||
SymmetricKeyAlgorithm.TripleDES: algorithms.TripleDES,
|
SymmetricKeyAlgorithm.TripleDES: algorithms_n.TripleDES,
|
||||||
SymmetricKeyAlgorithm.CAST5: algorithms.CAST5,
|
SymmetricKeyAlgorithm.CAST5: algorithms_n.CAST5,
|
||||||
SymmetricKeyAlgorithm.Blowfish: algorithms.Blowfish,
|
SymmetricKeyAlgorithm.Blowfish: algorithms_n.Blowfish,
|
||||||
SymmetricKeyAlgorithm.AES128: algorithms.AES,
|
SymmetricKeyAlgorithm.AES128: algorithms.AES,
|
||||||
SymmetricKeyAlgorithm.AES192: algorithms.AES,
|
SymmetricKeyAlgorithm.AES192: algorithms.AES,
|
||||||
SymmetricKeyAlgorithm.AES256: algorithms.AES,
|
SymmetricKeyAlgorithm.AES256: algorithms.AES,
|
||||||
|
|||||||
Reference in New Issue
Block a user