Skip to main content

Module ct_eq

Module ct_eq 

Source

Macrosยง

impl_ct_eq_for_nonzero_integer ๐Ÿ”’
Impl CtEq for NonZero<T> by calling NonZero::get.
impl_ct_eq_slice_with_cmov_eq ๐Ÿ”’
Impl CtEq and CtEqSlice using the cmov::CmovEq trait
impl_ct_eq_with_cmov_eq ๐Ÿ”’
Impl CtEq using the cmov::CmovEq trait

Traitsยง

CtEq
Constant-time equality: like (Partial)Eq with Choice instead of bool.
CtEqSlice
Implementing this trait enables use of the CtEq trait for [T] where T is the Self type implementing the trait, via a blanket impl.