From e94912f7be969dc7ef144eba3b1ed601407ff197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= <rene.kijewski@fu-berlin.de> Date: Wed, 14 May 2014 14:35:35 +0200 Subject: [PATCH] sys/crypo: fix function declarations In #1119 old-style function declarations are exterminated and forbidden. I missed the functions in `sys/crypto` because they weren't used throughout the tests/examples before #1124. --- sys/crypto/3des.c | 2 +- sys/crypto/aes.c | 2 +- sys/crypto/rc5.c | 2 +- sys/crypto/skipjack.c | 2 +- sys/crypto/twofish.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/crypto/3des.c b/sys/crypto/3des.c index 09426a0169..104495f996 100644 --- a/sys/crypto/3des.c +++ b/sys/crypto/3des.c @@ -350,7 +350,7 @@ int tripledes_decrypt(cipher_context_t *context, uint8_t *crypt, uint8_t *plain) return 1; } -uint8_t tripledes_get_preferred_block_size() +uint8_t tripledes_get_preferred_block_size(void) { return THREEDES_BLOCK_SIZE; } diff --git a/sys/crypto/aes.c b/sys/crypto/aes.c index ac65a0e3ce..38ff9800a7 100644 --- a/sys/crypto/aes.c +++ b/sys/crypto/aes.c @@ -1457,7 +1457,7 @@ int aes_decrypt(cipher_context_t *context, uint8_t *cipherBlock, return 1; } -uint8_t aes_get_preferred_block_size() +uint8_t aes_get_preferred_block_size(void) { return AES_BLOCK_SIZE; } diff --git a/sys/crypto/rc5.c b/sys/crypto/rc5.c index aa7df7bbdd..bec7c7a860 100644 --- a/sys/crypto/rc5.c +++ b/sys/crypto/rc5.c @@ -186,7 +186,7 @@ int rc5_setup_key(cipher_context_t *context, uint8_t *key, uint8_t keysize) * cipher operates with multiple block sizes, this will pick one * particular size (deterministically). */ -uint8_t rc5_get_preferred_block_size() +uint8_t rc5_get_preferred_block_size(void) { return BLOCK_SIZE; } diff --git a/sys/crypto/skipjack.c b/sys/crypto/skipjack.c index 5bb57f50ea..5734de7661 100644 --- a/sys/crypto/skipjack.c +++ b/sys/crypto/skipjack.c @@ -345,7 +345,7 @@ int skipjack_setup_key(cipher_context_t *context, uint8_t *key, uint8_t keysize) } -uint8_t skipjack_get_preferred_block_size() +uint8_t skipjack_get_preferred_block_size(void) { return BLOCK_SIZE; } diff --git a/sys/crypto/twofish.c b/sys/crypto/twofish.c index d5120b8cb4..51b1bc0042 100644 --- a/sys/crypto/twofish.c +++ b/sys/crypto/twofish.c @@ -753,7 +753,7 @@ int twofish_decrypt(cipher_context_t *context, uint8_t *in, uint8_t *out) return 1; } -uint8_t twofish_get_preferred_block_size() +uint8_t twofish_get_preferred_block_size(void) { return TWOFISH_BLOCK_SIZE; } -- GitLab