Blame doc/manpages/gnutls_x509_privkey_sign_hash.3

Packit 549fdc
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit 549fdc
.TH "gnutls_x509_privkey_sign_hash" 3 "3.6.2" "gnutls" "gnutls"
Packit 549fdc
.SH NAME
Packit 549fdc
gnutls_x509_privkey_sign_hash \- API function
Packit 549fdc
.SH SYNOPSIS
Packit 549fdc
.B #include <gnutls/compat.h>
Packit 549fdc
.sp
Packit 549fdc
.BI "int gnutls_x509_privkey_sign_hash(gnutls_x509_privkey_t " key ", const gnutls_datum_t * " hash ", gnutls_datum_t * " signature ");"
Packit 549fdc
.SH ARGUMENTS
Packit 549fdc
.IP "gnutls_x509_privkey_t key" 12
Packit 549fdc
a key
Packit 549fdc
.IP "const gnutls_datum_t * hash" 12
Packit 549fdc
holds the data to be signed
Packit 549fdc
.IP "gnutls_datum_t * signature" 12
Packit 549fdc
will contain newly allocated signature
Packit 549fdc
.SH "DESCRIPTION"
Packit 549fdc
This function will sign the given hash using the private key. Do not
Packit 549fdc
use this function directly unless you know what it is. Typical signing
Packit 549fdc
requires the data to be hashed and stored in special formats 
Packit 549fdc
(e.g. BER Digest\-Info for RSA).
Packit 549fdc
Packit 549fdc
This API is provided only for backwards compatibility, and thus
Packit 549fdc
restricted to RSA, DSA and ECDSA key types. For other key types please
Packit 549fdc
use \fBgnutls_privkey_sign_hash()\fP and \fBgnutls_privkey_sign_data()\fP.
Packit 549fdc
.SH "RETURNS"
Packit 549fdc
On success, \fBGNUTLS_E_SUCCESS\fP (0) is returned, otherwise a
Packit 549fdc
negative error value.
Packit 549fdc
Packit 549fdc
Deprecated in: 2.12.0
Packit 549fdc
.SH "REPORTING BUGS"
Packit 549fdc
Report bugs to <bugs@gnutls.org>.
Packit 549fdc
.br
Packit 549fdc
Home page: http://www.gnutls.org
Packit 549fdc
Packit 549fdc
.SH COPYRIGHT
Packit 549fdc
Copyright \(co 2001-2018 Free Software Foundation, Inc., and others.
Packit 549fdc
.br
Packit 549fdc
Copying and distribution of this file, with or without modification,
Packit 549fdc
are permitted in any medium without royalty provided the copyright
Packit 549fdc
notice and this notice are preserved.
Packit 549fdc
.SH "SEE ALSO"
Packit 549fdc
The full documentation for
Packit 549fdc
.B gnutls
Packit 549fdc
is maintained as a Texinfo manual.
Packit 549fdc
If the /usr/share/doc/gnutls/
Packit 549fdc
directory does not contain the HTML form visit
Packit 549fdc
.B
Packit 549fdc
.IP http://www.gnutls.org/manual/
Packit 549fdc
.PP