From 5a098aeb9d1595f2e4eef4c5fb1e4a684b6cb651 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 0de5edb98d..7152824ed8 100644 --- a/crypto/modes/gcm128.c +++ b/crypto/modes/gcm128.c @@ -931,7 +931,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]; @@ -1043,7 +1044,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++); @@ -1224,7 +1227,8 @@ int CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, ctx->mres = n; return 0; - } while(0); + } while(0); + } #endif for (i=0;i