GNUTLS_X509_PRIVKEY_EXPORT_ECC_RAW(3)
π gnutls_x509_pri..._export_ecc_raw(3) π
okay bestie, welcome to the gnutls manual β this one's a lil page about yanking an ECC private key's raw bits out of a gnutls_x509_privkey_t. yes, raw. no cap. let's go π«Ά
β¨ NAME β¨
gnutls_x509_privkey_export_ecc_raw β API function πΈ
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_privkey_export_ecc_raw(gnutls_x509_privkey_t key,
gnutls_ecc_curve_t * curve, gnutls_datum_t * x, gnutls_datum_t * y,
gnutls_datum_t * k);
β¨ ARGUMENTS β¨
gnutls_x509_privkey_t keyβ a key π like, the actual key you're tryna export from, the main character heregnutls_ecc_curve_t * curveβ will hold the curve π it's an out-param, so it gets filled in for yougnutls_datum_t * xβ will hold the x-coordinate βgnutls_datum_t * yβ will hold the y-coordinate β¨gnutls_datum_t * kβ will hold the private key π the secret one, okurrr
β¨ DESCRIPTION β¨
So this function exports the ECC private key's parameters that were found in the given structure. that's the whole vibe. the new parameters get allocated using gnutls_malloc() and they get stored in the appropriate datum β so like, you own that memory, bestie, don't forget it exists π
In EdDSA curves the y parameter will be NULL and the other parameters will be in the native format for the curve. yes, NULL. not a typo, not a glitch, just how EdDSA does it π¦ iykyk.
β¨ RETURNS β¨
On success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value π that's the bad timeline, check it.
β¨ SINCE β¨
3.0 β an og, fr fr π
β¨ REPORTING BUGS β¨
found a bug? spill it to <bugs@gnutls.org> π§
Home page: https://www.gnutls.org
β¨ COPYRIGHT β¨
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (slay, no royalty, we love a permissive queen π)
β¨ SEE ALSO β¨
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit
https://www.gnutls.org/manual/
and that's the whole page, bestie!! πβ¨ you understood it, you ate, no crumbs left. this was page gnutls_x509_pri..._export_ecc_raw(3) from gnutls 3.8.13 β go forth and export those ECC params responsibly π
π¦π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms