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

index 01c01702c4f963175ef7db7a4096df29787067c9..2b061176494005b250d82d7eaff01ab68c6877a7 100644 (file)
@@ -76,7 +76,8 @@ void CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out,
        n = *num;
 
 #if !defined(OPENSSL_SMALL_FOOTPRINT)
        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++) ^ ivec[n];
                        --len;
                while (n && len) {
                        *(out++) = *(in++) ^ ivec[n];
                        --len;
@@ -105,7 +106,8 @@ void CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out,
                }
                *num = n;
                return;
                }
                *num = n;
                return;
-       } while(0);
+           } while(0);
+       }
        /* the rest would be commonly eliminated by x86* compiler */
 #endif
        while (l<len) {
        /* the rest would be commonly eliminated by x86* compiler */
 #endif
        while (l<len) {