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

11 lines
268 B
Python

# Author: Google
# See the LICENSE file for legal information regarding use of this file.
"""Pure-Python AES-GCM implementation."""
from .aesgcm import AESGCM
from .rijndael import Rijndael
def new(key):
return AESGCM(key, "python", Rijndael(key, 16).encrypt)