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

index 932037f5514dbdf4799168492b4f86f03df0049c..5faf2c3af0272ea45c643519636ee1c6f061c514 100644 (file)
@@ -135,7 +135,8 @@ void CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out,
        n = *num;
 
 #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++) = *(in++) ^ ecount_buf[n];
                        --len;
@@ -167,7 +168,8 @@ void CRYPTO_ctr128_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) {