summaryrefslogtreecommitdiff
path: root/crypto/evp/e_ecb_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/evp/e_ecb_c.c')
-rw-r--r--crypto/evp/e_ecb_c.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/crypto/evp/e_ecb_c.c b/crypto/evp/e_ecb_c.c
index 34e0c18296..bd408ce535 100644
--- a/crypto/evp/e_ecb_c.c
+++ b/crypto/evp/e_ecb_c.c
@@ -86,26 +86,20 @@ static EVP_CIPHER cast5_ecb_cipher=
NULL,
};
-EVP_CIPHER *EVP_cast5_ecb()
+EVP_CIPHER *EVP_cast5_ecb(void)
{
return(&cast5_ecb_cipher);
}
-static void cast_ecb_init_key(ctx,key,iv,enc)
-EVP_CIPHER_CTX *ctx;
-unsigned char *key;
-unsigned char *iv;
-int enc;
+static void cast_ecb_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key,
+ unsigned char *iv, int enc)
{
if (key != NULL)
CAST_set_key(&(ctx->c.cast_ks),EVP_CAST5_KEY_SIZE,key);
}
-static void cast_ecb_cipher(ctx,out,in,inl)
-EVP_CIPHER_CTX *ctx;
-unsigned char *out;
-unsigned char *in;
-unsigned int inl;
+static void cast_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
+ unsigned char *in, unsigned int inl)
{
unsigned int i;