gnutls_pubkey_export_ecc_x962(3)
π gnutls_pubkey_export_ecc_x962 β bestie edition π
okay so this is a page from the gnutls manual (that's the TLS/GnuTLS library manual, if you're new here, hi, welcome π«Ά) and it's all about one little API function called gnutls_pubkey_export_ecc_x962. yes the name is a mouthful. no we are not renaming it. periodt.
β¨ NAME β¨
gnutls_pubkey_export_ecc_x962 β it's an API function π
πΈ SYNOPSIS πΈ
like, the actual shape of it, no cap:
#include <gnutls/abstract.h>
int gnutls_pubkey_export_ecc_x962(gnutls_pubkey_t key, gnutls_datum_t *
parameters, gnutls_datum_t * ecpoint);
π ARGUMENTS π
gnutls_pubkey_t keyβ this one holds the public key. it's the star of the show, the main character, the key we're exporting from πgnutls_datum_t * parametersβ this is where the DER encoding of an ANSI X9.62 parameters goes. yes, DER. yes, ANSI X9.62. iykyk πgnutls_datum_t * ecpointβ and this one gets the DER encoding of ANSI X9.62 ECPoint. it's giving coordinates, it's giving curve point, it's giving slay β¨
π¦ DESCRIPTION π¦
so basically, this function will export the ECC public key's parameters that it finds in the given certificate. like, it goes digging through the cert and pulls the ECC param energy right out π
and the tea is: the new parameters get allocated using gnutls_malloc() and then stored in the appropriate datum. so yeah, memory's being handed to you, bestie β don't forget that's yours to deal with π«Ά
π RETURNS π
GNUTLS_E_SUCCESSwhen everything went great, iconic, no notes β- otherwise, a negative error code. and yeah, negative = not the vibe, something went wrong π
π« SINCE π«
3.3.0 β she's been here since 3.3.0, an OG, a legend, respect her π
π REPORTING BUGS π
found a bug? not the cute kind? tell the devs!
- 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. (so like, go off, but keep the receipts π)
π₯ 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/
okay that's the whole page, bestie, you ate it, go export some ECC keys responsibly πβ¨
gnutls version 3.8.13 Β· page: gnutls_pubkey_export_ecc_x962(3) Β· mwah, love u, bye π¦ππ
π¦ 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