sha_hash_from_algorithm
if (!sha_hash_from_algorithm(st->algorithm, &sha_func, &md))
if (!sha_hash_from_algorithm(st->algorithm, NULL, &md))