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 momentconst gnutls_datum_t * qβ holds the subgroup if available, otherwiseNULLπ (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 π
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
- 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