Ahaggar: add the init_hash() and fini_hash() functions

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>