eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 876fe9f210da8553c369d05ab176a3d1fe8ecdd6
parent b735c90c42d758ab525a90c9ec2daa433d13b7ae
Author: James Prestwood <prestwoj@gmail.com>
Date:   Mon, 22 Nov 2021 12:44:23 -0800

crypto: use void* for hkdf_expand

This makes it more flexible for other storage types

Diffstat:
Msrc/crypto.c | 2+-
Msrc/crypto.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/crypto.c b/src/crypto.c @@ -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); diff --git a/src/crypto.h b/src/crypto.h @@ -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,