1gnutls_decode_ber_digest_info(3) gnutls gnutls_decode_ber_digest_info(3)
2
3
4
6 gnutls_decode_ber_digest_info - API function
7
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
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
30 This function will parse an RSA PKCS1 1.5 DigestInfo structure and
31 report the hash algorithm used as well as the digest data.
32
34 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an error code
35 is returned.
36
38 3.5.0
39
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
49 notice and this notice are preserved.
50
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.6.15 gnutls_decode_ber_digest_info(3)