pub struct P256ScalarInvertImpl;Expand description
The global P256ScalarInvert implementation.
Implementations§
Source§impl P256ScalarInvertImpl
impl P256ScalarInvertImpl
Sourcepub fn invert(k: P256Scalar) -> P256Scalar
pub fn invert(k: P256Scalar) -> P256Scalar
k^-1 mod n. Must not have secret-dependent timing: k may be secret.
Sourcepub fn invert_vartime(k: P256Scalar) -> P256Scalar
pub fn invert_vartime(k: P256Scalar) -> P256Scalar
k^-1 mod n, variable time. Callers only pass public values.
Trait Implementations§
Source§impl P256ScalarInvert for P256ScalarInvertImpl
impl P256ScalarInvert for P256ScalarInvertImpl
Source§fn invert(k: P256Scalar) -> P256Scalar
fn invert(k: P256Scalar) -> P256Scalar
k^-1 mod n. Must not have secret-dependent timing: k may be secret.Source§fn invert_vartime(k: P256Scalar) -> P256Scalar
fn invert_vartime(k: P256Scalar) -> P256Scalar
k^-1 mod n, variable time. Callers only pass public values.Auto Trait Implementations§
impl Freeze for P256ScalarInvertImpl
impl RefUnwindSafe for P256ScalarInvertImpl
impl Send for P256ScalarInvertImpl
impl Sync for P256ScalarInvertImpl
impl Unpin for P256ScalarInvertImpl
impl UnsafeUnpin for P256ScalarInvertImpl
impl UnwindSafe for P256ScalarInvertImpl
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