diff options
author | Andy Polyakov <appro@openssl.org> | 2015-01-21 16:47:51 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-01-22 09:27:58 +0000 |
commit | ea09c04e7e697002cad516e50ce57b29d980ee26 (patch) | |
tree | 9660056bf18625c64e7a9ce4c28f859eff6b57cf | |
parent | e1e7dc5085a03dfd0f0b5dd9a3b99a7e9fc238ce (diff) |
modes/cfb128.c: make it indent-friendly.
Reviewed-by: Tim Hudson <tjh@openssl.org>
-rw-r--r-- | crypto/modes/cfb128.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/crypto/modes/cfb128.c b/crypto/modes/cfb128.c index 4e6f5d35e1..b525aba29c 100644 --- a/crypto/modes/cfb128.c +++ b/crypto/modes/cfb128.c @@ -77,7 +77,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, if (enc) { #if !defined(OPENSSL_SMALL_FOOTPRINT) - if (16%sizeof(size_t) == 0) do { /* always true actually */ + if (16%sizeof(size_t) == 0) { /* always true actually */ + do { while (n && len) { *(out++) = ivec[n] ^= *(in++); --len; @@ -107,7 +108,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, } *num = n; return; - } while (0); + } while (0); + } /* the rest would be commonly eliminated by x86* compiler */ #endif while (l<len) { @@ -121,7 +123,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, *num = n; } else { #if !defined(OPENSSL_SMALL_FOOTPRINT) - if (16%sizeof(size_t) == 0) do { /* always true actually */ + if (16%sizeof(size_t) == 0) { /* always true actually */ + do { while (n && len) { unsigned char c; *(out++) = ivec[n] ^ (c = *(in++)); ivec[n] = c; @@ -154,7 +157,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, } *num = n; return; - } while (0); + } while (0); + } /* the rest would be commonly eliminated by x86* compiler */ #endif while (l<len) { |