summaryrefslogtreecommitdiffstats
path: root/crypto/rc5/rc5_enc.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-19 21:31:43 +0000
committerUlf Möller <ulf@openssl.org>1999-04-19 21:31:43 +0000
commit6b691a5c85ddc4e407e32781841fee5c029506cd (patch)
tree436f1127406e1cacfe83dfcbfff824d89c47d834 /crypto/rc5/rc5_enc.c
parent3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff)
Change functions to ANSI C.
Diffstat (limited to 'crypto/rc5/rc5_enc.c')
-rw-r--r--crypto/rc5/rc5_enc.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/crypto/rc5/rc5_enc.c b/crypto/rc5/rc5_enc.c
index ee5f97eed1..ba79dd456a 100644
--- a/crypto/rc5/rc5_enc.c
+++ b/crypto/rc5/rc5_enc.c
@@ -60,13 +60,8 @@
#include "rc5.h"
#include "rc5_locl.h"
-void RC5_32_cbc_encrypt(in, out, length, ks, iv, encrypt)
-unsigned char *in;
-unsigned char *out;
-long length;
-RC5_32_KEY *ks;
-unsigned char *iv;
-int encrypt;
+void RC5_32_cbc_encrypt(unsigned char *in, unsigned char *out, long length,
+ RC5_32_KEY *ks, unsigned char *iv, int encrypt)
{
register unsigned long tin0,tin1;
register unsigned long tout0,tout1,xor0,xor1;
@@ -139,9 +134,7 @@ int encrypt;
tin[0]=tin[1]=0;
}
-void RC5_32_encrypt(d,key)
-unsigned long *d;
-RC5_32_KEY *key;
+void RC5_32_encrypt(unsigned long *d, RC5_32_KEY *key)
{
RC5_32_INT a,b,*s;
@@ -180,9 +173,7 @@ RC5_32_KEY *key;
d[1]=b;
}
-void RC5_32_decrypt(d,key)
-unsigned long *d;
-RC5_32_KEY *key;
+void RC5_32_decrypt(unsigned long *d, RC5_32_KEY *key)
{
RC5_32_INT a,b,*s;