pub struct Polynomial { /* private fields */ }Expand description
A polynomial over the ML-KEM ring. Dev note: this doesn’t strictly need to be pub … ie there’s no good reason for a caller to use this class directly, but in order to test the Debug and Display traits, you need STD, so those can’t be tested from inline tests in this file and the real unit tests are in a different crate, so here we are.
§🚨 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>.
Note: at the moment, nothing in this crate uses Secret<Polynomial>, so I have left the impl ZeroizablePrimitive commented-out.
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.