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 a gnutls_aead_cipher_hd_t type. 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 Β© 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