Lab Exercise Is
Lab Exercise Is
typedef union {
uint32 w;
uint8 b[4];
} MD5union;
uint32 temp = d;
d = c;
c = b;
b = b + rotate_left(a + f + k[i] + m[g], r[i]);
a = temp;
}
state[0] += a;
state[1] += b;
state[2] += c;
state[3] += d;
}
free(msg);
}
int main() {
const char *msg = "The quick brown fox jumps over the lazy dog";
uint8 result[16];
printf("\nMD5 Digest:\n\t");
for (int i = 0; i < 16; i++) {
printf("%02x", result[i]);
}
OUTPUT: