gnutls_pubkey_export_gost_raw2(3)
β¨ gnutls_pubkey_export_gost_raw2 β¨
okay bestie, welcome to the gnutls manual π this one lives in the gnutls manual set, and it's all about pulling GOST public key params out of a key. let's go π«Ά
πΈ NAME πΈ
gnutls_pubkey_export_gost_raw2 β API function, no cap π
π SYNOPSIS π
#include <gnutls/abstract.h>
int gnutls_pubkey_export_gost_raw2(gnutls_pubkey_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, unsigned int flags);
π ARGUMENTS π
gnutls_pubkey_t keyβ holds the public key, like it's literally holding it π«΄gnutls_ecc_curve_t * curveβ will hold the curve (may beNULL)gnutls_digest_algorithm_t * digestβ will hold the curve (may beNULL) (yes bestie, the manpage fr says "curve" here too, i'm not gaslighting you π)gnutls_gost_paramset_t * paramsetβ will hold the parameters id (may beNULL)gnutls_datum_t * xβ will hold the x-coordinate (may beNULL)gnutls_datum_t * yβ will hold the y-coordinate (may beNULL)unsigned int flagsβ flags fromgnutls_abstract_export_flags_t
π¦ DESCRIPTION π¦
this function will export the GOST public key's parameters found in the given key β¨ the new parameters get allocated using gnutls_malloc() and will be stored in the appropriate datum. iconic behaviour tbh π
π NOTE π
parameters will be stored with least significant byte first. On version 3.6.3 this was incorrectly returned in big-endian format. a little oopsie, it happens π
π RETURNS π
GNUTLS_E_SUCCESS on success π otherwise a negative error code π
β SINCE β
3.6.3 β been here since then, a true veteran π
π 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. free and unbothered, as it should be π§
π₯ 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, you ate that π this was gnutls 3.8.13, gnutls_pubkey_export_gost_raw2(3) β go export those coordinates, ily, periodt πβ¨π
π¦ 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