patch_seq_constant_time_eq

Function patch_seq_constant_time_eq 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_constant_time_eq( stack: Stack, ) -> Stack
Expand description

Timing-safe string comparison

Stack effect: ( String String – Bool )

Compares two strings in constant time to prevent timing attacks. Essential for comparing signatures, hashes, tokens, etc.

Uses the subtle crate for cryptographically secure constant-time comparison. This prevents timing side-channel attacks where an attacker could deduce secret values by measuring comparison duration.

§Safety

Stack must have two String values on top