diff --git a/lib-platform/crypto/crypto_scrypt.c b/lib-platform/crypto/crypto_scrypt.c index a98d4306..6057f0af 100644 --- a/lib-platform/crypto/crypto_scrypt.c +++ b/lib-platform/crypto/crypto_scrypt.c @@ -45,7 +45,7 @@ #include "crypto_scrypt.h" -static void (*smix_func)(uint8_t *, size_t, uint64_t, void *, void *) = NULL; +static void (* smix_func)(uint8_t *, size_t, uint64_t, void *, void *) = NULL; /** * crypto_scrypt_internal(passwd, passwdlen, salt, saltlen, N, r, p, buf, @@ -56,7 +56,7 @@ static int crypto_scrypt_internal(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt, size_t saltlen, uint64_t N, uint32_t _r, uint32_t _p, uint8_t * buf, size_t buflen, - void (*smix)(uint8_t *, size_t, uint64_t, void *, void *)) + void (* smix)(uint8_t *, size_t, uint64_t, void *, void *)) { void * B0, * V0, * XY0; uint8_t * B; @@ -192,7 +192,7 @@ static struct scrypt_test { }; static int -testsmix(void (*smix)(uint8_t *, size_t, uint64_t, void *, void *)) +testsmix(void (* smix)(uint8_t *, size_t, uint64_t, void *, void *)) { uint8_t hbuf[TESTLEN]; diff --git a/libcperciva/alg/sha256.c b/libcperciva/alg/sha256.c index d698eddc..1321f1f0 100644 --- a/libcperciva/alg/sha256.c +++ b/libcperciva/alg/sha256.c @@ -140,7 +140,7 @@ static int hwtest(const uint32_t state[static restrict 8], const uint8_t block[static restrict 64], uint32_t W[static restrict 64], uint32_t S[static restrict 8], - void(* func)(uint32_t state[static restrict 8], + void (* func)(uint32_t state[static restrict 8], const uint8_t block[static restrict 64], uint32_t W[static restrict 64], uint32_t S[static restrict 8])) { diff --git a/libcperciva/crypto/crypto_aes.c b/libcperciva/crypto/crypto_aes.c index 8d64761c..f884605b 100644 --- a/libcperciva/crypto/crypto_aes.c +++ b/libcperciva/crypto/crypto_aes.c @@ -67,7 +67,7 @@ static struct aes_test { /* Test a function against test vectors. */ static int -functest(int(* func)(const uint8_t *, size_t, const uint8_t[16], uint8_t[16])) +functest(int (* func)(const uint8_t *, size_t, const uint8_t[16], uint8_t[16])) { struct aes_test * knowngood; uint8_t ctext[16];