gnutls_privkey_export_dh_raw(3)
β¨ gnutls_privkey_export_dh_raw β¨
okay bestie, so this one lives in the gnutls manual (section 3, the library-calls girlies) and it's literally all about pulling the Diffie-Hellman private key parameter out of a gnutls_privkey_t. no cap, it's a whole vibe π
π NAME π
gnutls_privkey_export_dh_raw β API function
π¦ SYNOPSIS π¦
#include <gnutls/abstract.h>
int gnutls_privkey_export_dh_raw(gnutls_privkey_t key,
gnutls_dh_params_t params, gnutls_datum_t * y, gnutls_datum_t * x,
unsigned int flags);
πΈ ARGUMENTS πΈ
gnutls_privkey_t keyβ holds the private key, she's the main character here πgnutls_dh_params_t paramsβ will hold the Diffie-Hellman parameters. it's optional (so you can pass nothing if you're not about that life), but if you do pass it, it must be initialized. don't come in here uninitialized fr fr πgnutls_datum_t * yβ will hold they. also optional. lowkey just chilling β¨gnutls_datum_t * xβ will hold thex. this one's not optional, bestie, she's required πunsigned int flagsβ flags fromgnutls_abstract_export_flags_t
π DESCRIPTION π
so this function will export the Diffie-Hellman private key parameter found in the given gnutls_privkey_t structure. the new parameter gets allocated using gnutls_malloc() and gets stored in the appropriate datum. yes, allocated, as in you are responsible for it, iykyk π«Ά
and if you want the other parameters that are common in both the public key and the private key? use gnutls_dh_params_export_raw() instead. different function, different slay π
β RETURNS β
GNUTLS_E_SUCCESS on success β we love a happy ending π β otherwise a negative error code. sad girl hours π
π§ SINCE π§
3.8.2
π₯ REPORTING BUGS π₯
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. 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/
that's the whole thing, bestie β no notes, you ate π this was gnutls version 3.8.13, page gnutls_privkey_export_dh_raw(3), from the gnutls manual. go forth and export those params πβ¨π¦
π¦ 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