gnutls_pubkey_import_ecc_x962(3)
β¨ gnutls_pubkey_import_ecc_x962 β a vibe check β¨
okay bestie, so this one lives in the gnutls manual, and it's literally the glow-up ritual that turns raw elliptic-curve numbers into a real public key. let's get into it π
πΈ NAME πΈ
gnutls_pubkey_import_ecc_x962 β an API function, no cap. it imports an ANSI X9.62 ECC public key. that's the whole job. she's focused. she's employed. periodt.
π¦ SYNOPSIS π¦
#include <gnutls/abstract.h>
int gnutls_pubkey_import_ecc_x962(gnutls_pubkey_t key, const
gnutls_datum_t * parameters, const gnutls_datum_t * ecpoint);
yep, that's the whole signature. three things go in, one int comes out π«Ά
π ARGUMENTS π
gnutls_pubkey_t keyβ the structure to store the parsed key. this is where the magic lands, she's the main character, everything goes into her πconst gnutls_datum_t * parametersβ DER encoding of an ANSI X9.62 parameters. yes, DER. not PEM. don't come at me with PEM bestie, it's giving wrong format πconst gnutls_datum_t * ecpointβ DER encoding of ANSI X9.62 ECPoint. the actual point on the curve, encoded and ready π¦
π« DESCRIPTION π«
so here's the tea β β this function will convert the given elliptic curve parameters to a gnutls_pubkey_t. that's it. that's the function.
and the output? it will be stored in key. so like, make sure key is ready to receive, because she's getting filled in and there's no return-by-value situation happening here, iykyk.
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. anything else and you get a negative error value. negative = not slaying. check your return codes, bestie, they're literally telling you what's wrong π
π SINCE π
3.0 β she's been around. a legacy icon. been serving since 3.0 and never left. π
π REPORTING BUGS π
found a bug? don't just scream into the group chat, actually report it:
- 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.
(translation: you can copy and share it freely, just keep the copyright notice and this notice attached. respect the elders π«Ά)
π§ SEE ALSO π§
the full documentation for gnutls is maintained as a Texinfo manual. and listen β if the /usr/share/doc/gnutls/ directory does not contain the HTML form, then you gotta go visit:
https://www.gnutls.org/manual/
like, that's the link. that's the whole point. go there if the local docs ghosted you π
β οΈ real talk though: bothparametersandecpointneed to be DER encoded. DER. if you hand this function something else, that's a you problem, not a her problem. don't say I didn't warn you π
and that's the page!! this was gnutls 3.8.13 energy, brought to you by the gnutls crew β thanks for reading the whole thing, you're literally an icon for that πβ¨ bye bestie, go import some elliptic curves π
π¦ 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