1gnutls_privkey_sign_data(3)         gnutls         gnutls_privkey_sign_data(3)
2
3
4

NAME

6       gnutls_privkey_sign_data - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int          gnutls_privkey_sign_data(gnutls_privkey_t          signer,
12       gnutls_digest_algorithm_t   hash,    unsigned    int    flags,    const
13       gnutls_datum_t * data, gnutls_datum_t * signature);
14

ARGUMENTS

16       gnutls_privkey_t signer
17                   Holds the key
18
19       gnutls_digest_algorithm_t hash
20                   should be a digest algorithm
21
22       unsigned int flags
23                   should be 0 for now
24
25       const gnutls_datum_t * data
26                   holds the data to be signed
27
28       gnutls_datum_t * signature
29                   will contain the signature allocate with gnutls_malloc()
30

DESCRIPTION

32       This function will sign the given data using a signature algorithm sup‐
33       ported by  the  private  key.  Signature  algorithms  are  always  used
34       together  with  a hash functions.  Different hash functions may be used
35       for the RSA algorithm, but only SHA-1 for the DSA keys.
36

RETURNS

38       On success, GNUTLS_E_SUCCESS is returned, otherwise  a  negative  error
39       value.
40

SINCE

42       2.12.0
43

REPORTING BUGS

45       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
46       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
47       http://www.gnu.org/gethelp/
48
50       Copyright © 2008 Free Software Foundation.
51       Copying  and  distribution  of this file, with or without modification,
52       are permitted in any medium  without  royalty  provided  the  copyright
53       notice and this notice are preserved.
54

SEE ALSO

56       The  full  documentation  for gnutls is maintained as a Texinfo manual.
57       If the info and gnutls programs are properly installed  at  your  site,
58       the command
59
60              info gnutls
61
62       should give you access to the complete manual.
63
64
65
66gnutls                             2.12.6.1        gnutls_privkey_sign_data(3)
Impressum