pub struct Gf256(pub u8);Expand description
GF(2^8) — the field of the multivariate-signature attack surface. All arithmetic delegates
to logicaffeine_base::gf256 (the exhaustively-verified shared field substrate).
Tuple Fields§
§0: u8Trait Implementations§
Source§impl Field for Gf256
impl Field for Gf256
Source§const MULTILINEAR: bool = false
const MULTILINEAR: bool = false
Whether the polynomial ring is multilinear (
x² = x). True for GF(2), where we impose
the field equations; false for GF(256), where quadratics are genuine.fn zero() -> Self
fn one() -> Self
fn add(self, o: Self) -> Self
fn sub(self, o: Self) -> Self
fn mul(self, o: Self) -> Self
fn is_zero(self) -> bool
impl Copy for Gf256
impl Eq for Gf256
impl StructuralPartialEq for Gf256
Auto Trait Implementations§
impl Freeze for Gf256
impl RefUnwindSafe for Gf256
impl Send for Gf256
impl Sync for Gf256
impl Unpin for Gf256
impl UnsafeUnpin for Gf256
impl UnwindSafe for Gf256
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