diff options
author | jsing <> | 2014-04-15 14:38:10 +0000 |
---|---|---|
committer | jsing <> | 2014-04-15 14:38:10 +0000 |
commit | fd934c882a62cc862a41725de129e7a623ce16a3 (patch) | |
tree | 0afadc32450a98b257d0902261d2c1f7ba6b56be /src/lib/libcrypto/aes/aes_cbc.c | |
parent | 69a8d2dcc19aed0d1116ba2ecd81cce5ae736c94 (diff) | |
download | openbsd-fd934c882a62cc862a41725de129e7a623ce16a3.tar.gz openbsd-fd934c882a62cc862a41725de129e7a623ce16a3.tar.bz2 openbsd-fd934c882a62cc862a41725de129e7a623ce16a3.zip |
First pass at applying KNF to the OpenSSL code, which almost makes it
readable. This pass is whitespace only and can readily be verified using
tr and md5.
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 | } |