riot_sys

Type Alias sha512_context_t

Source
pub type sha512_context_t = sha512_common_context_t;
Expand description

@brief Structure to hold the SHA-512 context.

Aliased Type§

struct sha512_context_t {
    pub state: [u64; 8],
    pub count: [u64; 2],
    pub buf: [u8; 128],
}

Fields§

§state: [u64; 8]

global state

§count: [u64; 2]

processed bits counter

§buf: [u8; 128]

data buffer

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 208 bytes

Trait Implementations

Source§

impl Clone for sha512_common_context_t

Source§

fn clone(&self) -> sha512_common_context_t

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for sha512_common_context_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for sha512_common_context_t

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for sha512_common_context_t