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