aboutsummaryrefslogtreecommitdiff
path: root/crypto/evp/e_rc4.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/evp/e_rc4.c
parent3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff)
downloadopenssl-6b691a5c85ddc4e407e32781841fee5c029506cd.zip
openssl-6b691a5c85ddc4e407e32781841fee5c029506cd.tar.gz
openssl-6b691a5c85ddc4e407e32781841fee5c029506cd.tar.bz2
Change functions to ANSI C.
Diffstat (limited to 'crypto/evp/e_rc4.c')
-rw-r--r--crypto/evp/e_rc4.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/crypto/evp/e_rc4.c b/crypto/evp/e_rc4.c
index 7e9790a..1552379 100644
--- a/crypto/evp/e_rc4.c
+++ b/crypto/evp/e_rc4.c
@@ -94,21 +94,18 @@ static EVP_CIPHER r4_40_cipher=
rc4_cipher,
};
-EVP_CIPHER *EVP_rc4()
+EVP_CIPHER *EVP_rc4(void)
{
return(&r4_cipher);
}
-EVP_CIPHER *EVP_rc4_40()
+EVP_CIPHER *EVP_rc4_40(void)
{
return(&r4_40_cipher);
}
-static void rc4_init_key(ctx,key,iv,enc)
-EVP_CIPHER_CTX *ctx;
-unsigned char *key;
-unsigned char *iv;
-int enc;
+static void rc4_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key,
+ unsigned char *iv, int enc)
{
if (key != NULL)
memcpy(&(ctx->c.rc4.key[0]),key,EVP_CIPHER_CTX_key_length(ctx));
@@ -116,11 +113,8 @@ int enc;
ctx->c.rc4.key);
}
-static void rc4_cipher(ctx,out,in,inl)
-EVP_CIPHER_CTX *ctx;
-unsigned char *out;
-unsigned char *in;
-unsigned int inl;
+static void rc4_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
+ unsigned char *in, unsigned int inl)
{
RC4(&(ctx->c.rc4.ks),inl,in,out);
}