1
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2
.TH "gnutls_privkey_sign_hash" 3 "2.12.6.1" "gnutls" "gnutls"
4
gnutls_privkey_sign_hash \- API function
6
.B #include <gnutls/gnutls.h>
8
.BI "int gnutls_privkey_sign_hash(gnutls_privkey_t " signer ", gnutls_digest_algorithm_t " hash_algo ", unsigned int " flags ", const gnutls_datum_t * " hash_data ", gnutls_datum_t * " signature ");"
10
.IP "gnutls_privkey_t signer" 12
11
Holds the signer's key
12
.IP "gnutls_digest_algorithm_t hash_algo" 12
13
The hash algorithm used
14
.IP "unsigned int flags" 12
16
.IP "const gnutls_datum_t * hash_data" 12
17
holds the data to be signed
18
.IP "gnutls_datum_t * signature" 12
19
will contain newly allocated signature
21
This function will sign the given hashed 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\-XXX for the DSA keys.
26
Use \fBgnutls_x509_crt_get_preferred_hash_algorithm()\fP to determine
29
On success, \fBGNUTLS_E_SUCCESS\fP is returned, otherwise a
34
Report bugs to <bug-gnutls@gnu.org>.
35
GnuTLS home page: http://www.gnu.org/software/gnutls/
36
General help using GNU software: http://www.gnu.org/gethelp/
38
Copyright \(co 2008 Free Software Foundation.
40
Copying and distribution of this file, with or without modification,
41
are permitted in any medium without royalty provided the copyright
42
notice and this notice are preserved.
44
The full documentation for
46
is maintained as a Texinfo manual. If the
50
programs are properly installed at your site, the command
54
should give you access to the complete manual.