hmac_sha256
在C / C ++中最小化HMAC-SHA256实现
该存储库提供了最少的HMAC-Sha256代码,您可以将其复制到自己的项目中。 hmac_sha256函数如下所示:
size_t // Returns the number of bytes written to `out`
hmac_sha256 (
// [in]: The key and its length.
// Should be at least 32 bytes long for optimal security.
const void * key, const size_t keylen,
// [in]: The data to hash alongside the key.
const void * data, const size_t
1