Realm

oa::crypto::ntt::NttConfig

Struct published by the oa::crypto::ntt module.

StRust public API

Declaration

pub struct NttConfig { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn with_representation(self, representation: NttRepresentation) -> Self
pub const fn modulus(&self) -> u64
pub const fn length(&self) -> usize
pub const fn root(&self) -> u64
pub const fn representation(&self) -> NttRepresentation
fn clone(&self) -> NttConfig
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

pub fn new(modulus: u64, root: u64, length: usize) -> Result<Self>

Public Method Documentation

pub fn with_representation( self, representation: NttRepresentation ) -> Self
No public source comment is attached to this declaration.
pub const fn modulus( &self ) -> u64
No public source comment is attached to this declaration.
pub const fn length( &self ) -> usize
No public source comment is attached to this declaration.
pub const fn root( &self ) -> u64
No public source comment is attached to this declaration.
pub const fn representation( &self ) -> NttRepresentation
No public source comment is attached to this declaration.
fn clone( &self ) -> NttConfig
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
pub fn new( modulus: u64, root: u64, length: usize ) -> Result<Self>
No public source comment is attached to this declaration.