gnutls_pubkey_import_dh_raw(3)

✨ gnutls_pubkey_import_dh_raw ✨

okay bestie, welcome to the gnutls manual πŸ’– this one's a lil function page from the big gnutls book, and honestly? it's giving "one job, does it well." let's get into it 🫢


🌸 NAME 🌸

gnutls_pubkey_import_dh_raw β€” API function πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/abstract.h>

int gnutls_pubkey_import_dh_raw(gnutls_pubkey_t key, const
       gnutls_dh_params_t params, const gnutls_datum_t * y);

πŸ‘‘ ARGUMENTS πŸ‘‘

  • gnutls_pubkey_t key β€” the structure to store the parsed key, like it's the lil container where your brand new key is gonna live πŸ’…
  • const gnutls_dh_params_t params β€” holds the gnutls_dh_params_t, so it's carrying the params, no cap
  • const gnutls_datum_t * y β€” holds the y ⭐

🌈 DESCRIPTION 🌈

so basically, this function will convert the given Diffie-Hellman raw parameters to the native gnutls_pubkey_t format ✨ and the output will be stored in key πŸ’–

like… it takes your raw DH stuff and makes it ✨native✨. that's the whole vibe. obsessed.


πŸ”₯ RETURNS πŸ”₯

On success, GNUTLS_E_SUCCESS (0) is returned β€” slay πŸ’š otherwise you get a negative error value and, well, we don't love that for you 😭


⭐ SINCE ⭐

3.8.2 β€” she's been around, periodt πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Report bugs to <bugs@gnutls.org>. they're literally waiting for your emails bestie, don't be shy 🫢

Home page: https://www.gnutls.org


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. yup, it's free, go wild πŸ’š


🌸 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/

like, go read the whole thing, it's the main character πŸ“–βœ¨


and that's the page, bestie!! πŸ’œ this one's from gnutls 3.8.13, page gnutls_pubkey_import_dh_raw(3), living its best life in the gnutls manual. k bye, go import some keys responsibly πŸ¦‹πŸŽ€πŸ’–

πŸ“¦ where this page comes from