MCPcopy Create free account
hub / github.com/RustCrypto/utils / CtLt

Interface CtLt

ctutils/src/traits/ct_lt.rs:8–12  ·  view source on GitHub ↗

Constant time less than.

Source from the content-addressed store, hash-verified

6
7/// Constant time less than.
8pub trait CtLt {
9 /// Compute whether `self < other` in constant time.
10 #[must_use]
11 fn ct_lt(&self, other: &Self) -> Choice;
12}
13
14macro_rules! impl_unsigned_ct_lt {
15 ( $(($uint:ty, $from_lt:ident)),+ ) => {

Callers

nothing calls this directly

Implementers 1

ct_lt.rsctutils/src/traits/ct_lt.rs

Calls

no outgoing calls

Tested by

no test coverage detected