sha1: Fix indentation.
authorBen Pfaff <blp@nicira.com>
Fri, 20 Mar 2009 20:41:58 +0000 (13:41 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 20 Mar 2009 20:51:23 +0000 (13:51 -0700)
lib/sha1.c

index 88963392e9be981e71a8a3615f48a52e62034663..81a9c2cb1225b756294ef9109179c76985dd0e3a 100644 (file)
@@ -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;