gnutls_privkey_export_ecc_raw2(3)
π gnutls_privkey_export_ecc_raw2(3) β the gnutls girlies' manual π
okay bestie, so this is one page out of the big gnutls manual (yes, the whole thing is a Texinfo manual, more on that at the bottom π«Ά), and today's main character is gnutls_privkey_export_ecc_raw2. It's an API function. She's giving β¨key extractionβ¨. Let's go.
πΈ NAME πΈ
gnutls_privkey_export_ecc_raw2 β API function
β¨ SYNOPSIS β¨
#include <gnutls/abstract.h>
int gnutls_privkey_export_ecc_raw2(gnutls_privkey_t key,
gnutls_ecc_curve_t * curve, gnutls_datum_t * x, gnutls_datum_t * y,
gnutls_datum_t * k, unsigned int flags);
like. she takes six things. six. iconic of her honestly π
π ARGUMENTS π
gnutls_privkey_t keyβ holds the public key π (yes bestie, that's literally what the docs say, we don't ask questions, we just report)gnutls_ecc_curve_t * curveβ will hold the curve πgnutls_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 π€«πunsigned int flagsβ flags fromgnutls_abstract_export_flags_tπ©
π¦ DESCRIPTION π¦
so the whole vibe here is: this function will export the ECC private key's parameters found in the given structure. she's taking what's inside and handing it to you, bestie.
The new parameters will be allocated using gnutls_malloc() and will be stored in the appropriate datum. so like, they're yours now, you got them, they're freshly allocated and everything π
π¨ special case alert π¨ β in EdDSA curves theyparameter will beNULL, and the other parameters will be in the native format for the curve. not a bug, that's just how EdDSA is built. don't come for her.
π RETURNS π
GNUTLS_E_SUCCESS on success π β otherwise a negative error code π (as is tradition)
β SINCE β
3.6.0 β she's been around a minute, lowkey a legend
π REPORTING BUGS π
found something cursed? Report bugs 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. (fr fr, that's the license, respect it π«Ά)
π§ 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/
π reminder for the girlies: every parameter, every flag type, every return code above is exactly what the page says. no cap. don't skip the NULL thing for EdDSA, iykyk.
that's the whole page bestie, you ate that read π β¨
this one's from the gnutls manual, version 3.8.13 β go forth and export those ECC parameters 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