Anonymous user
MD5/Implementation Debug: Difference between revisions
m
no edit summary
m (Mistake regarding variable update order) |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 907:
{
for (int i = 0; i < 64; i++)
TABLE_T[i] =
}
Line 989 ⟶ 980:
b = temp;
int[] debugVars =
System.out.println(" Applying [" + "BCDABCD".substring(3 - (j & 3), 7 - (j & 3)) + " " + padTwo(bufferIndex) + " " + padTwo(SHIFT_AMTS[(div16 << 2) | (j & 3)]) + " " + padTwo(j + 1) + "]: A=" + toHexString(debugVars[(j + 1) & 3]) + " B=" + toHexString(debugVars[(j + 2) & 3]) + " C=" + toHexString(debugVars[(j + 3) & 3]) + " D=" + toHexString(debugVars[j & 3]) + " T[" + j + "]=" + toHexString(TABLE_T[j]));
if (((j + 1) & 3) == 0)
Line 1,080 ⟶ 1,071:
public static void main(String[] args)
{
String[] testStrings =
if (args.length > 0)
testStrings = args;
|