gnutls_dh_params_import_raw3(3)

πŸ’– NAME πŸ’–

gnutls_dh_params_import_raw3 β€” bestie, it's an API function, and it's here to swap in your Diffie-Hellman prime and generator like it's changing the group chat's vibe πŸ¦‹

This one lives in the gnutls manual, and it's iconic, no cap.


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

int gnutls_dh_params_import_raw3(gnutls_dh_params_t dh_params, const
gnutls_datum_t * prime, const gnutls_datum_t * q, const gnutls_datum_t *
generator);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_dh_params_t dh_params β€” the parameters, the main character of this whole operation πŸ’…
  • const gnutls_datum_t * prime β€” holds the new prime, she's the moment
  • const gnutls_datum_t * q β€” holds the subgroup if available, otherwise NULL πŸ™ˆ (like, only pass her if she's actually there, bestie)
  • const gnutls_datum_t * generator β€” holds the new generator, slay

🌸 DESCRIPTION 🌸

Okay so, the way this works: this function will replace the pair of prime and generator for use in the Diffie-Hellman key exchange. Like a glow-up, but for your crypto params ✨

The new parameters should be stored in the appropriate gnutls_datum. That's the assignment. Do it right 🫢


πŸ’œ RETURNS πŸ’œ

On success, GNUTLS_E_SUCCESS (0) is returned β€” literally the best outcome, we love to see it πŸŽ‰

Otherwise a negative error code is returned, and we do not love to see it 😭


πŸ”₯ REPORTING BUGS πŸ”₯

Found a bug? Don't be shy, report it to <bugs@gnutls.org> β€” they wanna hear it fr fr.

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. Periodt πŸ’…


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


okay that's the whole page, you ate that πŸ“ go forth and import your params responsibly, bestie πŸ’–

this has been the gnutls manual, version 3.8.13, gnutls_dh_params_import_raw3(3) β€” mwah, bye πŸ‘‹

πŸ“¦ where this page comes from