Skip to main content

ConstantTimeEq

Trait ConstantTimeEq 

Source
pub trait ConstantTimeEq {
    // Required method
    fn ct_eq(&self, other: &Self) -> bool;
}
Expand description

Trait for cryptographic types with constant-time equality

Required Methods§

Source

fn ct_eq(&self, other: &Self) -> bool

Compare two values in constant time

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§