Anonymous user
MD5/Implementation: Difference between revisions
no edit summary
(→{{header|Go}}: simpler) |
No edit summary |
||
Line 28:
=={{header|Ada}}==
note: this could be
md5.ads:
Line 974:
}
var shift = [...]uint{7, 12, 17, 22, 5, 9, 14, 20, 4, 11, 16, 23, 6, 10, 15, 21}
var table [64]uint32
func init() {
for i := range table {
}
}
Line 1,282 ⟶ 1,281:
=={{header|Java}}==
{{works with|Java|1.5+}}
Based on RFC-1321.
<lang java>
Line 1,288 ⟶ 1,287:
{
private static final int INIT_A = 0x67452301;
private static final int INIT_B = (int)0xEFCDAB89L;
private static final int INIT_C = (int)0x98BADCFEL;
private static final int INIT_D = 0x10325476;
private static final int[] SHIFT_AMTS = {
7, 12, 17, 22,
5, 9, 14, 20,
Line 1,300 ⟶ 1,299:
};
private static final int[] TABLE_T = new int[64];
static
{
for (int i = 0; i < 64; i++)
TABLE_T[i] =
}
|