summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2015-01-21 16:47:51 +0100
committerMatt Caswell <matt@openssl.org>2015-01-22 09:45:05 +0000
commit638f75b686dd1dafca569945039419a0c1e0ad25 (patch)
treec30ba756925f317fe8370ef731d8ae07e33382ca
parent510edea8db5e983fc53a2d9e61b2acf25e5f0508 (diff)
modes/cfb128.c: make it indent-friendly.
Reviewed-by: Tim Hudson <tjh@openssl.org>
-rw-r--r--crypto/modes/cfb128.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/crypto/modes/cfb128.c b/crypto/modes/cfb128.c
index e5938c6137..a64898e777 100644
--- a/crypto/modes/cfb128.c
+++ b/crypto/modes/cfb128.c
@@ -84,7 +84,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;
@@ -114,7 +115,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) {
@@ -128,7 +130,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;
@@ -161,7 +164,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) {