Skip to main content

eq

Function eq 

Source
pub fn eq(a: &[u8], b: &[u8]) -> Choice
Expand description

Constant-time equality over two byte slices.

Returns Choice::FALSE immediately on a length mismatch. Lengths are public in every IronCrypto API, so this leaks nothing secret.