modes/cfb128.c: make it indent-friendly.
authorAndy Polyakov <appro@openssl.org>
Wed, 21 Jan 2015 15:47:51 +0000 (16:47 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 22 Jan 2015 09:45:05 +0000 (09:45 +0000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/modes/cfb128.c

index e5938c6137c41d6c5fd93da03360456ff5b80cb6..a64898e777609755a2a668cd32d630e4a30d3b8f 100644 (file)
@@ -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) {