Struct SF
Other items inmiracl32::rsa3072::ff
pub struct SF { /* fields omitted */ }
impl SF
pub fn new() -> SF
pub fn zero(&mut self)
pub fn set(&mut self, m: isize)
pub fn copy(&mut self, b: &SF)
pub fn one(&mut self)
pub fn iszilch(&self) -> bool
pub fn shrw(&mut self, n: usize)
pub fn shlw(&mut self, n: usize)
pub fn parity(&self) -> isize
pub fn lastbits(&mut self, m: usize) -> isize
pub fn add(&mut self, b: &SF)
pub fn sub(&mut self, b: &SF)
pub fn revsub(&mut self, b: &SF)
pub fn norm(&mut self)
pub fn inc(&mut self, m: isize)
pub fn dec(&mut self, m: isize)
pub fn shl(&mut self)
pub fn shr(&mut self)
pub fn tobytes(&mut self, b: &mut [u8])
pub fn mod2m(&mut self, m: usize)
pub fn random(&mut self, rng: &mut impl RAND)
pub fn comp(&self, b: &SF) -> isize
pub fn frombytes(&mut self, b: &[u8])
pub fn cswap(&mut self, b: &mut SF, d: isize)
pub fn rmod(&mut self, m: &SF)
pub fn invmodp(&mut self, p: &SF)
pub fn lmul(&mut self, y: &SF)
pub fn invmod2m(&self) -> SF
pub fn sdcopy(&mut self, b: &DF)
pub fn sducopy(&mut self, b: &DF)
pub fn nres(&mut self, m: &SF)
pub fn redc(&mut self, m: &SF, md: &SF)
pub fn randomnum(&mut self, p: &SF, rng: &mut impl RAND)
pub fn modmul(&mut self, y: &SF, p: &SF, nd: &SF)
pub fn modsqr(&mut self, p: &SF, nd: &SF)
pub fn skpow(&mut self, e: &SF, p: &SF)
pub fn pow(&mut self, e: &SF, p: &SF)
pub fn cfactor(&self, s: isize) -> bool
pub fn isprime(&self, rng: &mut impl RAND) -> bool
pub fn mul(&self, y: &SF) -> DF
pub fn sqr(&self) -> DF
impl Send for SF
impl Sync for SF
impl Unpin for SF
impl<T> Any for T where T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
Gets the TypeId of self. Read more
TypeId
self
impl<T> Borrow<T> for T where T: ?Sized,
pub fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> From<T> for T
pub fn from(t: T) -> T
Performs the conversion.
impl<T, U> Into<U> for T where U: From<T>,
pub fn into(self) -> U
impl<T, U> TryFrom<U> for T where U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T where U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>