Added HASH_ALGORITHM enum, support for more algorithms