Trait curve25519_dalek::subtle::CTEq
[−]
[src]
pub trait CTEq { fn ct_eq(&self, other: &Self) -> u8; }
Trait for items whose equality to another item may be tested in constant time.
Required Methods
fn ct_eq(&self, other: &Self) -> u8
Determine if two items are equal in constant time.
Returns
1u8
if the two items are equal, and 0u8
otherwise.
Implementors
impl CTEq for FieldElement
impl CTEq for ExtendedPoint
impl CTEq for Scalar