gnutls_pubkey_export_ecc_raw(3)
π gnutls_pubkey_export_ecc_raw π
okay bestie so this is a page straight out of the gnutls manual, and today we're unlocking the ECC raw export function. it's giving "let me get those curve coordinates out of your public key" energy and honestly? iconic. β¨
πΈ NAME πΈ
gnutls_pubkey_export_ecc_raw β API function
π SYNOPSIS π
#include <gnutls/abstract.h>
int gnutls_pubkey_export_ecc_raw(gnutls_pubkey_t key, gnutls_ecc_curve_t
* curve, gnutls_datum_t * x, gnutls_datum_t * y);
π¦ ARGUMENTS π¦
gnutls_pubkey_t keyβ holds the public key, bestie. this is the main character of the whole operation πgnutls_ecc_curve_t * curveβ will hold the curve (may beNULL) πgnutls_datum_t * xβ will hold x-coordinate (may beNULL) πgnutls_datum_t * yβ will hold y-coordinate (may beNULL) π
β¨ DESCRIPTION β¨
so this function will export the ECC public key's parameters found in the given key, fr fr. the new parameters get allocated using gnutls_malloc() and will be stored in the appropriate datum. cute, clean, allocated. π«Ά
now, plot twist: in EdDSA curves the y parameter will be NULL and the other parameters will be in the native format for the curve. so if you're looking for y in EdDSA land, bestie... it's not there. it's on vacation. π΄
and here's the glow-up moment β this function allows for NULL parameters since 3.4.1. periodt. π
β RETURNS β
GNUTLS_E_SUCCESS on success, otherwise a negative error code. so like, if it's negative, it's not slaying, it's struggling. π
π SINCE π
3.0
π REPORTING BUGS π
found a bug? not the vibe. report it, bestie:
- 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 visit
https://www.gnutls.org/manual/
lowkey important: every parameter here can beNULLif you don't need it, but that's only been true since3.4.1β so don't go trying it on ancient versions, iykyk π§
and that's the whole page!! this one's from the gnutls manual, version 3.8.13, and we're all caught up β mwah, go export some coordinates π π
π¦ 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