GNUTLS_X509_SPKI_SET_RSA_OAEP_PARAMS(3)
π NAME π
gnutls_x509_spki_set_rsa_oaep_params β bestie, this is an API function β¨
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_spki_set_rsa_oaep_params(gnutls_x509_spki_t spki,
gnutls_digest_algorithm_t dig,
const gnutls_datum_t * label);
π ARGUMENTS π
gnutls_x509_spki_t spkiβ okay so this is the SubjectPublicKeyInfo structure, the little container we're about to decorate πgnutls_digest_algorithm_t digβ a digest algorithm, and yes it has to be of typegnutls_digest_algorithm_t, no substitutions bestie π¦const gnutls_datum_t * labelβ an optional label, so it can be there or not, it's giving choose-your-own-adventure π
β¨ DESCRIPTION β¨
So basically, this function sets the public key parameters for an RSA-OAEP algorithm, inside the SubjectPublicKeyInfo structure. That's the whole vibe. It goes in, it drops the params, it's iconic π
π«Ά RETURNS π«Ά
It returns zero if the parameters are present, or a negative value if something went wrong. Zero good, negative not good, periodt π
β SINCE β
3.8.4 β so she's been around a minute, lowkey a queen π
π REPORTING BUGS π
Found a bug? Don't suffer in silence, tell the devs bestie:
- 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. Fr fr, just keep the notice and you're golden π
πΈ 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/
ngl if you made it this far you're officially a Unix main character π§ go forth and set those RSA-OAEP params, bestie π₯
okay bye ily, this was the gnutls manual, version 3.8.13, page gnutls_x509_spki_set_rsa_oaep_params β stay slaying, drink water, and always read your return values πβ¨π
π¦ 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