FIX: throw an exception when the key hash function does not exist instead of defaulting to md5.