Lines Matching refs:Algorithm
25 pub struct Algorithm(hmac::Algorithm); struct
27 impl Algorithm { impl
30 pub fn hmac_algorithm(&self) -> hmac::Algorithm { in hmac_algorithm() argument
36 pub static HKDF_SHA1_FOR_LEGACY_USE_ONLY: Algorithm =
37 Algorithm(hmac::HMAC_SHA1_FOR_LEGACY_USE_ONLY);
40 pub static HKDF_SHA256: Algorithm = Algorithm(hmac::HMAC_SHA256);
43 pub static HKDF_SHA384: Algorithm = Algorithm(hmac::HMAC_SHA384);
46 pub static HKDF_SHA512: Algorithm = Algorithm(hmac::HMAC_SHA512);
48 impl KeyType for Algorithm { implementation
64 pub fn new(algorithm: Algorithm, value: &[u8]) -> Self { in new() argument
85 pub fn algorithm(&self) -> Algorithm { in algorithm() argument
86 Algorithm(self.0.algorithm()) in algorithm()
90 impl From<Okm<'_, Algorithm>> for Salt {
91 fn from(okm: Okm<'_, Algorithm>) -> Self { in from()
117 pub fn new_less_safe(algorithm: Algorithm, value: &[u8]) -> Self { in new_less_safe() argument
145 impl From<Okm<'_, Algorithm>> for Prk {
146 fn from(okm: Okm<Algorithm>) -> Self { in from()