Skip to main content

Module stack_buffer

Module stack_buffer 

Source
Expand description

Stack Buffer Utilities

This module provides fixed-size stack-allocated buffers for cryptographic operations, following libQ’s zero dynamic allocation memory model.

Modules§

utils
Utility functions for working with stack buffers

Structs§

StackBuffer
Fixed-size stack-allocated buffer for cryptographic operations
UninitStackBuffer
Memory-efficient uninitialized stack buffer

Constants§

CIPHERTEXT_BUFFER_SIZE
HASH_BUFFER_SIZE
IV_BUFFER_SIZE
KEY_BUFFER_SIZE
Predefined buffer sizes for common cryptographic operations
MAX_STACK_BUFFER_SIZE
Maximum size for stack-allocated buffers
NONCE_BUFFER_SIZE
PLAINTEXT_BUFFER_SIZE
TAG_BUFFER_SIZE

Type Aliases§

CiphertextBuffer
HashBuffer
IvBuffer
KeyBuffer
Type aliases for common buffer sizes
NonceBuffer
PlaintextBuffer
TagBuffer
UninitCiphertextBuffer
UninitHashBuffer
UninitIvBuffer
UninitKeyBuffer
Type aliases for memory-efficient uninitialized buffers
UninitNonceBuffer
UninitPlaintextBuffer
UninitTagBuffer