[PATCH v2 05/11] tpm: add flag in hash_algo_list and API to check if algorithm is supported