1gnutls_pubkey_export_dh_raw(3) gnutls gnutls_pubkey_export_dh_raw(3)
2
3
4
6 gnutls_pubkey_export_dh_raw - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_pubkey_export_dh_raw(gnutls_pubkey_t key, gnutls_dh_params_t
12 params, gnutls_datum_t * y, unsigned flags);
13
15 gnutls_pubkey_t key
16 Holds the public key
17
18 gnutls_dh_params_t params
19 will hold the Diffie-Hellman parameter (optional), must be
20 initialized
21
22 gnutls_datum_t * y
23 will hold the y
24
25 unsigned flags
26 flags from gnutls_abstract_export_flags_t
27
29 This function will export the Diffie-Hellman public key parameter found
30 in the given public key. The new parameter will be allocated using
31 gnutls_malloc() and will be stored in the appropriate datum.
32
33 To retrieve other parameters common in both public key and private key,
34 use gnutls_dh_params_export_raw().
35
36 This function allows for NULL parameters since 3.4.1.
37
39 GNUTLS_E_SUCCESS on success, otherwise a negative error code.
40
42 3.8.2
43
45 Report bugs to <bugs@gnutls.org>.
46 Home page: https://www.gnutls.org
47
48
50 Copyright © 2001-2023 Free Software Foundation, Inc., and others.
51 Copying and distribution of this file, with or without modification,
52 are permitted in any medium without royalty provided the copyright no‐
53 tice and this notice are preserved.
54
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 https://www.gnutls.org/manual/
61
62gnutls 3.8.2 gnutls_pubkey_export_dh_raw(3)