[][src]Struct yogcrypt::sm2::U64x4

pub struct U64x4 {
    pub value: [u64; 4],
}

A 256-bit number represented using four u64's.

Usage

    extern crate yogcrypt;
    use yogcrypt::sm2::*;

    let some_num = U64x4::new(0xd8cb4986_918e9375, 0x3055dfcc_d2870256, 0x973ccca3_1d33bd55, 0xf6fed50c_fd14ede7);

Fields

Methods

impl U64x4
[src]

Create a number with 4 64-bits, with x0 being the less significant digits

The representation for 0

Return a random 256-bit number

Construct the number from 8 u32

Access the i-th lowest bit

impl U64x4
[src]

impl U64x4
[src]

impl U64x4
[src]

impl U64x4
[src]

256-bit addition with carry bit

Trait Implementations

impl Copy for U64x4
[src]

impl Clone for U64x4
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for U64x4
[src]

Formats the value using the given formatter. Read more

impl PartialEq for U64x4
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for U64x4
[src]

impl Display for U64x4
[src]

Formats the value using the given formatter. Read more

impl Not for U64x4
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

impl BitAnd for U64x4
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl BitOr for U64x4
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl BitXor for U64x4
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl BitAndAssign for U64x4
[src]

Performs the &= operation.

impl BitOrAssign for U64x4
[src]

Performs the |= operation.

impl BitXorAssign for U64x4
[src]

Performs the ^= operation.

impl Neg for U64x4
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl Add for U64x4
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub for U64x4
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Ord for U64x4
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for U64x4
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

impl Send for U64x4

impl Sync for U64x4

Blanket Implementations

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

Performs the conversion.

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

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToString for T where
    T: Display + ?Sized
[src]

Converts the given value to a String. Read more

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut W

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut W

Mutably borrows from an owned value. Read more