aboutsummaryrefslogtreecommitdiff
path: root/crypto/evp/e_rc2.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2000-06-03 14:13:58 +0000
committerBen Laurie <ben@openssl.org>2000-06-03 14:13:58 +0000
commit1921eaad645c9a9f62c1ed79b7ae87c417aa8a3c (patch)
tree3cfb98b7de9296d88960349a0cfee184e72670b6 /crypto/evp/e_rc2.c
parent26a3a48d65c7464b400ec1de439994d7f0d25fed (diff)
downloadopenssl-1921eaad645c9a9f62c1ed79b7ae87c417aa8a3c.zip
openssl-1921eaad645c9a9f62c1ed79b7ae87c417aa8a3c.tar.gz
openssl-1921eaad645c9a9f62c1ed79b7ae87c417aa8a3c.tar.bz2
EVP constification.
Diffstat (limited to 'crypto/evp/e_rc2.c')
-rw-r--r--crypto/evp/e_rc2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/evp/e_rc2.c b/crypto/evp/e_rc2.c
index bf1ebbf..3955c3e 100644
--- a/crypto/evp/e_rc2.c
+++ b/crypto/evp/e_rc2.c
@@ -64,8 +64,8 @@
#include <openssl/objects.h>
#include "evp_locl.h"
-static int rc2_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key,
- unsigned char *iv,int enc);
+static int rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
+ const unsigned char *iv,int enc);
static int rc2_meth_to_magic(EVP_CIPHER_CTX *ctx);
static int rc2_magic_to_meth(int i);
static int rc2_set_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);
@@ -126,8 +126,8 @@ EVP_CIPHER *EVP_rc2_40_cbc(void)
return(&r2_40_cbc_cipher);
}
-static int rc2_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key,
- unsigned char *iv, int enc)
+static int rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
+ const unsigned char *iv, int enc)
{
RC2_set_key(&(ctx->c.rc2.ks),EVP_CIPHER_CTX_key_length(ctx),
key,ctx->c.rc2.key_bits);