aboutsummaryrefslogtreecommitdiff
path: root/src/common/aes.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-28 00:36:03 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-28 00:36:03 +0000
commitd6368fd07595466dc8f2fbdff9257445f7c1acd0 (patch)
tree9ebbbe5aee69e4d2a3043150b9f73112c037685d /src/common/aes.c
parent1a3e1c5510aa0b167dd0c882317c6d0dc67f0e1b (diff)
downloadtor-d6368fd07595466dc8f2fbdff9257445f7c1acd0.tar
tor-d6368fd07595466dc8f2fbdff9257445f7c1acd0.tar.gz
r11976@catbus: nickm | 2007-02-27 19:35:59 -0500
Add some missing (redundant but helpful in most cases) static declarations, and remove a function nobody was calling. svn:r9672
Diffstat (limited to 'src/common/aes.c')
-rw-r--r--src/common/aes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/aes.c b/src/common/aes.c
index 2e84a58d4..0b87f4415 100644
--- a/src/common/aes.c
+++ b/src/common/aes.c
@@ -689,7 +689,7 @@ static const u32 rcon[] = {
*
* @return the number of rounds for the given cipher key size.
*/
-int
+static int
rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits)
{
int i = 0;
@@ -773,10 +773,10 @@ rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits)
}
#ifdef USE_RIJNDAEL_COUNTER_OPTIMIZATION
-void
+static void
rijndaelEncrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, u32 ctr1, u32 ctr0, u8 ct[16])
#else
-void
+static void
rijndaelEncrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 pt[16], u8 ct[16])
#endif
{