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

This commit is contained in:
2025-11-07 21:53:39 +00:00
parent f0b4373c0e
commit f983cbe4c5
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.aegis256x4_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",