gnutls_cipher_init(3)

✨ gnutls_cipher_init ✨

okay bestie, welcome to the gnutls manual page for gnutls_cipher_init(3) πŸ’– this is the one where we set up a whole encryption vibe, so grab a boba and let's get into it πŸ§‹βœ¨


🌸 NAME 🌸

gnutls_cipher_init β€” literally an API function, that's the whole name, periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/crypto.h>

int gnutls_cipher_init(gnutls_cipher_hd_t * handle,
gnutls_cipher_algorithm_t cipher, const gnutls_datum_t * key, const
gnutls_datum_t * iv);

no cap, that's the exact signature, copy it character for character or the compiler will simply not πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_cipher_hd_t * handle β€” bestie this is a gnutls_cipher_hd_t type, that's it, that's the whole description 🫢
  • gnutls_cipher_algorithm_t cipher β€” the encryption algorithm you wanna use, like the outfit you're picking for the function πŸ‘‘
  • const gnutls_datum_t * key β€” the key that gets used for encryption/decryption πŸ” the main character of the whole operation fr fr
  • const gnutls_datum_t * iv β€” the IV to use, and lowkey important: if it's not applicable you set it to NULL πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so this function will initialize the handle context to be usable for encryption/decryption of data ✨ it's giving "get ready for the glow-up" energy.

and the way that it works? it will effectively use the current crypto backend in use by gnutls, or the cryptographic accelerator in use πŸ”₯ so whichever backend is on deck, that's the one doing the math, iykyk.


🌈 RETURNS 🌈

Zero, or a negative error code on error 😭 so if you get zero you ate, and if you get a negative number... not me ignoring it, please check it bestie πŸ’€


⭐ SINCE ⭐

2.10.0 β€” this icon has been iconic since way back, no notes πŸ‘‘


πŸ› REPORTING BUGS πŸ›

Found a bug? spill, but to the right place: 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. so like, go off, just keep the receipt 🧾


πŸ‘€ 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/

fr fr, that's the whole page β€” nothing skipped, nothing summarised, every flag, value, path and link is right there where it belongs πŸ’…

okay bye bestie, this was the gnutls manual, version 3.8.13, and this page is gnutls_cipher_init(3) πŸ¦‹ go forth and encrypt responsibly, mwah πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from