Module utils

Source
Expand description

Utility functions for lib-Q

This module provides common utility functions used throughout the library.

Functionsยง

bytes_to_hex
Convert bytes to hex string
constant_time_compare
Constant-time comparison of two byte slices
hex_to_bytes
Convert hex string to bytes
random_bytes
Generate cryptographically secure random bytes
random_key
Generate a random key of specified size
random_nonce
Generate a random nonce
secure_zeroize
Secure memory zeroization
validate_data_size
Validate input data size