Function cipherstash_dynamodb::crypto::hmac

source ·
pub fn hmac(
    value: &str,
    salt: Option<&str>,
    cipher: &Encryption<impl Credentials<Token = ServiceToken>>,
) -> Result<Vec<u8>, EncryptionError>
Expand description

Use a CipherStash ExactIndex to take the HMAC of a string with a provided salt

This value is used for term index keys and “encrypted” partition / sort keys