gnutls_encode_rs_value(3)
β¨ gnutls_encode_rs_value β¨
okay so bestie, we're deep in the gnutls manual (that's the GNU TLS library, she's iconic, she's everywhere) and today's main character is gnutls_encode_rs_value β an API function, no cap. let's get into it π
πΈ SYNOPSIS πΈ
#include <gnutls/crypto.h>
int gnutls_encode_rs_value(gnutls_datum_t * sig_value, const
gnutls_datum_t * r, const gnutls_datum_t * s);
π ARGUMENTS π
gnutls_datum_t * sig_valueβ this one's the lil container that will hold a Dss-Sig-Value DER encoded structure. she's the output girlie, she gets filled in π«Άconst gnutls_datum_t * rβ must contain thervalue. like, it HAS to, that's the whole vibe π₯const gnutls_datum_t * sβ must contain thesvalue. same energy, different letter π
π¦ DESCRIPTION π¦
so what does she DO? this function will encode the r and s values you hand her into a Dss-Sig-Value structure β which is the format used for DSA and ECDSA signatures. it's giving "put the two halves together so the rest of the world can read them" π«
heads up bestie: the output value should be deallocated using gnutls_free(). do NOT forget, or that memory is gonna linger like an ex who won't stop watching your stories π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned β slay π
otherwise? an error code comes back. not slay, but informative π
π SINCE π
3.6.0 β she's been around, she's a veteran, respect her π
π REPORTING BUGS π
found a bug? don't gatekeep, report it to <bugs@gnutls.org> π©
home page: https://www.gnutls.org β go say hi, she doesn't bite πΈ
π 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. fr fr, that's the whole deal, and it's honestly so generous of them π
π§ SEE ALSO π§
the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does NOT contain the HTML form, just go visit:
https://www.gnutls.org/manual/
iykyk πβ¨
and that's the whole page, bestie π«Ά this lil legend is from the gnutls manual, version 3.8.13, and the page is gnutls_encode_rs_value(3). go forth and encode responsibly π
π
π¦ 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