summaryrefslogtreecommitdiffstats
path: root/crypto/des/ede_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/des/ede_enc.c')
-rw-r--r--crypto/des/ede_enc.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/crypto/des/ede_enc.c b/crypto/des/ede_enc.c
index 9f75dd1037..2d3ceae198 100644
--- a/crypto/des/ede_enc.c
+++ b/crypto/des/ede_enc.c
@@ -58,15 +58,9 @@
#include "des_locl.h"
-void des_ede3_cbc_encrypt(input, output, length, ks1, ks2, ks3, ivec, enc)
-des_cblock (*input);
-des_cblock (*output);
-long length;
-des_key_schedule ks1;
-des_key_schedule ks2;
-des_key_schedule ks3;
-des_cblock (*ivec);
-int enc;
+void des_ede3_cbc_encrypt(des_cblock (*input), des_cblock (*output),
+ long length, des_key_schedule ks1, des_key_schedule ks2,
+ des_key_schedule ks3, des_cblock (*ivec), int enc)
{
register DES_LONG tin0,tin1;
register DES_LONG tout0,tout1,xor0,xor1;
@@ -175,14 +169,9 @@ int enc;
}
#ifdef undef /* MACRO */
-void des_ede2_cbc_encrypt(input, output, length, ks1, ks2, ivec, enc)
-des_cblock (*input);
-des_cblock (*output);
-long length;
-des_key_schedule ks1;
-des_key_schedule ks2;
-des_cblock (*ivec);
-int enc;
+void des_ede2_cbc_encrypt(des_cblock (*input), des_cblock (*output),
+ long length, des_key_schedule ks1, des_key_schedule ks2,
+ des_cblock (*ivec), int enc)
{
des_ede3_cbc_encrypt(input,output,length,ks1,ks2,ks1,ivec,enc);
}