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