Skip to content

Commit 2519c0b

Browse files
committed
core/crypto/sha256.h: fix for kernel 6.18
1 parent 39f5630 commit 2519c0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/crypto/sha256.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
1616
const u8 *addr[], const size_t *len, u8 *mac);
1717
#endif
18+
#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 18, 0))
1819
int hmac_sha256(const u8 *key, size_t key_len, const u8 *data,
1920
size_t data_len, u8 *mac);
21+
#endif
2022
int sha256_prf(const u8 *key, size_t key_len, const char *label,
2123
const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
2224
int sha256_prf_bits(const u8 *key, size_t key_len, const char *label,

0 commit comments

Comments
 (0)