1gnutls_privkey_export_dh_raw(3)     gnutls     gnutls_privkey_export_dh_raw(3)
2
3
4

NAME

6       gnutls_privkey_export_dh_raw - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int          gnutls_privkey_export_dh_raw(gnutls_privkey_t         key,
12       gnutls_dh_params_t params, gnutls_datum_t * y, gnutls_datum_t * x,  un‐
13       signed int flags);
14

ARGUMENTS

16       gnutls_privkey_t key
17                   Holds the private key
18
19       gnutls_dh_params_t params
20                   will hold the Diffie-Hellman parameters (optional), must be
21                   initialized
22
23       gnutls_datum_t * y
24                   will hold the y (optional)
25
26       gnutls_datum_t * x
27                   will hold the x
28
29       unsigned int flags
30                   flags from gnutls_abstract_export_flags_t
31

DESCRIPTION

33       This function will export  the  Diffie-Hellman  private  key  parameter
34       found  in  the given gnutls_privkey_t structure. The new parameter will
35       be allocated using gnutls_malloc() and will be stored in the  appropri‐
36       ate datum.
37
38       To retrieve other parameters common in both public key and private key,
39       use gnutls_dh_params_export_raw().
40

RETURNS

42       GNUTLS_E_SUCCESS on success, otherwise a negative error code.
43

SINCE

45       3.8.2
46

REPORTING BUGS

48       Report bugs to <bugs@gnutls.org>.
49       Home page: https://www.gnutls.org
50
51
53       Copyright © 2001-2023 Free Software Foundation, Inc., and others.
54       Copying and distribution of this file, with  or  without  modification,
55       are  permitted in any medium without royalty provided the copyright no‐
56       tice and this notice are preserved.
57

SEE ALSO

59       The full documentation for gnutls is maintained as  a  Texinfo  manual.
60       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
61       visit
62
63       https://www.gnutls.org/manual/
64
65gnutls                               3.8.2     gnutls_privkey_export_dh_raw(3)
Impressum