Add infinite hash chain test
Add getDigestLength() to HashFunction interface