1gnutls_x509_privkey_verify_data(3) gnutls gnutls_x509_privkey_verify_data(3)
2
3
4
6 gnutls_x509_privkey_verify_data - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_privkey_verify_data(gnutls_x509_privkey_t key, unsigned
12 int flags, const gnutls_datum_t * data, const gnutls_datum_t * signa‐
13 ture);
14
16 gnutls_x509_privkey_t key
17 Holds the key
18
19 unsigned int flags
20 should be 0 for now
21
22 const gnutls_datum_t * data
23 holds the data to be signed
24
25 const gnutls_datum_t * signature
26 contains the signature
27
29 This function will verify the given signed data, using the parameters
30 in the private key.
31
33 In case of a verification failure GNUTLS_E_PK_SIG_VERIFY_FAILED is
34 returned, and a positive code on success.
35
37 Use gnutls_pubkey_verify_data().
38
40 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
41 http://www.gnu.org/software/gnutls/ General help using GNU software:
42 http://www.gnu.org/gethelp/
43
45 Copyright © 2008 Free Software Foundation.
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright
48 notice and this notice are preserved.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the info and gnutls programs are properly installed at your site,
53 the command
54
55 info gnutls
56
57 should give you access to the complete manual.
58
59
60
61gnutls 2.12.6.1 gnutls_x509_privkey_verify_data(3)