Add human-readable algorithm name as NAME constant.

This commit is contained in:
Leo Vasanko
2025-11-08 16:01:05 -06:00
parent 13445887e9
commit e58990a1c2
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-128L" #: 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",