gnutls_pubkey_export_ecc_raw2(3)
π gnutls_pubkey_export_ecc_raw2(3) β the gnutls manual, bestie edition
okay so you found the page for gnutls_pubkey_export_ecc_raw2, which lives in the gnutls manual. it's an API function. it's giving "let me hand you the raw ECC bits of your public key." let's get into it π
β¨ NAME β¨
gnutls_pubkey_export_ecc_raw2 β literally just an API function, no cap
β¨ SYNOPSIS β¨
#include <gnutls/abstract.h>
int gnutls_pubkey_export_ecc_raw2(gnutls_pubkey_t key,
gnutls_ecc_curve_t * curve, gnutls_datum_t * x, gnutls_datum_t * y,
unsigned int flags);
β¨ ARGUMENTS β¨
gnutls_pubkey_t keyβ this holds the public key ποΈ the whole main character of the operation, fr.gnutls_ecc_curve_t * curveβ this is gonna hold the curve. it may beNULL, so you can ghost it if you don't need it. πgnutls_datum_t * xβ will hold the x-coordinate. also may beNULL, so optional bestie π«Άgnutls_datum_t * yβ will hold the y-coordinate. may beNULLtoo, it's a whole vibe of "only if you want her" πunsigned int flagsβ flags, and they come fromgnutls_abstract_export_flags_t. periodt.
β¨ DESCRIPTION β¨
so this function exports the ECC public key's parameters that are sitting inside the given key. π the new parameters get allocated using gnutls_malloc() and then stored in the appropriate datum. slay, no memory management drama left for you.
on EdDSA curves, the y parameter will be NULL and the other parameters will be in the native format for the curve. lowkey important, so don't come for her when y shows up empty π
alsooo, this function allows for NULL parameters since 3.4.1. so if you're on something older... that's a different era, bestie π
β¨ RETURNS β¨
GNUTLS_E_SUCCESS on success π otherwise a negative error code. that's it, that's the deal.
β¨ SINCE β¨
3.6.0 β she's been around since then, iconic behavior β
β¨ REPORTING BUGS β¨
found a bug? don't suffer in silence, report it:
- 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. π
β¨ 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, go visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie π¦ go forth and export those coordinates responsibly. this was the gnutls manual, page for gnutls_pubkey_export_ecc_raw2(3), version 3.8.13 β mwah, love that for us πβ¨
π¦ 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