eiwd

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

commit 412fea3ffaa29ad0a1c9457eb5ceeda51b06811e
parent ed283d7b14d7b610fc7508b9572d8113a04476d8
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Tue, 29 Jun 2021 11:11:24 -0500

crypto: Make hkdf_extract take void *

This makes it easier to use from unit tests and other places which might
be dealing with const char * data.

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

diff --git a/src/crypto.c b/src/crypto.c @@ -770,9 +770,9 @@ bool kdf_sha384(const void *key, size_t key_len, * * Null key equates to a zero key (makes calls in EAP-PWD more convenient) */ -bool hkdf_extract(enum l_checksum_type type, const uint8_t *key, +bool hkdf_extract(enum l_checksum_type type, const void *key, size_t key_len, uint8_t num_args, - uint8_t *out, ...) + void *out, ...) { struct l_checksum *hmac; struct iovec iov[num_args]; diff --git a/src/crypto.h b/src/crypto.h @@ -109,8 +109,8 @@ bool prf_sha1(const void *key, size_t key_len, bool prf_plus_sha1(const void *key, size_t key_len, const void *prefix, size_t prefix_len, const void *data, size_t data_len, void *output, size_t size); -bool hkdf_extract(enum l_checksum_type type, const uint8_t *key, size_t key_len, - uint8_t num_args, uint8_t *out, ...); +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, const char *info, size_t info_len, void *out,