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_ctr.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_ctr.c')
-rw-r--r-- | src/lib/libcrypto/aes/aes_ctr.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/libcrypto/aes/aes_ctr.c b/src/lib/libcrypto/aes/aes_ctr.c index 7c9d165d8a..663b5a17bb 100644 --- a/src/lib/libcrypto/aes/aes_ctr.c +++ b/src/lib/libcrypto/aes/aes_ctr.c | |||
@@ -52,10 +52,11 @@ | |||
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_ctr128_encrypt(const unsigned char *in, unsigned char *out, | 55 | void |
56 | size_t length, const AES_KEY *key, | 56 | AES_ctr128_encrypt(const unsigned char *in, unsigned char *out, |
57 | unsigned char ivec[AES_BLOCK_SIZE], | 57 | size_t length, const AES_KEY *key, unsigned char ivec[AES_BLOCK_SIZE], |
58 | unsigned char ecount_buf[AES_BLOCK_SIZE], | 58 | unsigned char ecount_buf[AES_BLOCK_SIZE], unsigned int *num) |
59 | unsigned int *num) { | 59 | { |
60 | CRYPTO_ctr128_encrypt(in,out,length,key,ivec,ecount_buf,num,(block128_f)AES_encrypt); | 60 | CRYPTO_ctr128_encrypt(in, out, length, key, ivec, ecount_buf, num, |
61 | (block128_f)AES_encrypt); | ||
61 | } | 62 | } |