Skip to main content

OddInt

Type Alias OddInt 

Source
pub type OddInt<const LIMBS: usize> = Odd<Int<LIMBS>>;
Expand description

Odd signed integer.

Aliased Type§

pub struct OddInt<const LIMBS: usize>(/* private fields */);

Trait Implementations§

Source§

impl<const LIMBS: usize> Gcd<Int<LIMBS>> for OddInt<LIMBS>

Source§

type Output = Odd<Uint<LIMBS>>

Output type.
Source§

fn gcd(&self, rhs: &Int<LIMBS>) -> Self::Output

Compute the greatest common divisor of self and rhs.
Source§

fn gcd_vartime(&self, rhs: &Int<LIMBS>) -> Self::Output

Compute the greatest common divisor of self and rhs in variable time.
Source§

impl<const LIMBS: usize> Gcd<Uint<LIMBS>> for OddInt<LIMBS>

Source§

type Output = Odd<Uint<LIMBS>>

Output type.
Source§

fn gcd(&self, rhs: &Uint<LIMBS>) -> Self::Output

Compute the greatest common divisor of self and rhs.
Source§

fn gcd_vartime(&self, rhs: &Uint<LIMBS>) -> Self::Output

Compute the greatest common divisor of self and rhs in variable time.
Source§

impl<const LIMBS: usize> Gcd for OddInt<LIMBS>

Source§

type Output = Odd<Uint<LIMBS>>

Output type.
Source§

fn gcd(&self, rhs: &OddInt<LIMBS>) -> Self::Output

Compute the greatest common divisor of self and rhs.
Source§

fn gcd_vartime(&self, rhs: &OddInt<LIMBS>) -> Self::Output

Compute the greatest common divisor of self and rhs in variable time.
Source§

impl<const LIMBS: usize> Xgcd for OddInt<LIMBS>

Source§

type Output = XgcdOutput<LIMBS, Odd<Uint<LIMBS>>>

Output type.
Source§

fn xgcd(&self, rhs: &OddInt<LIMBS>) -> Self::Output

Compute the extended greatest common divisor of self and rhs.
Source§

fn xgcd_vartime(&self, rhs: &OddInt<LIMBS>) -> Self::Output

Compute the extended greatest common divisor of self and rhs in variable time.