pub fn with_key_id(algorithm: hkdf::Algorithm, key_id: &str) -> Primitive {
            Self {
                algorithm,
                salt: key::get_global()
                    .get_key(key_id)
                    .map(|k| hkdf::Salt::new(algorithm, &k)),
                key_id: key_id.to_string(),
            }
            .into()
        }
/// Construct a new `Hmac` instance with a specified key identifier
Construct a new `Hmac` instance with a specified key identifier
Construct a new ` Hmac ` instance with a specified key identifier
pub fn with_key_id(algorithm: hkdf::Algorithm, key_id: &str) -> Primitive {
            Self {
                algorithm,
                salt: key::get_global()
                    .get_key(key_id)
                    .map(|k| hkdf::Salt::new(algorithm, &k)),
                key_id: key_id.to_string(),
            }
            .into()
        }
pub fn with_key_id ( algorithm : hkdf :: Algorithm , key_id : & str ) -> Primitive { Self { algorithm , salt : key :: get_global ( ) . get_key ( key_id ) . map ( | k | hkdf :: Salt :: new ( algorithm , & k ) ) , key_id : key_id . to_string ( ) , } . into ( ) }
Construct a new `Hmac` instance with a specified key identifier
Construct a new ` Hmac ` instance with a specified key identifier
algorithm
hkdf::Algorithm
key_id
&str
algorithm
hkdf::Algorithm
key_id
&str