Skip to main content

SHA256

Type Alias SHA256 

Source
pub type SHA256 = SHA256Internal<SHA256Params>;
Expand description

Public type for SHA256.

Aliased Type§

pub struct SHA256 { /* private fields */ }

Trait Implementations§

Source§

impl AlgorithmOID for SHA256

Assigned by NIST in the Computer Security Objects Register: id-sha256 { hashAlgs 1 }

Source§

const OID: &'static [u32]

The OID in component form – each u32 is one OID component.
Source§

const OID_DER: &'static [u8]

The OID in its DER-encoded form.
Source§

impl HashAlgParams for SHA256

Source§

const OUTPUT_LEN: usize = 32

The fixed output length of the hash function.
Source§

const BLOCK_LEN: usize = 64

The internal block length of the hash function, which is often used as a meta-parameter for determining the security strength of the hash function since this limits the internal collision resistance of the hash function.