3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

crypto: use void* for hkdf_expand

This makes it more flexible for other storage types
This commit is contained in:
James Prestwood 2021-11-22 12:44:23 -08:00 committed by Denis Kenzior
parent b735c90c42
commit 876fe9f210
2 changed files with 2 additions and 2 deletions

View File

@ -860,7 +860,7 @@ bool hkdf_extract(enum l_checksum_type type, const void *key,
return (ret == (int) dlen);
}
bool hkdf_expand(enum l_checksum_type type, const uint8_t *key, size_t key_len,
bool hkdf_expand(enum l_checksum_type type, const void *key, size_t key_len,
const char *info, void *out, size_t out_len)
{
return prf_plus(type, key, key_len, info, out, out_len, 0);

View File

@ -122,7 +122,7 @@ bool prf_plus(enum l_checksum_type type, const void *key, size_t key_len,
bool hkdf_extract(enum l_checksum_type type, const void *key, size_t key_len,
uint8_t num_args, void *out, ...);
bool hkdf_expand(enum l_checksum_type type, const uint8_t *key, size_t key_len,
bool hkdf_expand(enum l_checksum_type type, const void *key, size_t key_len,
const char *info, void *out, size_t out_len);
bool crypto_derive_pairwise_ptk(const uint8_t *pmk, size_t pmk_len,