#[repr(C)]pub struct mbedtls_sha512_context {
pub private_total: [u64; 2],
pub private_state: [u64; 8],
pub private_buffer: [c_uchar; 128],
pub private_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().Fields§
§private_total: [u64; 2]< The number of Bytes processed.
private_state: [u64; 8]< The intermediate digest state.
private_buffer: [c_uchar; 128]< The data block being processed.
private_is384: c_int< Determines which function to use: 0: Use SHA-512, or 1: Use SHA-384.
Trait Implementations§
Source§impl Clone for mbedtls_sha512_context
impl Clone for mbedtls_sha512_context
Source§fn clone(&self) -> mbedtls_sha512_context
fn clone(&self) -> mbedtls_sha512_context
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for mbedtls_sha512_context
impl Debug for mbedtls_sha512_context
Source§impl Default for mbedtls_sha512_context
impl Default for mbedtls_sha512_context
impl Copy for mbedtls_sha512_context
Auto Trait Implementations§
impl Freeze for mbedtls_sha512_context
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 UnsafeUnpin for mbedtls_sha512_context
impl UnwindSafe for mbedtls_sha512_context
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)