pub struct ScalarOps {
pub common: &'static CommonOps,
scalar_mul_mont: unsafe extern "C" fn(r: *mut u64, a: *const u64, b: *const u64),
}
Fields§
§common: &'static CommonOps
§scalar_mul_mont: unsafe extern "C" fn(r: *mut u64, a: *const u64, b: *const u64)
Implementations§
source§impl ScalarOps
impl ScalarOps
pub fn scalar_bytes_len(&self) -> usize
pub fn leak_limbs<'s>(&self, s: &'s Elem<N, Unencoded>) -> &'s [u64]
pub fn scalar_product<EA: Encoding, EB: Encoding>(
&self,
a: &Elem<N, EA>,
b: &Elem<N, EB>,
) -> Elem<N, <(EA, EB) as ProductEncoding>::Output>where
(EA, EB): ProductEncoding,
Auto Trait Implementations§
impl Freeze for ScalarOps
impl RefUnwindSafe for ScalarOps
impl Send for ScalarOps
impl Sync for ScalarOps
impl Unpin for ScalarOps
impl UnwindSafe for ScalarOps
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