util.nonce_increment and util.wipe functions, also exported by each module for convenience.

This commit is contained in:
Leo Vasanko
2025-11-07 09:53:39 -06:00
parent 96ce7867de
commit 1dcdafa008
7 changed files with 32 additions and 13 deletions
+3 -2
View File
@@ -7,7 +7,7 @@ import secrets
from ._loader import ffi
from ._loader import lib as _lib
from .util import Buffer, new_aligned_struct, nonce_inc_inplace
from .util import Buffer, new_aligned_struct, nonce_increment, wipe
# Constants exposed as functions in C; mirror them as integers at module import time
KEYBYTES = _lib.aegis128x2_keybytes()
@@ -805,7 +805,8 @@ __all__ = [
# utility functions
"random_key",
"random_nonce",
"nonce_inc_inplace",
"nonce_increment",
"wipe",
# one-shot functions
"encrypt_detached",
"decrypt_detached",