Add human-readable algorithm name as NAME constant.

This commit is contained in:
2025-11-09 04:01:05 +00:00
parent 56d304a82e
commit 46bc05f547
8 changed files with 29 additions and 26 deletions
+2
View File
@@ -9,6 +9,7 @@ from ._loader import ffi
from ._loader import lib as _lib
from .util import Buffer, new_aligned_struct, nonce_increment, wipe
NAME = "AEGIS-128X4" #: Algorithm name
KEYBYTES = 16 #: Key size in bytes (varies by algorithm)
NONCEBYTES = 16 #: Nonce size in bytes (varies by algorithm)
MACBYTES = 16 #: Normal MAC size (always 16)
@@ -797,6 +798,7 @@ def new_mac_state():
__all__ = [
# constants
"NAME",
"KEYBYTES",
"NONCEBYTES",
"MACBYTES",