Blame doc/functions/gnutls_decode_ber_digest_info
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@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})
|
|
Packit |
aea12f |
@var{info}: an RSA BER encoded DigestInfo structure
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{hash}: will contain the hash algorithm of the structure
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{digest}: will contain the hash output of the structure
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{digest_size}: will contain the hash size of the structure; initially must hold the maximum size of @code{digest}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
This function will parse an RSA PKCS@code{1} 1.5 DigestInfo structure
|
|
Packit |
aea12f |
and report the hash algorithm used as well as the digest data.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise
|
|
Packit |
aea12f |
an error code is returned.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Since:} 3.5.0
|
|
Packit |
aea12f |
@end deftypefun
|