gnutls_aead_cipher_init(3)
π gnutls_aead_cipher_init(3) π
okay bestie, welcome to the gnutls manual β yes, the gnutls, the manual page name is literally gnutls β and today we're decoding gnutls_aead_cipher_init, which is an API function. it's giving β¨cryptographyβ¨, it's giving main character energy, and it's honestly not even that deep. let's go π¦
πΈ NAME πΈ
gnutls_aead_cipher_init β API function
no cap, that's the whole name. short. iconic. periodt π
β¨ SYNOPSIS β¨
#include <gnutls/crypto.h>
int gnutls_aead_cipher_init(gnutls_aead_cipher_hd_t * handle,
gnutls_cipher_algorithm_t cipher, const gnutls_datum_t * key);
like yes, you do need #include <gnutls/crypto.h>, we don't make the rules (we do, actually, but still) π
π«Ά ARGUMENTS π«Ά
gnutls_aead_cipher_hd_t * handleβ bestie this is agnutls_aead_cipher_hd_ttype. that's it. that's the whole description. it's the handle, it's your little crypto container, you're gonna hand it over and it comes back all initialized πgnutls_cipher_algorithm_t cipherβ the authenticated-encryption algorithm you wanna use. pick your fave, we don't judge πconst gnutls_datum_t * keyβ the key to be used for encryption π keep it secret, keep it safe, don't put it in the group chat
π« DESCRIPTION π«
so this function will initialize a context that you can use for encryption/decryption of data. that's the vibe. encryption AND decryption, one context, dual threat, we love a multitasker πβ¨
and here's the cute part: this will effectively use the current crypto backend in use by gnutls, or the cryptographic accelerator in use. so whichever one is doing the heavy lifting in your setup β that's who's showing up. you don't have to pick. it just knows. iykyk π₯
π RETURNS π
Zero on success, or a negative error code on error. so like, if you get something < 0, that's your sign bestie, check it π¨
π SINCE π
3.4.0 β she's been here since 3.4.0, an OG, a legend, a queen π
π REPORTING BUGS π
found a bug? not me manifesting that, but if you did:
- Report bugs to <bugs@gnutls.org>. π§
- Home page: https://www.gnutls.org
we're nice, we promise, just tell us what happened π
π 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.
translation: use it, share it, 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/
like if the local docs are ghosting you, the website never will π¦
and that's the whole page, bestie!! no notes, ate, left zero crumbs. this little love letter came to you from gnutls version 3.8.13, and yeah the header says gnutls_aead_cipher_init(3) and the footer says gnutls_aead_cipher_init(3) too, because symmetry is hot π
stay encrypted, stay hydrated, 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