GNUTLS_X509_PRIVKEY_EXPORT_DSA_RAW(3)

✨ NAME ✨

gnutls_x509_privkey_export_dsa_raw β€” bestie, it's an API function πŸ’… and it's here to pull the raw DSA private key params out of your key structure πŸŽ€

This one lives in the gnutls manual, section 3 πŸ¦‹


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

int gnutls_x509_privkey_export_dsa_raw(gnutls_x509_privkey_t key,
gnutls_datum_t * p, gnutls_datum_t * q, gnutls_datum_t * g,
gnutls_datum_t * y, gnutls_datum_t * x);

🌸 ARGUMENTS 🌸

  • gnutls_x509_privkey_t key β€” the key, girl. this is the one you're cracking open πŸ’–
  • gnutls_datum_t * p β€” will hold the p ✨ (yes it's just gonna sit there and hold it)
  • gnutls_datum_t * q β€” will hold the q πŸŽ€
  • gnutls_datum_t * g β€” will hold the g πŸ¦‹
  • gnutls_datum_t * y β€” will hold the y 🌸
  • gnutls_datum_t * x β€” will hold the x πŸ’œ

πŸ’– DESCRIPTION πŸ’–

okay so, this function will export the DSA private key's parameters found in the given structure. that's the whole vibe. πŸ‘‘

The new parameters get allocated using gnutls_malloc() and will be stored in the appropriate datum. so like, memory is handled for you, no cap. 🫢


πŸ”₯ RETURNS πŸ”₯

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you see a negative number, that's not a slay, that's a problem 😭


😭 REPORTING BUGS 😭

Found a bug? Report bugs to <bugs@gnutls.org>. πŸ’€

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. (iconic behaviour tbh, very giving ✨)


🌈 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!! this was gnutls version 3.8.13, section 3, page gnutls_x509_pri..._export_dsa_raw(3) πŸŽ€ ty for reading, go export some DSA params responsibly, ily πŸ’–βœ¨

πŸ“¦ where this page comes from