1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "gnutls_privkey_sign_data" 3 "2.12.6.1" "gnutls" "gnutls"
4 gnutls_privkey_sign_data \- API function
6 .B #include <gnutls/gnutls.h>
8 .BI "int gnutls_privkey_sign_data(gnutls_privkey_t " signer ", gnutls_digest_algorithm_t " hash ", unsigned int " flags ", const gnutls_datum_t * " data ", gnutls_datum_t * " signature ");"
10 .IP "gnutls_privkey_t signer" 12
12 .IP "gnutls_digest_algorithm_t hash" 12
13 should be a digest algorithm
14 .IP "unsigned int flags" 12
16 .IP "const gnutls_datum_t * data" 12
17 holds the data to be signed
18 .IP "gnutls_datum_t * signature" 12
19 will contain the signature allocate with \fBgnutls_malloc()\fP
21 This function will sign the given data using a signature algorithm
22 supported by the private key. Signature algorithms are always used
23 together with a hash functions. Different hash functions may be
24 used for the RSA algorithm, but only SHA\-1 for the DSA keys.
26 On success, \fBGNUTLS_E_SUCCESS\fP is returned, otherwise a
31 Report bugs to <bug-gnutls@gnu.org>.
32 GnuTLS home page: http://www.gnu.org/software/gnutls/
33 General help using GNU software: http://www.gnu.org/gethelp/
35 Copyright \(co 2008 Free Software Foundation.
37 Copying and distribution of this file, with or without modification,
38 are permitted in any medium without royalty provided the copyright
39 notice and this notice are preserved.
41 The full documentation for
43 is maintained as a Texinfo manual. If the
47 programs are properly installed at your site, the command
51 should give you access to the complete manual.