mirror of git://git.gnupg.org/gnupg.git
* cipher.c (setup_cipher_table): #ifdef all optional ciphers.
* md.c (load_digest_module): #ifdef all optional digests.
This commit is contained in:
parent
5511e3870d
commit
5e9d144a53
|
@ -1,3 +1,9 @@
|
||||||
|
2003-02-21 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* cipher.c (setup_cipher_table): #ifdef all optional ciphers.
|
||||||
|
|
||||||
|
* md.c (load_digest_module): #ifdef all optional digests.
|
||||||
|
|
||||||
2003-02-11 David Shaw <dshaw@jabberwocky.com>
|
2003-02-11 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* Makefile.am, md.c (load_digest_module): Only build in SHA384/512
|
* Makefile.am, md.c (load_digest_module): Only build in SHA384/512
|
||||||
|
|
|
@ -85,10 +85,9 @@ dummy_decrypt_block( void *c, byte *outbuf, byte *inbuf ) { BUG(); }
|
||||||
static void
|
static void
|
||||||
setup_cipher_table(void)
|
setup_cipher_table(void)
|
||||||
{
|
{
|
||||||
|
int i=0;
|
||||||
|
|
||||||
int i;
|
#ifdef USE_AES
|
||||||
|
|
||||||
i = 0;
|
|
||||||
cipher_table[i].algo = CIPHER_ALGO_RIJNDAEL;
|
cipher_table[i].algo = CIPHER_ALGO_RIJNDAEL;
|
||||||
cipher_table[i].name = rijndael_get_info( cipher_table[i].algo,
|
cipher_table[i].name = rijndael_get_info( cipher_table[i].algo,
|
||||||
&cipher_table[i].keylen,
|
&cipher_table[i].keylen,
|
||||||
|
@ -122,6 +121,9 @@ setup_cipher_table(void)
|
||||||
if( !cipher_table[i].name )
|
if( !cipher_table[i].name )
|
||||||
BUG();
|
BUG();
|
||||||
i++;
|
i++;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_TWOFISH
|
||||||
cipher_table[i].algo = CIPHER_ALGO_TWOFISH;
|
cipher_table[i].algo = CIPHER_ALGO_TWOFISH;
|
||||||
cipher_table[i].name = twofish_get_info( cipher_table[i].algo,
|
cipher_table[i].name = twofish_get_info( cipher_table[i].algo,
|
||||||
&cipher_table[i].keylen,
|
&cipher_table[i].keylen,
|
||||||
|
@ -133,6 +135,9 @@ setup_cipher_table(void)
|
||||||
if( !cipher_table[i].name )
|
if( !cipher_table[i].name )
|
||||||
BUG();
|
BUG();
|
||||||
i++;
|
i++;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_BLOWFISH
|
||||||
cipher_table[i].algo = CIPHER_ALGO_BLOWFISH;
|
cipher_table[i].algo = CIPHER_ALGO_BLOWFISH;
|
||||||
cipher_table[i].name = blowfish_get_info( cipher_table[i].algo,
|
cipher_table[i].name = blowfish_get_info( cipher_table[i].algo,
|
||||||
&cipher_table[i].keylen,
|
&cipher_table[i].keylen,
|
||||||
|
@ -144,6 +149,9 @@ setup_cipher_table(void)
|
||||||
if( !cipher_table[i].name )
|
if( !cipher_table[i].name )
|
||||||
BUG();
|
BUG();
|
||||||
i++;
|
i++;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_CAST5
|
||||||
cipher_table[i].algo = CIPHER_ALGO_CAST5;
|
cipher_table[i].algo = CIPHER_ALGO_CAST5;
|
||||||
cipher_table[i].name = cast5_get_info( cipher_table[i].algo,
|
cipher_table[i].name = cast5_get_info( cipher_table[i].algo,
|
||||||
&cipher_table[i].keylen,
|
&cipher_table[i].keylen,
|
||||||
|
@ -155,6 +163,8 @@ setup_cipher_table(void)
|
||||||
if( !cipher_table[i].name )
|
if( !cipher_table[i].name )
|
||||||
BUG();
|
BUG();
|
||||||
i++;
|
i++;
|
||||||
|
#endif
|
||||||
|
|
||||||
cipher_table[i].algo = CIPHER_ALGO_3DES;
|
cipher_table[i].algo = CIPHER_ALGO_3DES;
|
||||||
cipher_table[i].name = des_get_info( cipher_table[i].algo,
|
cipher_table[i].name = des_get_info( cipher_table[i].algo,
|
||||||
&cipher_table[i].keylen,
|
&cipher_table[i].keylen,
|
||||||
|
|
|
@ -96,7 +96,7 @@ load_digest_module (void)
|
||||||
|
|
||||||
/* We load them in reverse order so that the most
|
/* We load them in reverse order so that the most
|
||||||
frequently used are the first in the list. */
|
frequently used are the first in the list. */
|
||||||
#ifdef USE_TIGER
|
#ifdef USE_TIGER192
|
||||||
if (!new_list_item (DIGEST_ALGO_TIGER, tiger_get_info))
|
if (!new_list_item (DIGEST_ALGO_TIGER, tiger_get_info))
|
||||||
BUG();
|
BUG();
|
||||||
#endif
|
#endif
|
||||||
|
@ -106,8 +106,10 @@ load_digest_module (void)
|
||||||
if (!new_list_item (DIGEST_ALGO_SHA384, sha384_get_info))
|
if (!new_list_item (DIGEST_ALGO_SHA384, sha384_get_info))
|
||||||
BUG ();
|
BUG ();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_SHA256
|
||||||
if (!new_list_item (DIGEST_ALGO_SHA256, sha256_get_info))
|
if (!new_list_item (DIGEST_ALGO_SHA256, sha256_get_info))
|
||||||
BUG ();
|
BUG ();
|
||||||
|
#endif
|
||||||
if (!new_list_item (DIGEST_ALGO_MD5, md5_get_info))
|
if (!new_list_item (DIGEST_ALGO_MD5, md5_get_info))
|
||||||
BUG ();
|
BUG ();
|
||||||
if (!new_list_item (DIGEST_ALGO_RMD160, rmd160_get_info))
|
if (!new_list_item (DIGEST_ALGO_RMD160, rmd160_get_info))
|
||||||
|
|
Loading…
Reference in New Issue