[][src]Trait curv_kzen::arithmetic::traits::Modulo

pub trait Modulo {
    fn mod_pow(base: &Self, exponent: &Self, modulus: &Self) -> Self;
fn mod_mul(a: &Self, b: &Self, modulus: &Self) -> Self;
fn mod_sub(a: &Self, b: &Self, modulus: &Self) -> Self;
fn mod_add(a: &Self, b: &Self, modulus: &Self) -> Self;
fn mod_inv(a: &Self, modulus: &Self) -> Self; }

Required methods

fn mod_pow(base: &Self, exponent: &Self, modulus: &Self) -> Self

fn mod_mul(a: &Self, b: &Self, modulus: &Self) -> Self

fn mod_sub(a: &Self, b: &Self, modulus: &Self) -> Self

fn mod_add(a: &Self, b: &Self, modulus: &Self) -> Self

fn mod_inv(a: &Self, modulus: &Self) -> Self

Loading content...

Implementations on Foreign Types

impl Modulo for Mpz[src]

Loading content...

Implementors

Loading content...