adding merkle-damgard template