diff --git a/crypto/aes/aes_cbc.c b/crypto/aes/aes_cbc.c index 2ae0f4a365d982da8de3d9bc52593c33e74edb87..227f75625dba917eda4823f6533ff6c41abd437b 100644 --- a/crypto/aes/aes_cbc.c +++ b/crypto/aes/aes_cbc.c @@ -57,7 +57,7 @@ void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, unsigned char *ivec, const int enc) { if (enc) - CRYPTO_cbc128_encrypt(in,out,len,key,ivec,(block_f)AES_encrypt); + CRYPTO_cbc128_encrypt(in,out,len,key,ivec,(block128_f)AES_encrypt); else - CRYPTO_cbc128_decrypt(in,out,len,key,ivec,(block_f)AES_decrypt); + CRYPTO_cbc128_decrypt(in,out,len,key,ivec,(block128_f)AES_decrypt); } diff --git a/crypto/camellia/cmll_cbc.c b/crypto/camellia/cmll_cbc.c index 400a248850b7adc4f4c7a98ffacd61fb611990d5..4c8d455adef3d90d2d03c068b76980782dd90aab 100644 --- a/crypto/camellia/cmll_cbc.c +++ b/crypto/camellia/cmll_cbc.c @@ -58,7 +58,7 @@ void Camellia_cbc_encrypt(const unsigned char *in, unsigned char *out, { if (enc) - CRYPTO_cbc128_encrypt(in,out,len,key,ivec,(block_f)Camellia_encrypt); + CRYPTO_cbc128_encrypt(in,out,len,key,ivec,(block128_f)Camellia_encrypt); else - CRYPTO_cbc128_decrypt(in,out,len,key,ivec,(block_f)Camellia_decrypt); + CRYPTO_cbc128_decrypt(in,out,len,key,ivec,(block128_f)Camellia_decrypt); }