gnutls_pubkey_import_rsa_raw(3)

πŸ’– gnutls_pubkey_import_rsa_raw(3) πŸ’–

okay bestie, welcome to the gnutls manual, the abstract.h corner of the universe 🌸 this one's all about dropping raw RSA public parameters straight into a pubkey, no DER wrapping, no drama, just vibes and math ✨


✨ NAME ✨

gnutls_pubkey_import_rsa_raw β€” it's an API function, and it's here to serve πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/abstract.h>

int gnutls_pubkey_import_rsa_raw(gnutls_pubkey_t key, const
gnutls_datum_t * m, const gnutls_datum_t * e);

like, that's the whole entrance exam, bestie, three arguments and a return int πŸŽ€


🌸 ARGUMENTS 🌸

  • gnutls_pubkey_t key β€” the key itself, your main character πŸ‘‘
  • const gnutls_datum_t * m β€” holds the modulus. yes, the big number, the whole thing πŸ’€
  • const gnutls_datum_t * e β€” holds the public exponent. usually tiny. usually iconic. lowkey always invited to the party πŸŽ‰

πŸ’œ DESCRIPTION πŸ’œ

so what this function does: it replaces the parameters in the given structure πŸ”₯ like, not "adds to", not "merges with" β€” replaces. the new parameters should be stored in the appropriate gnutls_datum. that's it, that's the whole job, and it does it flawlessly, no notes πŸ’…


⭐ RETURNS ⭐

GNUTLS_E_SUCCESS on success, or a negative error code. slay when it works, and when it doesn't, at least it tells you with a negative number, fr fr 😭


πŸŽ€ SINCE πŸŽ€

2.12.0 β€” an elder, an OG, a legend that's been holding it down since way back 🫢


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed? report bugs to <bugs@gnutls.org>. πŸ“§

home page: https://www.gnutls.org 🏠


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 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 was gnutls version 3.8.13 doing its thing, sourced straight from the gnutls_pubkey_import_rsa_raw(3) page itself πŸ’– mwah, go import some raw RSA, you've got this πŸ¦‹βœ¨

πŸ“¦ where this page comes from