aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/cipher.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-09-18 15:24:53 +0000
committerWerner Koch <[email protected]>1998-09-18 15:24:53 +0000
commitb4aeef458c51b9debd394592e76b93cc6b00e0a2 (patch)
treee87818f5c15e12189f5fc054faf6d09e07e3d120 /cipher/cipher.c
parentMichael Roth has released is des impl. (diff)
downloadgnupg-b4aeef458c51b9debd394592e76b93cc6b00e0a2.tar.gz
gnupg-b4aeef458c51b9debd394592e76b93cc6b00e0a2.zip
.
Diffstat (limited to '')
-rw-r--r--cipher/cipher.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c
index 2326d1dd2..95c4b70df 100644
--- a/cipher/cipher.c
+++ b/cipher/cipher.c
@@ -29,6 +29,7 @@
#include "util.h"
#include "errors.h"
#include "cipher.h"
+#include "des.h"
#include "blowfish.h"
#include "cast5.h"
#include "dynload.h"
@@ -106,6 +107,17 @@ setup_cipher_table()
if( !cipher_table[i].name )
BUG();
i++;
+ cipher_table[i].algo = CIPHER_ALGO_3DES;
+ cipher_table[i].name = des_get_info( cipher_table[i].algo,
+ &cipher_table[i].keylen,
+ &cipher_table[i].blocksize,
+ &cipher_table[i].contextsize,
+ &cipher_table[i].setkey,
+ &cipher_table[i].encrypt,
+ &cipher_table[i].decrypt );
+ if( !cipher_table[i].name )
+ BUG();
+ i++;
cipher_table[i].algo = CIPHER_ALGO_BLOWFISH160;
cipher_table[i].name = blowfish_get_info( cipher_table[i].algo,
&cipher_table[i].keylen,