From: Ben Pfaff Date: Fri, 20 Mar 2009 20:41:58 +0000 (-0700) Subject: sha1: Fix indentation. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa04912880c9febf3f34bf51512118e639a1e1c9;p=openvswitch sha1: Fix indentation. --- 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;