Playing around with the merkle damgard construction.
- Block size: 32 bytes
- The padding length (
p) isp = 32-len(M)%32whereMis the message to be hashed in bytes. - The padding starts with a
1. All other bytes are zeros. - Additionally after the padding (
P) has been applied to the messageM, the length ofMas int64 is appended toM||P. - The compression function
fis xor. - The IV is
3.141592653589793238462643383279(32 bytes).
go build./md-experiment file.txt