crypto_bigint::modular

Trait Retrieve

Source
pub trait Retrieve {
    type Output;

    // Required method
    fn retrieve(&self) -> Self::Output;
}
Expand description

A generalization for numbers kept in optimized representations (e.g. Montgomery) that can be converted back to the original form.

Required Associated Types§

Source

type Output

The original type.

Required Methods§

Source

fn retrieve(&self) -> Self::Output

Convert the number back from the optimized representation.

Implementors§

Source§

impl<MOD: ResidueParams<LIMBS>, const LIMBS: usize> Retrieve for Residue<MOD, LIMBS>

Source§

type Output = Uint<LIMBS>

Source§

impl<const LIMBS: usize> Retrieve for DynResidue<LIMBS>

Source§

type Output = Uint<LIMBS>