Copyright © 2008 Gene Michael Stover. All rights reserved. Permission to copy, store, & view this document unmodified & in its entirety is granted.
Pretend you didn't see this. It's under construction. Come back in a week or so, about 2008 April 26. - gene
Here are implementations in Common Lisp of three cryptographic hash functions: MD4, MD5, & SHA-1.
MD4 is defined in RFC 1320 [1].
If the message is empty, we add a full 448 bits of Stage 1 padding, followed by 0 as a 64-bit, little-endian number. Table refmap-empty displays this.
|
If the message's length is 1 octet, we add 440 bits of Stage 1 padding, followed by 1 as a 64-bit, little-endian number. Assume the message's single octet is 1. Table 2 displays this.
|
Gene Michael Stover 2008-04-27