From fbdbb28ac6f5ffecdb6299e57828699b0f3e702f Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 21 Jan 2015 10:25:54 +0100 Subject: [PATCH] modes/gcm128.c: make it indent-friendly. Reviewed-by: Tim Hudson --- crypto/modes/gcm128.c | 578 ++++++++++++++++++++++++++++++------------ 1 file changed, 416 insertions(+), 162 deletions(-) diff --git a/crypto/modes/gcm128.c b/crypto/modes/gcm128.c index 170e2e12fe..5140d27082 100644 --- a/crypto/modes/gcm128.c +++ b/crypto/modes/gcm128.c @@ -1001,7 +1001,8 @@ int CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, n = ctx->mres; #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 { if (n) { while (n && len) { ctx->Xi.c[n] ^= *(out++) = *(in++)^ctx->EKi.c[n]; @@ -1113,7 +1114,8 @@ int CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, ctx->mres = n; return 0; - } while(0); + } while(0); + } #endif for (i=0;imres; #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 { if (n) { while (n && len) { u8 c = *(in++); @@ -1294,7 +1297,8 @@ int CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, ctx->mres = n; return 0; - } while(0); + } while(0); + } #endif for (i=0;i