[][src]Struct ed448::Scalar

pub struct Scalar(_);

This is the scalar field size = 4q = 2^446 - 0x8335dc163bb124b65129c96fde933d8d723a70aadc873d6d54a7bb0d We can therefore use 14 saturated 32-bit limbs

Methods

impl Scalar[src]

pub fn one() -> Scalar[src]

pub fn zero() -> Scalar[src]

pub fn bits(&self) -> Vec<bool>[src]

pub fn from_bytes(bytes: [u8; 56]) -> Scalar[src]

pub fn to_bytes(&self) -> [u8; 56][src]

pub fn invert(&self) -> Self[src]

pub fn halve(&self) -> Self[src]

Halves a Scalar

Trait Implementations

impl Add<Scalar> for Scalar[src]

type Output = Scalar

The resulting type after applying the + operator.

impl Clone for Scalar[src]

impl Copy for Scalar[src]

impl Debug for Scalar[src]

impl Default for Scalar[src]

impl Eq for Scalar[src]

impl From<u32> for Scalar[src]

impl Index<usize> for Scalar[src]

type Output = u32

The returned type after indexing.

impl IndexMut<usize> for Scalar[src]

impl Mul<Scalar> for Scalar[src]

type Output = Scalar

The resulting type after applying the * operator.

impl PartialEq<Scalar> for Scalar[src]

impl StructuralEq for Scalar[src]

impl StructuralPartialEq for Scalar[src]

impl Sub<Scalar> for Scalar[src]

type Output = Scalar

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Scalar

impl Send for Scalar

impl Sync for Scalar

impl Unpin for Scalar

impl UnwindSafe for Scalar

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.