riot_sys

Type Alias sha256_context_t

Source
pub type sha256_context_t = sha2xx_context_t;
Expand description

@brief Structure to hold the SHA-2XX context.

Aliased Type§

struct sha256_context_t {
    pub state: [u32; 8],
    pub count: [u32; 2],
    pub buf: [u8; 64],
}

Fields§

§state: [u32; 8]

global state

§count: [u32; 2]

processed bits counter

§buf: [u8; 64]

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: 104 bytes

Trait Implementations

Source§

impl Clone for sha2xx_context_t

Source§

fn clone(&self) -> sha2xx_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 sha2xx_context_t

Source§

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

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

impl Default for sha2xx_context_t

Source§

fn default() -> Self

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

impl Copy for sha2xx_context_t