gnutls_x509_pr...export_gost_raw(3)
π gnutls_x509_privkey_export_gost_raw π
okay bestie, sit down, we're doing a gnutls moment π this one lives in the gnutls manual (section 3, the library-call girlies) and it's an API function that gets your GOST private key params out of a key struct. no cap. let's go β¨
β¨ NAME β¨
gnutls_x509_privkey_export_gost_raw β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_privkey_export_gost_raw(gnutls_x509_privkey_t key,
gnutls_ecc_curve_t * curve, gnutls_digest_algorithm_t * digest,
gnutls_gost_paramset_t * paramset, gnutls_datum_t * x, gnutls_datum_t *
y, gnutls_datum_t * k);
like, seven arguments, she's high maintenance and that's iconic π
π¦ ARGUMENTS π¦
gnutls_x509_privkey_t keyβ a key π yes literally just a key, that's the whole vibegnutls_ecc_curve_t * curveβ will hold the curve πgnutls_digest_algorithm_t * digestβ will hold the digest πgnutls_gost_paramset_t * paramsetβ will hold the GOST parameter set ID πgnutls_datum_t * xβ will hold the x-coordinate β¨gnutls_datum_t * yβ will hold the y-coordinate β¨gnutls_datum_t * kβ will hold the private key π (yes, the secret one, keep it safe bestie)
π DESCRIPTION π
so this function will export the GOST private key's parameters found in the given structure. the way it justβ¦ pulls them out and hands them to you π«Ά
the new parameters will be allocated using gnutls_malloc() and will be stored in the appropriate datum. so like, the memory is yours now, act accordingly π
β οΈ NOTE β οΈ
parameters will be stored with least significant byte first. on version 3.6.3 this was incorrectly returned in big-endian format. not me calling out a 3.6.3 bug π they fixed it, we move on, periodt.
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so like, zero = slay, negative = something went wrong π
π SINCE π
3.6.3 β she's been here a minute, respect the elder π
π 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. (basically: go off, just keep the receipt π§Ύβ¨)
π 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/
iykyk π
and that's the whole page bestie, no crumbs left π this was gnutls 3.8.13, dated right there in the footer with gnutls_x509_pr...export_gost_raw(3) β mwah, go export some GOST params, you've got this π
β¨π¦
π¦ 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