From fa04912880c9febf3f34bf51512118e639a1e1c9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 20 Mar 2009 13:41:58 -0700 Subject: [PATCH] sha1: Fix indentation. --- lib/sha1.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/sha1.c b/lib/sha1.c index 88963392..81a9c2cb 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -177,30 +177,30 @@ int SHA1Input( SHA1Context *context, if (context->Corrupted) { - return context->Corrupted; + return context->Corrupted; } while(length-- && !context->Corrupted) { - context->Message_Block[context->Message_Block_Index++] = - (*message_array & 0xFF); + context->Message_Block[context->Message_Block_Index++] = + (*message_array & 0xFF); - context->Length_Low += 8; - if (context->Length_Low == 0) - { - context->Length_High++; - if (context->Length_High == 0) + context->Length_Low += 8; + if (context->Length_Low == 0) { - /* Message is too long */ - context->Corrupted = 1; + context->Length_High++; + if (context->Length_High == 0) + { + /* Message is too long */ + context->Corrupted = 1; + } } - } - if (context->Message_Block_Index == 64) - { - SHA1ProcessMessageBlock(context); - } + if (context->Message_Block_Index == 64) + { + SHA1ProcessMessageBlock(context); + } - message_array++; + message_array++; } return shaSuccess; -- 2.30.2