mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
crypto: use void* for hkdf_expand
This makes it more flexible for other storage types
This commit is contained in:
parent
b735c90c42
commit
876fe9f210
@ -860,7 +860,7 @@ bool hkdf_extract(enum l_checksum_type type, const void *key,
|
|||||||
return (ret == (int) dlen);
|
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)
|
const char *info, void *out, size_t out_len)
|
||||||
{
|
{
|
||||||
return prf_plus(type, key, key_len, info, out, out_len, 0);
|
return prf_plus(type, key, key_len, info, out, out_len, 0);
|
||||||
|
@ -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,
|
bool hkdf_extract(enum l_checksum_type type, const void *key, size_t key_len,
|
||||||
uint8_t num_args, void *out, ...);
|
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);
|
const char *info, void *out, size_t out_len);
|
||||||
|
|
||||||
bool crypto_derive_pairwise_ptk(const uint8_t *pmk, size_t pmk_len,
|
bool crypto_derive_pairwise_ptk(const uint8_t *pmk, size_t pmk_len,
|
||||||
|
Loading…
Reference in New Issue
Block a user