#[repr(C)]
pub struct mbedtls_sha512_context { pub total: [u64; 2], pub state: [u64; 8], pub buffer: [c_uchar; 128], pub is384: c_int, }
Expand description

\brief The SHA-512 context structure.

            The structure is used both for SHA-384 and for SHA-512
            checksum calculations. The choice between these two is
            made in the call to mbedtls_sha512_starts_ret().

Fields

total: [u64; 2]

< The number of Bytes processed.

state: [u64; 8]

< The intermediate digest state.

buffer: [c_uchar; 128]

< The data block being processed.

is384: c_int

< Determines which function to use: 0: Use SHA-512, or 1: Use SHA-384.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.