gnutls_privkey_import_ecc_raw(3)
β¨ gnutls_privkey_import_ecc_raw β¨
okay bestie, so this is a page from the gnutls manual, and today we're getting into gnutls_privkey_import_ecc_raw β the API function that lets you yeet some elliptic curve parameters straight into a native gnutls private key. no cap, it's giving "I already have the raw numbers, just take them." π
πΈ NAME πΈ
gnutls_privkey_import_ecc_raw β literally an API function, that's it, that's the whole name π
β¨ SYNOPSIS β¨
#include <gnutls/abstract.h>
int gnutls_privkey_import_ecc_raw(gnutls_privkey_t key,
gnutls_ecc_curve_t curve, const gnutls_datum_t * x, const gnutls_datum_t
* y, const gnutls_datum_t * k);
π ARGUMENTS π
gnutls_privkey_t keyβ bestie this is the key, the main character, the whole point π«Άgnutls_ecc_curve_t curveβ holds the curve (iykyk, we're doing elliptic curves today)const gnutls_datum_t * xβ holds the x-coordinate, like x marks the spot β¨const gnutls_datum_t * yβ holds the y-coordinate, the other half of the momentconst gnutls_datum_t * kβ holds thek(private key) π lowkey the most important one, keep it secret fr fr
π¦ DESCRIPTION π¦
So this function will convert the given elliptic curve parameters into the native gnutls_privkey_t format. the glow-up happens, and the output gets stored in key. periodt π
ok but listen β on EdDSA curves, theyparameter should beNULL, and thexandkparameters must be in the native format for the curve. no improvising, bestie, it has to be the native format. π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value and honestly? not the vibe. π
π SINCE π
3.0 β she's been here since 3.0, iconic behaviour honestly π
π REPORTING BUGS π
found a bug? don't suffer in silence, 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. so like, go off, just 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/
and that's the whole page bestie, no notes π this was the gnutls 3.8.13 version of gnutls_privkey_import_ecc_raw(3) β thanks for reading, mwah, slay, 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