diff options
author | Werner Koch <wk@gnupg.org> | 2002-05-02 14:09:27 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-05-02 14:09:27 +0000 |
commit | 9e4c8a9ed1ea23264295969053c6a09965ec224d (patch) | |
tree | 656e5407aa8cf3225db1d98caddb1b9d17b4037b /cipher/des.c | |
parent | 5c1359f10190b23c5d95dfd711809cb656e600dc (diff) | |
download | libgcrypt-9e4c8a9ed1ea23264295969053c6a09965ec224d.tar.gz |
* random.c (_gcry_fast_random_poll): Initialize the module so the
mutex can be used.
* primegen.c (small_prime_numbers): Moved table from smallprime.c
* smallprime.c: Fiel removed.
* des.c (leftkey_swap, rightkey_swap, working_memcmp): Made static.
* cipher.c (gcry_cipher_map_name): Map "RIJNDAEL" to "AES".
* rijndael.c (rijndael_get_info): We do only support a 128 bit
blocksize so it makes sense to change the algorithm strings to
AES.
* tiger.c (tiger_final): Removed superfluous token pasting operators.
* md5.c (md5_final): Ditto.
Diffstat (limited to 'cipher/des.c')
-rw-r--r-- | cipher/des.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cipher/des.c b/cipher/des.c index 7d089c58..9737133b 100644 --- a/cipher/des.c +++ b/cipher/des.c @@ -126,7 +126,7 @@ * According to the SunOS man page, memcmp returns indeterminate sign * depending on whether characters are signed or not. */ -int +static int working_memcmp( const char *a, const char *b, size_t n ) { for( ; n; n--, a++, b++ ) @@ -304,7 +304,7 @@ static u32 sbox8[64] = * These two tables are part of the 'permuted choice 1' function. * In this implementation several speed improvements are done. */ -u32 leftkey_swap[16] = +static u32 leftkey_swap[16] = { 0x00000000, 0x00000001, 0x00000100, 0x00000101, 0x00010000, 0x00010001, 0x00010100, 0x00010101, @@ -312,7 +312,7 @@ u32 leftkey_swap[16] = 0x01010000, 0x01010001, 0x01010100, 0x01010101 }; -u32 rightkey_swap[16] = +static u32 rightkey_swap[16] = { 0x00000000, 0x01000000, 0x00010000, 0x01010000, 0x00000100, 0x01000100, 0x00010100, 0x01010100, |