CryptoSha256TranscriptProcessor

Trait CryptoSha256TranscriptProcessor 

Source
pub trait CryptoSha256TranscriptProcessor {
    // Required methods
    fn sha256_update(&mut self, _: &[u8]);
    fn sha256_fork(&self) -> Self;
    fn sha256_finalize(self) -> [u8; 32];
}
Expand description

Transcript processor used to hash handshakes. Typically implemented by the crypto provider.

Required Methods§

Source

fn sha256_update(&mut self, _: &[u8])

Update the SHA256 Transcript with the given data

Source

fn sha256_fork(&self) -> Self

Clone ourselves

Source

fn sha256_finalize(self) -> [u8; 32]

Finalize the current SHA384 digest

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§