diff options
Diffstat (limited to 'src/lib/libcrypto/aes/aes_cbc.c')
-rw-r--r-- | src/lib/libcrypto/aes/aes_cbc.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/libcrypto/aes/aes_cbc.c b/src/lib/libcrypto/aes/aes_cbc.c index 227f75625d..9430e04a3e 100644 --- a/src/lib/libcrypto/aes/aes_cbc.c +++ b/src/lib/libcrypto/aes/aes_cbc.c | |||
@@ -52,12 +52,14 @@ | |||
52 | #include <openssl/aes.h> | 52 | #include <openssl/aes.h> |
53 | #include <openssl/modes.h> | 53 | #include <openssl/modes.h> |
54 | 54 | ||
55 | void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, | 55 | void |
56 | size_t len, const AES_KEY *key, | 56 | AES_cbc_encrypt(const unsigned char *in, unsigned char *out, |
57 | unsigned char *ivec, const int enc) { | 57 | size_t len, const AES_KEY *key, unsigned char *ivec, const int enc) |
58 | 58 | { | |
59 | if (enc) | 59 | if (enc) |
60 | CRYPTO_cbc128_encrypt(in,out,len,key,ivec,(block128_f)AES_encrypt); | 60 | CRYPTO_cbc128_encrypt(in, out, len, key, ivec, |
61 | (block128_f)AES_encrypt); | ||
61 | else | 62 | else |
62 | CRYPTO_cbc128_decrypt(in,out,len,key,ivec,(block128_f)AES_decrypt); | 63 | CRYPTO_cbc128_decrypt(in, out, len, key, ivec, |
64 | (block128_f)AES_decrypt); | ||
63 | } | 65 | } |