Ahaggar: make the substring the first parameter

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Ahaggar: rename hash IDs and add an id member to hash_functions struct

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