mirror of
https://github.com/UrloMythus/UnHided.git
synced 2026-04-11 11:50:51 +00:00
13 lines
327 B
Python
13 lines
327 B
Python
# 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)
|