summaryrefslogtreecommitdiff
path: root/src/saml2/aes.py
blob: 6f37fb336824406f5261f4c2c514f9554b503e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import warnings as _warnings

from saml2.cryptography.symmetric import AESCipher as _AESCipher


_deprecation_msg = (
    '{name} {type} is deprecated. '
    'It will be removed in the next version. '
    'Use saml2.cryptography.symmetric instead.'
).format(name=__name__, type='module')
_warnings.warn(_deprecation_msg, DeprecationWarning)


AESCipher = _AESCipher
POSTFIX_MODE = _AESCipher.POSTFIX_MODE
AES_BLOCK_SIZE = _AESCipher.AES_BLOCK_SIZE