GNUTLS_X509_PRIVKEY_IMPORT_ECC_RAW(3)
β¨ gnutls_x509_privkey_import_ecc_raw β¨
okay bestie, gather round, because this one is a little cryptographic glow-up and it's from the gnutls manual π
πΈ NAME πΈ
gnutls_x509_privkey_import_ecc_raw β literally just an API function, no cap π«Ά
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_privkey_import_ecc_raw(gnutls_x509_privkey_t key,
gnutls_ecc_curve_t curve, const gnutls_datum_t * x, const gnutls_datum_t
* y, const gnutls_datum_t * k);
that's the whole vibe right there π
π¦ ARGUMENTS π¦
gnutls_x509_privkey_t keyβ bestie this is the data to store the parsed key, like it's the lil container the whole thing moves into πgnutls_ecc_curve_t curveβ holds the curve, that's it, that's the jobconst gnutls_datum_t * xβ holds the x-coordinate πconst gnutls_datum_t * yβ holds the y-coordinate πconst gnutls_datum_t * kβ holds thekπ
π DESCRIPTION π
so the way this works: this function will convert the given elliptic curve parameters into the native gnutls_x509_privkey_t format. the output gets stored in key β that's where it lives now, periodt π
and hmm, one tiny but important thing: for EdDSA keys, the x and k values must be in the native to curve format. like, don't just hand it any old bytes, it has to match the curve's own format or it's giving chaos π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value, which is the function's way of saying "not me being dramatic but something went wrong" π
π SINCE π
3.0 β an icon, an OG, been here since forever β¨
π REPORTING BUGS π
found a bug? spill the tea, report it 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. slay, that's genuinely so generous of them π«Ά
π§ 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/
no cap: if you're out here reading manpages for fun, you ARE the main character π«‘β¨
and that's a wrap, bestie β this page came from gnutls 3.8.13 π go forth and import those ECC keys responsibly, mwah ππ
π¦ 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