@deftypefun {gnutls_digest_algorithm_t} {gnutls_sign_get_hash_algorithm} (gnutls_sign_algorithm_t @var{sign}) @var{sign}: is a signature algorithm This function returns the digest algorithm corresponding to the given signature algorithms. @strong{Since:} 3.1.1 @strong{Returns:} return a @code{gnutls_digest_algorithm_t} value, or @code{GNUTLS_DIG_UNKNOWN} on error. @end deftypefun