gnutls_encode_gost_rs_value(3)
π gnutls_encode_gost_rs_value β API function π
okay bestie, welcome to the gnutls manual, section 3 π this one's all about gnutls_encode_gost_rs_value, and yes it's a whole vibe. let's get into it β¨
πΈ NAME πΈ
gnutls_encode_gost_rs_value β API function π«Ά
β¨ SYNOPSIS β¨
#include <gnutls/crypto.h>
int gnutls_encode_gost_rs_value(gnutls_datum_t * sig_value, const
gnutls_datum_t * r, const gnutls_datum_t * s);
like, that's the whole signature, no cap π
π¦ ARGUMENTS π¦
gnutls_datum_t * sig_valueβ bestie, this one's the output slot. it will hold a GOST signature according to RFC 4491 section 2.2.2 πconst gnutls_datum_t * rβ must contain thervalue, periodt. no r, no party πconst gnutls_datum_t * sβ must contain thesvalue. it's giving the other half of the duo π
π DESCRIPTION π
so what this function does is: it takes your r and your s values and encodes them into the binary representation according to RFC 4491 section 2.2.2 β the one used for GOST R 34.10-2001 signatures (and thus also for GOST R 34.10-2012 signatures, iykyk) π₯
it's literally just r + s β one pretty encoded signature. iconic behaviour fr fr.
π¨ important bestie: the output value should be deallocated using gnutls_free(). don't just leave it hanging, that's a memory leak and we do not do those here π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise an error code is returned. so like, check your return value, it's the vibe check of this whole function π
π SINCE π
3.6.0 β been serving since 3.6.0, a true veteran π
π REPORTING BUGS π
found a bug? not the cute kind? report it 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 π«Ά (yes bestie, that means you can share 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!! π¦ this was gnutls version 3.8.13 of the gnutls_encode_gost_rs_value(3) manual β mwah, go encode some GOST signatures, you absolute main character πβ¨
π¦ 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