1gnutls_privkey_sign_raw_data(3)     gnutls     gnutls_privkey_sign_raw_data(3)
2
3
4

NAME

6       gnutls_privkey_sign_raw_data - API function
7

SYNOPSIS

9       #include <gnutls/compat.h>
10
11       int  gnutls_privkey_sign_raw_data(gnutls_privkey_t key, unsigned flags,
12       const gnutls_datum_t * data, gnutls_datum_t * signature);
13

ARGUMENTS

15       gnutls_privkey_t key
16                   Holds the key
17
18       unsigned flags
19                   should be zero
20
21       const gnutls_datum_t * data
22                   holds the data to be signed
23
24       gnutls_datum_t * signature
25                   will contain the signature allocate with gnutls_malloc()
26

DESCRIPTION

28       This function will sign the given data using a signature algorithm sup‐
29       ported  by  the private key. Note that this is a low-level function and
30       does not apply any preprocessing or hash on the signed data.  For exam‐
31       ple  on  an  RSA key the input  data should be of the DigestInfo PKCS 1
32       1.5 format. Use it only if you know what are you doing.
33
34       Note    this    function     is     equivalent     to     using     the
35       GNUTLS_PRIVKEY_SIGN_FLAG_TLS1_RSA flag with gnutls_privkey_sign_hash().
36

RETURNS

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

SINCE

42       3.1.10
43

REPORTING BUGS

45       Report bugs to <bugs@gnutls.org>.
46       Home page: http://www.gnutls.org
47
48
50       Copyright © 2001-2014 Free Software Foundation, Inc..
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
58       visit
59
60       http://www.gnutls.org/manual/
61
62gnutls                              3.3.29     gnutls_privkey_sign_raw_data(3)
Impressum