GNUTLS_X509_SPKI_SET_RSA_OAEP_PARAMS(3)

πŸ“¦
version 3.8.13 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, ubuntu stonking

πŸ’– 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 type gnutls_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:


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