pub struct PrivateKeyOps {
pub common: &'static CommonOps,
elem_inv_squared: fn(a: &Elem<Q, R>) -> Elem<Q, R>,
point_mul_base_impl: fn(a: &Elem<N, Unencoded>) -> Point,
point_mul_impl: unsafe extern "C" fn(r: *mut u64, p_scalar: *const u64, p_x: *const u64, p_y: *const u64),
}
Expand description
Operations on private keys, for ECDH and ECDSA signing.
Fields§
§common: &'static CommonOps
§elem_inv_squared: fn(a: &Elem<Q, R>) -> Elem<Q, R>
§point_mul_base_impl: fn(a: &Elem<N, Unencoded>) -> Point
§point_mul_impl: unsafe extern "C" fn(r: *mut u64, p_scalar: *const u64, p_x: *const u64, p_y: *const u64)
Implementations§
source§impl PrivateKeyOps
impl PrivateKeyOps
pub fn leak_limbs<'a>(&self, a: &'a Elem<Q, Unencoded>) -> &'a [u64]
pub fn point_mul_base(&self, a: &Elem<N, Unencoded>) -> Point
pub fn point_mul( &self, p_scalar: &Elem<N, Unencoded>, (p_x, p_y): &(Elem<Q, R>, Elem<Q, R>), ) -> Point
pub fn elem_inverse_squared(&self, a: &Elem<Q, R>) -> Elem<Q, R>
Auto Trait Implementations§
impl Freeze for PrivateKeyOps
impl RefUnwindSafe for PrivateKeyOps
impl Send for PrivateKeyOps
impl Sync for PrivateKeyOps
impl Unpin for PrivateKeyOps
impl UnwindSafe for PrivateKeyOps
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