Struct esp_idf_sys::mbedtls_sha512_context
source · [−]#[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
sourceimpl Clone for mbedtls_sha512_context
impl Clone for mbedtls_sha512_context
sourcefn clone(&self) -> mbedtls_sha512_context
fn clone(&self) -> mbedtls_sha512_context
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for mbedtls_sha512_context
impl Debug for mbedtls_sha512_context
sourceimpl Default for mbedtls_sha512_context
impl Default for mbedtls_sha512_context
impl Copy for mbedtls_sha512_context
Auto Trait Implementations
impl RefUnwindSafe for mbedtls_sha512_context
impl Send for mbedtls_sha512_context
impl Sync for mbedtls_sha512_context
impl Unpin for mbedtls_sha512_context
impl UnwindSafe for mbedtls_sha512_context
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more