projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change functions to ANSI C.
[openssl.git]
/
crypto
/
evp
/
e_cbc_bf.c
diff --git
a/crypto/evp/e_cbc_bf.c
b/crypto/evp/e_cbc_bf.c
index be605f4a137a64a86074d9c77b2c59a17934563b..1125ca5270ba89f4b3df8e588321d834b91b5a2a 100644
(file)
--- a/
crypto/evp/e_cbc_bf.c
+++ b/
crypto/evp/e_cbc_bf.c
@@
-86,16
+86,13
@@
static EVP_CIPHER bfish_cbc_cipher=
EVP_CIPHER_set_asn1_iv,
};
EVP_CIPHER_set_asn1_iv,
};
-EVP_CIPHER *EVP_bf_cbc()
+EVP_CIPHER *EVP_bf_cbc(
void
)
{
return(&bfish_cbc_cipher);
}
{
return(&bfish_cbc_cipher);
}
-static void bf_cbc_init_key(ctx,key,iv,enc)
-EVP_CIPHER_CTX *ctx;
-unsigned char *key;
-unsigned char *iv;
-int enc;
+static void bf_cbc_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key,
+ unsigned char *iv, int enc)
{
if (iv != NULL)
memcpy(&(ctx->oiv[0]),iv,8);
{
if (iv != NULL)
memcpy(&(ctx->oiv[0]),iv,8);
@@
-104,11
+101,8
@@
int enc;
BF_set_key(&(ctx->c.bf_ks),EVP_BLOWFISH_KEY_SIZE,key);
}
BF_set_key(&(ctx->c.bf_ks),EVP_BLOWFISH_KEY_SIZE,key);
}
-static void bf_cbc_cipher(ctx,out,in,inl)
-EVP_CIPHER_CTX *ctx;
-unsigned char *out;
-unsigned char *in;
-unsigned int inl;
+static void bf_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
+ unsigned char *in, unsigned int inl)
{
BF_cbc_encrypt(
in,out,(long)inl,
{
BF_cbc_encrypt(
in,out,(long)inl,