Merge pull request #195 from Benetti-Engineering/fix/linux-6.18

Fix hmac_sha256() conflict with linux function
This commit is contained in:
morrownr 2025-12-14 15:19:38 -06:00 committed by GitHub
commit 7f63a9da2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
* @mac: Buffer for the hash (32 bytes) * @mac: Buffer for the hash (32 bytes)
* Returns: 0 on success, -1 on failure * Returns: 0 on success, -1 on failure
*/ */
int hmac_sha256(const u8 *key, size_t key_len, const u8 *data, int rtl_hmac_sha256(const u8 *key, size_t key_len, const u8 *data,
size_t data_len, u8 *mac) size_t data_len, u8 *mac)
{ {
return hmac_sha256_vector(key, key_len, 1, &data, &data_len, mac); return hmac_sha256_vector(key, key_len, 1, &data, &data_len, mac);

View File

@ -13,7 +13,7 @@
int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
const u8 *addr[], const size_t *len, u8 *mac); const u8 *addr[], const size_t *len, u8 *mac);
int hmac_sha256(const u8 *key, size_t key_len, const u8 *data, int rtl_hmac_sha256(const u8 *key, size_t key_len, const u8 *data,
size_t data_len, u8 *mac); size_t data_len, u8 *mac);
int sha256_prf(const u8 *key, size_t key_len, const char *label, int sha256_prf(const u8 *key, size_t key_len, const char *label,
const u8 *data, size_t data_len, u8 *buf, size_t buf_len); const u8 *data, size_t data_len, u8 *buf, size_t buf_len);