gnutls_pubkey_import_ecc_raw(3)
β¨ gnutls_pubkey_import_ecc_raw β¨
okay bestie, welcome to the gnutls corner of the manual β this one's a little function called gnutls_pubkey_import_ecc_raw, and it's honestly giving "tiny API, big main character energy" π
πΈ NAME πΈ
gnutls_pubkey_import_ecc_raw β an API function π
π¦ SYNOPSIS π¦
#include <gnutls/abstract.h>
int gnutls_pubkey_import_ecc_raw(gnutls_pubkey_t key, gnutls_ecc_curve_t
curve, const gnutls_datum_t * x, const gnutls_datum_t * y);
π ARGUMENTS π
gnutls_pubkey_t keyβ the structure where the parsed key is gonna live. it's the lil storage unit for your key, periodt β¨gnutls_ecc_curve_t curveβ holds the curve πconst gnutls_datum_t * xβ holds the x-coordinate πconst gnutls_datum_t * yβ holds the y-coordinate π
π DESCRIPTION π
so the way this works: this function will convert the given elliptic curve parameters into a gnutls_pubkey_t. the output gets stored in key π«
and here's the lil plot twist for EdDSA curves: in those, the y parameter should be NULL and the x parameter must be the value in the native format for the curve. no cap, that's just how it is π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π«Ά otherwise you get a negative error value (sad girl hours π).
π°οΈ SINCE π°οΈ
3.0 β an icon from way back, we stan a legacy queen π
π REPORTING BUGS π
report bugs to <bugs@gnutls.org>. home page: https://www.gnutls.org
(they literally want to hear from you, so if something's cursed, tell them fr fr π)
π 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. slay, and also legally binding in the most chill way possible β¨
π 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/
and that's the whole page, bestie β go import some elliptic curve keys, you're gonna eat π β¨
mwah π this was gnutls 3.8.13, brought to you with love and zero cap. bye bb, see u in the next manpage ππ¦
π¦ 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