Spaces:
Configuration error
Configuration error
File size: 327 Bytes
b3ca762 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | # mediaflow_proxy/utils/python_aesgcm.py
from .aesgcm import AESGCM
from .rijndael import Rijndael
def new(key: bytes) -> AESGCM:
"""
Mirror ResolveURL's python_aesgcm.new(key) API:
returns an AESGCM instance with pure-Python Rijndael backend.
"""
return AESGCM(key, "python", Rijndael(key, 16).encrypt)
|