pub struct Ct;Available on crate feature
modmath only.Expand description
Constant-time marker.
Selects constant-time implementations of operation primitives — bodies whose execution time and memory access pattern do not depend on operand values. Appropriate for code that handles secret values (signing, scalar multiplication on secret scalars, Montgomery multiplication on secret operands).
Calls to subtle::ConditionallySelectable, ConstantTimeEq, and
related traits are only available for FixedUInt<_, _, Ct>` — wrong-
variant calls become compile errors, not silent NCT execution.
Trait Implementations§
Source§impl Personality for Ct
impl Personality for Ct
Source§const TAG: PersonalityTag = PersonalityTag::Ct
const TAG: PersonalityTag = PersonalityTag::Ct
Compile-time tag used by
const fn dispatch:
match P::TAG { PersonalityTag::Nct => …, PersonalityTag::Ct => … }.impl Copy for Ct
impl Eq for Ct
impl StructuralPartialEq for Ct
Auto Trait Implementations§
impl Freeze for Ct
impl RefUnwindSafe for Ct
impl Send for Ct
impl Sync for Ct
impl Unpin for Ct
impl UnsafeUnpin for Ct
impl UnwindSafe for Ct
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more