gnutls_aead_cipher_set_key(3)
π gnutls_aead_cipher_set_key(3) π
okay bestie, welcome to the gnutls manual section 3, and today's main character is gnutls_aead_cipher_set_key β¨ like yes, we're doing crypto and we're doing it cute π
πΈ NAME πΈ
gnutls_aead_cipher_set_key β it's an API function, periodt π
β¨ SYNOPSIS β¨
#include <gnutls/crypto.h>
int gnutls_aead_cipher_set_key(gnutls_aead_cipher_hd_t handle, const
gnutls_datum_t * key);
π¦ ARGUMENTS π¦
gnutls_aead_cipher_hd_t handleβ bestie this is literally agnutls_aead_cipher_hd_ttype. that's the whole vibe of it πconst gnutls_datum_t * keyβ the key you're gonna use for encryption π₯ the secret sauce, the moment, the whole point.
π«Ά DESCRIPTION π«Ά
so the way this works: this function sets a new key without re-initializing the context. that's it. that's the tea β you keep your handle, you swap out the key, no fresh start needed. lowkey elegant, highkey useful π
β RETURNS β
zero on success, or a negative error code if something went wrong π (not me checking return values, always check your return values bestie)
π§ SINCE π§
3.7.5 β she's been around, she's established, she's iconic π
π REPORTING BUGS π
found a bug? don't just scream into the void, report it 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. (yes you can 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, go visit:
https://www.gnutls.org/manual/
iykyk π
okay that's the whole page bestie, thanks for reading, mwah π«Ά this was gnutls_aead_cipher_set_key(3) from gnutls 3.8.13 β stay encrypted, stay hydrated, and may all your return codes be zero π
β¨π
π¦ 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