singe/thirdparty/openssl/tlslite-ng/tlslite/utils/python_aesccm.py
2023-11-16 22:15:24 -06:00

9 lines
271 B
Python

# Author: Ivan Nikolchev
# See the LICENSE file for legal information regarding use of this file.
""" Pure Python AES-CCM implementation."""
from tlslite.utils.aesccm import AESCCM
def new(key, tagLength=16):
return AESCCM(key, "python", bytearray(16), tagLength)