Week 14: MD5 Message Digest Algorithm
Week 14: MD5 Message Digest Algorithm
A = 67452301
B = EFCDAB89
C = 98BADCFE
D = 10325476
Word A: 01 23 45 67
Word B: 89 AB CD EF
Word C: FE DC BA 98
Word D: 76 54 32 10
CV0 = IV
CVq +1 = SUM 32 (CVq , RFI [Yq , RFH [Yq , RFG [Yq , RFF [Yq , CV q ]]]])
MD = CV L
where
IV - initial value of the ABCD buffer, defined in step 3
Yq - the qth 512-bit block of the message
L - the number of blocks in the message (including
padding and length fields)
CVq - chaining variable processed with the qth block of
the message
RFx - round function using primitive logical function x
MD - final message digest value
SUM 32 - addition modulo 232 performed separately on each
word of the pair of inputs
References