GNUTLS_X509_PRIVKEY_EXPORT_RSA_RAW(3)
π gnutls_x509_privkey_export_rsa_raw β the girlies are exporting RSA raw params π
okay bestie, welcome to the gnutls manual, page gnutls_x509_privkey_export_rsa_raw(3). no cap, this one is a lil spicy πΆοΈ because it's literally handing you the secret sauce of an RSA private key. let's get into it π«Ά
β¨ NAME β¨
gnutls_x509_privkey_export_rsa_raw β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_privkey_export_rsa_raw(gnutls_x509_privkey_t key,
gnutls_datum_t * m, gnutls_datum_t * e, gnutls_datum_t * d,
gnutls_datum_t * p, gnutls_datum_t * q, gnutls_datum_t * u);
like yes, that's a LOT of out-params, but she's worth it π
π ARGUMENTS π
gnutls_x509_privkey_t keyβ a key. your main character πgnutls_datum_t * mβ will hold the modulus. the big number energy β¨gnutls_datum_t * eβ will hold the public exponent. she's public, she's out there πgnutls_datum_t * dβ will hold the private exponent. SECRET. do not be posting this. πgnutls_datum_t * pβ will hold the first prime (p) πgnutls_datum_t * qβ will hold the second prime (q) π§gnutls_datum_t * uβ will hold the coefficient π«
π¦ DESCRIPTION π¦
so this function will export the RSA private key's parameters found in the given structure. literally all of them, out into your hands, no gatekeeping π
the new parameters will be allocated using gnutls_malloc() and will be stored in the appropriate datum. so yeah, that memory is yours β it's giving "you allocated it, you free it" energy, iykyk π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value and it's giving "something went wrong bestie" π
π REPORTING BUGS π
found a bug? not the vibe. report it, fr fr:
- bugs go 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. so like, share it, remix it, just keep the receipts π«Ά
π 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 π slay, go export those RSA params responsibly, and remember: d, p, q and u are private for a reason π
this was page gnutls_x509_privkey_export_rsa_raw(3) from the gnutls manual, version 3.8.13 β mwah, ily, 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