Skip to main content

HMAC_SHA256

Type Alias HMAC_SHA256 

Source
pub type HMAC_SHA256 = HMAC<SHA256, 64>;
Expand description

Public type for HKDF using SHA256.

Aliased Type§

pub struct HMAC_SHA256 { /* private fields */ }

Trait Implementations§

Source§

impl Algorithm for HMAC_SHA256

Source§

const ALG_NAME: &'static str = HMAC_SHA256_NAME

String name for the algorithm, used consistently across the library.
Source§

const MAX_SECURITY_STRENGTH: SecurityStrength = SecurityStrength::_128bit

Maximum security strength supported by the algorithm. In other words, this algorithm can produce outputs up to this security strength, but may produce outputs with lower security strength, for example, if asked to truncate.
Source§

impl AlgorithmOID for HMAC_SHA256

Defined in RFC 4231: id-hmacWithSHA256 { digestAlgorithm 9 }

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.