1gnutls_decode_ber_digest_info(3)    gnutls    gnutls_decode_ber_digest_info(3)
2
3
4

NAME

6       gnutls_decode_ber_digest_info - API function
7

SYNOPSIS

9       #include <gnutls/crypto.h>
10
11       int    gnutls_decode_ber_digest_info(const   gnutls_datum_t   *   info,
12       gnutls_digest_algorithm_t * hash, unsigned char * digest, unsigned  int
13       * digest_size);
14

ARGUMENTS

16       const gnutls_datum_t * info
17                   an RSA BER encoded DigestInfo structure
18
19       gnutls_digest_algorithm_t * hash
20                   will contain the hash algorithm of the structure
21
22       unsigned char * digest
23                   will contain the hash output of the structure
24
25       unsigned int * digest_size
26                   will contain the hash size of the structure; initially must
27                   hold the maximum size of  digest
28

DESCRIPTION

30       This function will parse an RSA PKCS1 1.5 DigestInfo structure and  re‐
31       port the hash algorithm used as well as the digest data.
32

RETURNS

34       On  success,  GNUTLS_E_SUCCESS (0) is returned, otherwise an error code
35       is returned.
36

SINCE

38       3.5.0
39

REPORTING BUGS

41       Report bugs to <bugs@gnutls.org>.
42       Home page: https://www.gnutls.org
43
44
46       Copyright © 2001- Free Software Foundation, Inc., and others.
47       Copying and distribution of this file, with  or  without  modification,
48       are  permitted in any medium without royalty provided the copyright no‐
49       tice and this notice are preserved.
50

SEE ALSO

52       The full documentation for gnutls is maintained as  a  Texinfo  manual.
53       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
54       visit
55
56       https://www.gnutls.org/manual/
57
58gnutls                               3.7.2    gnutls_decode_ber_digest_info(3)
Impressum