1gnutls_pubkey_export_ecc_raw2(3) gnutls gnutls_pubkey_export_ecc_raw2(3)
2
3
4
6 gnutls_pubkey_export_ecc_raw2 - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_pubkey_export_ecc_raw2(gnutls_pubkey_t key,
12 gnutls_ecc_curve_t * curve, gnutls_datum_t * x, gnutls_datum_t * y, un‐
13 signed int flags);
14
16 gnutls_pubkey_t key
17 Holds the public key
18
19 gnutls_ecc_curve_t * curve
20 will hold the curve (may be NULL)
21
22 gnutls_datum_t * x
23 will hold x-coordinate (may be NULL)
24
25 gnutls_datum_t * y
26 will hold y-coordinate (may be NULL)
27
28 unsigned int flags
29 flags from gnutls_abstract_export_flags_t
30
32 This function will export the ECC public key's parameters found in the
33 given key. The new parameters will be allocated using gnutls_malloc()
34 and will be stored in the appropriate datum.
35
36 In EdDSA curves the y parameter will be NULL and the other parameters
37 will be in the native format for the curve.
38
39 This function allows for NULL parameters since 3.4.1.
40
42 GNUTLS_E_SUCCESS on success, otherwise a negative error code.
43
45 3.6.0
46
48 Report bugs to <bugs@gnutls.org>.
49 Home page: https://www.gnutls.org
50
51
53 Copyright © 2001- 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
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.7.8 gnutls_pubkey_export_ecc_raw2(3)