gnutls_x509_sp..._rsa_pss_params(3)

πŸ’– gnutls_x509_sp..._rsa_pss_params(3) πŸ’–

okay bestie so you're in the gnutls manual, and this lil page is all about one very specific function that pulls RSA-PSS params out of a SubjectPublicKeyInfo. yes it's a mouthful, no you're not dumb, the page title is literally truncated with ... because it's That Long. let's get into it 🫢


✨ NAME ✨

gnutls_x509_spki_get_rsa_pss_params β€” it's an API function, periodt.


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

int gnutls_x509_spki_get_rsa_pss_params(gnutls_x509_spki_t spki,
gnutls_digest_algorithm_t * dig, unsigned int * salt_size);

like, you gotta include the header first, obviously πŸ’…


✨ ARGUMENTS ✨

  • gnutls_x509_spki_t spki β€” the SubjectPublicKeyInfo structure. this is the thing you're interrogating, she's the main character here πŸ‘‘
  • gnutls_digest_algorithm_t * dig β€” if it's non-NULL, it will hold the digest algorithm. if it's NULL, she simply does not get filled, and that's fine 🌸
  • unsigned int * salt_size β€” if it's non-NULL, it will hold the salt size. same deal, NULL means she stays empty, no shade πŸ’œ

✨ DESCRIPTION ✨

so what does this do? this function will get the public key algorithm parameters of RSA-PSS type. that's it. that's the whole job. she's a getter, she gets things, and she gets them correctly ✨


✨ RETURNS ✨

  • returns zero if the parameters are present ✨
  • or a negative value on error 😭
lowkey important: zero = good news, negative = something went wrong. don't flip those around bestie, i'm begging πŸ™ˆ

✨ SINCE ✨

3.6.0 β€” she's been here since 3.6.0, an absolute icon of longevity πŸ’–


✨ REPORTING BUGS ✨

found a bug? not the vibe, but okay, report it:


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 that means you can share it, go off, 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 came to you from gnutls 3.8.13 β€” the gnutls_x509_sp..._rsa_pss_params(3) of the gnutls manual, slay, bye πŸ’…βœ¨

πŸ“¦ where this page comes from