[][src]Type Definition gf::GF256

type GF256 = GF<u8>;

Methods

impl GF256[src]

pub fn pow(self, elem: u8) -> Self[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.

impl Div<GF<u8>> for GF256[src]

type Output = Self

The resulting type after applying the / operator.

impl Add<GF<u8>> for GF256[src]

type Output = GF256

The resulting type after applying the + operator.

impl Mul<GF<u8>> for GF256[src]

type Output = GF256

The resulting type after applying the * operator.

impl Neg for GF256[src]

type Output = GF256

The resulting type after applying the - operator.

impl AddAssign<GF<u8>> for GF256[src]

impl SubAssign<GF<u8>> for GF256[src]

impl MulAssign<GF<u8>> for GF256[src]

impl DivAssign<GF<u8>> for GF256[src]