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 agnutls_cipher_hd_ttype, 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 frconst gnutls_datum_t * ivβ the IV to use, and lowkey important: if it's not applicable you set it toNULLπ
π 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 π
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
- 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