summaryrefslogtreecommitdiff
path: root/cipher/blowfish.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-04-09 10:34:43 +0000
committerWerner Koch <wk@gnupg.org>1999-04-09 10:34:43 +0000
commit5f3730665b2f300ba672be57b9598e8c83b49859 (patch)
tree4987facd67ab1a18c8189d5d50e6aa4d97d202c2 /cipher/blowfish.c
parent76920b46b2068374573bb26fc4018984a5877bc1 (diff)
downloadlibgcrypt-5f3730665b2f300ba672be57b9598e8c83b49859.tar.gz
See ChangeLog: Fri Apr 9 12:26:25 CEST 1999 Werner Koch
Diffstat (limited to 'cipher/blowfish.c')
-rw-r--r--cipher/blowfish.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cipher/blowfish.c b/cipher/blowfish.c
index 8bfce67c..5a829d41 100644
--- a/cipher/blowfish.c
+++ b/cipher/blowfish.c
@@ -42,7 +42,6 @@
#define CIPHER_ALGO_BLOWFISH 4 /* blowfish 128 bit key */
-#define CIPHER_ALGO_BLOWFISH160 42 /* blowfish 160 bit key (not in OpenPGP)*/
#define FNCCAST_SETKEY(f) (int(*)(void*, byte*, unsigned))(f)
#define FNCCAST_CRYPT(f) (void(*)(void*, byte*, byte*))(f)
@@ -582,7 +581,7 @@ blowfish_get_info( int algo, size_t *keylen,
void (**r_decrypt)( void *c, byte *outbuf, byte *inbuf )
)
{
- *keylen = algo == CIPHER_ALGO_BLOWFISH ? 128 : 160;
+ *keylen = 128;
*blocksize = BLOWFISH_BLOCKSIZE;
*contextsize = sizeof(BLOWFISH_context);
*r_setkey = FNCCAST_SETKEY(bf_setkey);
@@ -591,8 +590,6 @@ blowfish_get_info( int algo, size_t *keylen,
if( algo == CIPHER_ALGO_BLOWFISH )
return "BLOWFISH";
- if( algo == CIPHER_ALGO_BLOWFISH160 )
- return "BLOWFISH160";
return NULL;
}