1gnutls_fingerprint(3)               gnutls               gnutls_fingerprint(3)
2
3
4

NAME

6       gnutls_fingerprint - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int     gnutls_fingerprint(gnutls_digest_algorithm_t     algo,    const
12       gnutls_datum_t * data, void * result, size_t * result_size);
13

ARGUMENTS

15       gnutls_digest_algorithm_t algo
16                   is a digest algorithm
17
18       const gnutls_datum_t * data
19                   is the data
20
21       void * result
22                   is the place where the result will be copied (may be null).
23
24       size_t * result_size
25                   should hold the size of the result. The actual size of  the
26                   returned result will also be copied there.
27

DESCRIPTION

29       This  function  will  calculate a fingerprint (actually a hash), of the
30       given data.  The result is not printable data.  You should  convert  it
31       to hex, or to something else printable.
32
33       This  is  the  usual  way  to  calculate  a fingerprint of an X.509 DER
34       encoded certificate.  Note however that the fingerprint of  an  OpenPGP
35       certificate is not just a hash and cannot be calculated with this func‐
36       tion.
37

RETURNS

39       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an  error  code
40       is returned.
41

REPORTING BUGS

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

SEE ALSO

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