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 Β© 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