[−][src]Type Definition gf::GF256
type GF256 = GF<u8>;
Methods
impl GF256
[src]
Trait Implementations
impl Field for GF256
[src]
fn zero() -> Self
[src]
Returns the zero element of the field (additive identity)
fn one() -> Self
[src]
Returns the zero element of the field (multiplicative identity)
fn is_zero(&self) -> bool
[src]
Returns true if this element is the additive identity
fn square(&mut self)
[src]
Squares the element
fn inverse(&self) -> Option<Self>
[src]
Returns multiplicative inverse (self^254)
impl Display for GF256
[src]
impl Sub<GF<u8>> for GF256
[src]
type Output = GF256
The resulting type after applying the -
operator.
fn sub(self, other: GF256) -> GF256
[src]
impl Div<GF<u8>> for GF256
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self
[src]
impl Add<GF<u8>> for GF256
[src]
type Output = GF256
The resulting type after applying the +
operator.
fn add(self, other: GF256) -> GF256
[src]
impl Mul<GF<u8>> for GF256
[src]
type Output = GF256
The resulting type after applying the *
operator.