gnutls_privkey_export_dsa_raw2(3)
π gnutls_privkey_export_dsa_raw2 β the manual page, bestie edition π
okay so you're reading the gnutls manual, specifically the page for gnutls_privkey_export_dsa_raw2(3), and honestly? iconic of you. let's get into it. π
β¨ NAME β¨
gnutls_privkey_export_dsa_raw2 β it's an API function, babes. that's the whole name. it does exactly what it says on the tin: pulls the raw DSA bits out of a private key. π
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_privkey_export_dsa_raw2(gnutls_privkey_t key, gnutls_datum_t
* p, gnutls_datum_t * q, gnutls_datum_t * g, gnutls_datum_t * y,
gnutls_datum_t * x, unsigned int flags);
like, look at that signature. seven things going in, one int coming out. she's busy. π
π¦ ARGUMENTS π¦
so every single one of these, and what they're for:
gnutls_privkey_t keyβ holds the public key. (yes bestie, that's what the manpage says, we're not editing her β¨)gnutls_datum_t * pβ will hold thepgnutls_datum_t * qβ will hold theqgnutls_datum_t * gβ will hold theggnutls_datum_t * yβ will hold theygnutls_datum_t * xβ will hold thexunsigned int flagsβ flags fromgnutls_abstract_export_flags_t
ngl the p/q/g/y/x squad is giving "cryptography's it-girls" β they don't need last names, you already know them. π
π₯ DESCRIPTION π₯
this function will export the DSA private key's parameters found in the given structure. π«Ά
the new parameters get allocated using gnutls_malloc(), and they'll be stored in the appropriate datum. so like β heads up β that memory is yours to deal with afterwards. no cap, don't just leave it there. π
β RETURNS β
GNUTLS_E_SUCCESS on success. otherwise, a negative error code. so if it's negative, that's your vibe check failing, and you should go read the error. π
π SINCE π
3.6.0 β she's been here since 3.6.0, a real one. periodt. β¨
π REPORTING BUGS π
found something cursed? 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. like, free real estate. we love to see it. π
π§ 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/
ok that's the whole page, no skips, no cuts. every flag, every datum, every copyright line. slay. π
kisses, and remember β always free your datums β this was page gnutls_privkey_export_dsa_raw2(3) from the gnutls manual, version 3.8.13. mwah ππ¦
π¦ 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