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_ecb.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_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 | |||