Index: /trunk/src/VBox/Runtime/common/checksum/md5.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/checksum/md5.cpp	(revision 40721)
+++ /trunk/src/VBox/Runtime/common/checksum/md5.cpp	(revision 40722)
@@ -94,5 +94,5 @@
 /* This is the central step in the MD5 algorithm. */
 #define MD5STEP(f, w, x, y, z, data, s) \
-	( w += f(x, y, z) + data,  w = w<<s | w>>(32-s),  w += x )
+    ( w += f(x, y, z) + data,  w = w<<s | w>>(32-s),  w += x )
 
 
@@ -194,9 +194,10 @@
 {
     uint32_t t;
-    do {
-	t = *buf;
+    do
+    {
+        t = *buf;
         t = RT_LE2H_U32(t);
-	*buf = t;
-	buf++;
+        *buf = t;
+        buf++;
     } while (--longs);
 }
@@ -236,5 +237,5 @@
     t = ctx->bits[0];
     if ((ctx->bits[0] = t + ((uint32_t) len << 3)) < t)
-	ctx->bits[1]++; 	/* Carry from low to high */
+    ctx->bits[1]++; /* Carry from low to high */
     ctx->bits[1] += (uint32_t)(len >> 29);
 
@@ -242,17 +243,19 @@
 
     /* Handle any leading odd-sized chunks */
-    if (t) {
-	uint8_t *p = (uint8_t *) ctx->in + t;
-
-	t = 64 - t;
-	if (len < t) {
-	    memcpy(p, buf, len);
-	    return;
-	}
-	memcpy(p, buf, t);
-	rtMd5ByteReverse(ctx->in, 16);
-	rtMd5Transform(ctx->buf, ctx->in);
-	buf += t;
-	len -= t;
+    if (t)
+    {
+        uint8_t *p = (uint8_t *) ctx->in + t;
+
+        t = 64 - t;
+        if (len < t)
+        {
+            memcpy(p, buf, len);
+            return;
+        }
+        memcpy(p, buf, t);
+        rtMd5ByteReverse(ctx->in, 16);
+        rtMd5Transform(ctx->buf, ctx->in);
+        buf += t;
+        len -= t;
     }
 
@@ -306,15 +309,18 @@
 
     /* Pad out to 56 mod 64 */
-    if (count < 8) {
-	/* Two lots of padding:  Pad the first block to 64 bytes */
-	memset(p, 0, count);
-	rtMd5ByteReverse(ctx->in, 16);
-	rtMd5Transform(ctx->buf, ctx->in);
-
-	/* Now fill the next block with 56 bytes */
-	memset(ctx->in, 0, 56);
-    } else {
-	/* Pad block to 56 bytes */
-	memset(p, 0, count - 8);
+    if (count < 8)
+    {
+        /* Two lots of padding:  Pad the first block to 64 bytes */
+        memset(p, 0, count);
+        rtMd5ByteReverse(ctx->in, 16);
+        rtMd5Transform(ctx->buf, ctx->in);
+
+        /* Now fill the next block with 56 bytes */
+        memset(ctx->in, 0, 56);
+    }
+    else
+    {
+        /* Pad block to 56 bytes */
+        memset(p, 0, count - 8);
     }
     rtMd5ByteReverse(ctx->in, 14);
@@ -327,5 +333,5 @@
     rtMd5ByteReverse(ctx->buf, 4);
     memcpy(digest, ctx->buf, 16);
-    memset(ctx, 0, sizeof(ctx));        /* In case it's sensitive */
+    memset(ctx, 0, sizeof(*ctx));        /* In case it's sensitive */
 }
 RT_EXPORT_SYMBOL(RTMd5Final);
