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
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยง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.
Sourceยงimpl IndexMut<usize> for Polynomial
Convenience function to avoid โ.0โ all over the place.
impl IndexMut<usize> for Polynomial
Convenience function to avoid โ.0โ all over the place.