pub struct Polynomial { /* private fields */ }Expand description
A polynomial over the ML-DSA ring.
Dev note: The following structure does not necessarily need to be declared as public. There is no real scenario where this function needs to be called directly. However, in order to test the Debug and Display traits, it is necessary to use STD, so those canโt be tested from inline tests in this file and the real unit tests are in a different crate. Thatโs the reason why pub is used.
ยง๐จ Security ๐จ
Polynomials themselves are not inherently secret since sometimes they are part of public keys
and sometimes private keys.
It is the responsibility of the caller to wrap sensitive instances in Secret<Polynomial>.
Implementationsยง
Sourceยงimpl Polynomial
impl Polynomial
Trait Implementationsยง
Sourceยงimpl Clone for Polynomial
impl Clone for Polynomial
Sourceยงfn clone(&self) -> Polynomial
fn clone(&self) -> Polynomial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Polynomial
Sourceยงimpl Index<usize> for Polynomial
Convenience function to avoid โ.0โ all over the place.
impl Index<usize> for Polynomial
Convenience function to avoid โ.0โ all over the place.
Auto Trait Implementationsยง
impl Freeze for Polynomial
impl RefUnwindSafe for Polynomial
impl Send for Polynomial
impl Sync for Polynomial
impl Unpin for Polynomial
impl UnsafeUnpin for Polynomial
impl UnwindSafe for Polynomial
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more