[][src]Function ffsend_api::crypto::sig::signature

pub fn signature(key: &[u8], data: &[u8]) -> Result<Vec<u8>, ErrorStack>

Compute the signature for the given data and key. This is done using an HMAC key using the SHA256 digest.

If computing the signature failed, an error is returned.