Module timing_protection

Module timing_protection 

Source
Expand description

Timing attack protection utilities

This module provides utilities to prevent timing side-channel attacks, particularly important for authentication frameworks where attackers could exploit timing differences to extract sensitive information.

Functionsยง

constant_time_compare
Perform constant-time comparison of byte arrays
constant_time_string_compare
Perform a constant-time string comparison
random_delay
Add a small random delay to mask timing patterns
rsa_operation_protected
RSA operation wrapper with blinding protection
timing_safe_operation
Wrapper for sensitive authentication operations with timing protection