diff options
Diffstat (limited to 'src/lib/libcrypto/aes/aes_ecb.c')
-rw-r--r-- | src/lib/libcrypto/aes/aes_ecb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/aes/aes_ecb.c b/src/lib/libcrypto/aes/aes_ecb.c index 28aa561c2d..f374a5f051 100644 --- a/src/lib/libcrypto/aes/aes_ecb.c +++ b/src/lib/libcrypto/aes/aes_ecb.c | |||
@@ -59,15 +59,15 @@ | |||
59 | #include <openssl/aes.h> | 59 | #include <openssl/aes.h> |
60 | #include "aes_locl.h" | 60 | #include "aes_locl.h" |
61 | 61 | ||
62 | void AES_ecb_encrypt(const unsigned char *in, unsigned char *out, | 62 | void |
63 | const AES_KEY *key, const int enc) { | 63 | AES_ecb_encrypt(const unsigned char *in, unsigned char *out, |
64 | 64 | const AES_KEY *key, const int enc) | |
65 | assert(in && out && key); | 65 | { |
66 | assert((AES_ENCRYPT == enc)||(AES_DECRYPT == enc)); | 66 | assert(in && out && key); |
67 | assert((AES_ENCRYPT == enc) || (AES_DECRYPT == enc)); | ||
67 | 68 | ||
68 | if (AES_ENCRYPT == enc) | 69 | if (AES_ENCRYPT == enc) |
69 | AES_encrypt(in, out, key); | 70 | AES_encrypt(in, out, key); |
70 | else | 71 | else |
71 | AES_decrypt(in, out, key); | 72 | AES_decrypt(in, out, key); |
72 | } | 73 | } |
73 | |||