pub struct PublicScalarOps {
pub scalar_ops: &'static ScalarOps,
pub public_key_ops: &'static PublicKeyOps,
pub twin_mul: fn(g_scalar: &Elem<N, Unencoded>, p_scalar: &Elem<N, Unencoded>, p_xy: &(Elem<Q, R>, Elem<Q, R>)) -> Point,
pub scalar_inv_to_mont_vartime: fn(s: &Elem<N, Unencoded>) -> Elem<N, R>,
pub q_minus_n: Elem<Q, Unencoded>,
}
Expand description
Operations on public scalars needed by ECDSA signature verification.
Fields§
§scalar_ops: &'static ScalarOps
§public_key_ops: &'static PublicKeyOps
§twin_mul: fn(g_scalar: &Elem<N, Unencoded>, p_scalar: &Elem<N, Unencoded>, p_xy: &(Elem<Q, R>, Elem<Q, R>)) -> Point
§scalar_inv_to_mont_vartime: fn(s: &Elem<N, Unencoded>) -> Elem<N, R>
§q_minus_n: Elem<Q, Unencoded>
Implementations§
source§impl PublicScalarOps
impl PublicScalarOps
pub fn n(&self) -> &Elem<Q, Unencoded>
pub fn scalar_as_elem(&self, a: &Elem<N, Unencoded>) -> Elem<Q, Unencoded>
pub fn elem_equals_vartime( &self, a: &Elem<Q, Unencoded>, b: &Elem<Q, Unencoded>, ) -> bool
pub fn elem_less_than( &self, a: &Elem<Q, Unencoded>, b: &Elem<Q, Unencoded>, ) -> bool
pub fn scalar_inv_to_mont_vartime(&self, s: &Elem<N, Unencoded>) -> Elem<N, R>
Auto Trait Implementations§
impl Freeze for PublicScalarOps
impl RefUnwindSafe for PublicScalarOps
impl Send for PublicScalarOps
impl Sync for PublicScalarOps
impl Unpin for PublicScalarOps
impl UnwindSafe for PublicScalarOps
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