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_SUCCESS when 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!


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