diff --git a/sys/hashes/pbkdf2.c b/sys/hashes/pbkdf2.c index 4e89f391be53..ab580a000573 100644 --- a/sys/hashes/pbkdf2.c +++ b/sys/hashes/pbkdf2.c @@ -43,8 +43,8 @@ static void inplace_xor_digests(uint8_t *d1, const uint8_t *d2) } } -void pbkdf2_sha256(const uint8_t *password, size_t password_len, - const uint8_t *salt, size_t salt_len, +void pbkdf2_sha256(const void *password, size_t password_len, + const void *salt, size_t salt_len, int iterations, uint8_t *output) { diff --git a/sys/include/hashes/pbkdf2.h b/sys/include/hashes/pbkdf2.h index 11483ff2abb0..8e8541c72c1c 100644 --- a/sys/include/hashes/pbkdf2.h +++ b/sys/include/hashes/pbkdf2.h @@ -47,8 +47,8 @@ extern "C" { * recommended 10000 * @param[out] output array of size PBKDF2_KEY_SIZE */ -void pbkdf2_sha256(const uint8_t *password, size_t password_len, - const uint8_t *salt, size_t salt_len, +void pbkdf2_sha256(const void *password, size_t password_len, + const void *salt, size_t salt_len, int iterations, uint8_t *output);