Added support of different hash size.
Interfaced the Hasher.