Debian Codegraph @

doc/functions/gnutls_decode_ber_digest_info

raw
1
2
3
4
5 @deftypefun {int} {gnutls_decode_ber_digest_info} (const gnutls_datum_t * @var{info}, gnutls_digest_algorithm_t * @var{hash}, unsigned char * @var{digest}, unsigned int * @var{digest_size})
6 @var{info}: an RSA BER encoded DigestInfo structure
7
8 @var{hash}: will contain the hash algorithm of the structure
9
10 @var{digest}: will contain the hash output of the structure
11
12 @var{digest_size}: will contain the hash size of the structure; initially must hold the maximum size of @code{digest}
13
14 This function will parse an RSA PKCS@code{1} 1.5 DigestInfo structure
15 and report the hash algorithm used as well as the digest data.
16
17 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise
18 an error code is returned.
19
20 @strong{Since:} 3.5.0
21 @end deftypefun