GNUTLS_CRYPTO_REGISTER_AEAD_CIPHER(3)
π NAME π
gnutls_crypto_register_aead_cipher β it's an API function, bestie. That's the whole vibe. It registers an AEAD cipher with GnuTLS. β¨
This page lives in the gnutls manual (section 3, the library-calls girlies), so if you were looking for the man page, you found her. π
πΈ SYNOPSIS πΈ
#include <gnutls/crypto.h>
int gnutls_crypto_register_aead_cipher(gnutls_cipher_algorithm_t
algorithm, int priority, gnutls_cipher_init_func init,
gnutls_cipher_setkey_func setkey, gnutls_cipher_aead_encrypt_func
aead_encrypt, gnutls_cipher_aead_decrypt_func aead_decrypt,
gnutls_cipher_deinit_func deinit);
Seven arguments. Seven. She's high maintenance and we love that for her. π
π¦ ARGUMENTS π¦
gnutls_cipher_algorithm_t algorithmβ this is the GnuTLS AEAD cipher identifier, aka which cipher you're claiming. πint priorityβ the priority of the algorithm. Number go brrr, lowest one wins (more on that below, stay with me). πgnutls_cipher_init_func initβ a function which initializes the cipher. Wake her up. βgnutls_cipher_setkey_func setkeyβ a function which sets the key of the cipher. Give her the keys to the kingdom. πgnutls_cipher_aead_encrypt_func aead_encryptβ perform the AEAD encryption. Lock it in. π₯gnutls_cipher_aead_decrypt_func aead_decryptβ perform the AEAD decryption. Unlock it. πgnutls_cipher_deinit_func deinitβ a function which deinitializes the cipher. Say bye, she's going to sleep. π΄
β¨ DESCRIPTION β¨
Okay so. This function will register a cipher algorithm to be used by gnutls. Like, you're sliding your own custom cipher into the rotation. π
Any algorithm registered will override the included algorithms, and by convention kernel implemented algorithms have priority of 90 and CPU-assisted of 80. The algorithm with the lowest priority will be used by gnutls. Yes, lowest. Not highest. It's giving backwards but it's canon. π«Ά
In the case the registered init or setkey functions return GNUTLS_E_NEED_FALLBACK, GnuTLS will attempt to use the next in priority registered cipher. So it's not a fail, it's a "next bestie up" situation. π
The functions registered will be used with the new AEAD API introduced in GnuTLS 3.4.0. Internally GnuTLS uses the new AEAD API. So like, this is the main character path, not the legacy side quest. π
π DEPRECATED π
since 3.7.0 it is no longer possible to override cipher implementation.
Not me delivering bad news but. Yeah. She's deprecated, bestie. Since 3.7.0 you literally cannot override the cipher implementation anymore. Pour one out. π
π RETURNS π
GNUTLS_E_SUCCESS on success, otherwise a negative error code. Classic. Negative means it's not giving what it's supposed to give. π
π§ SINCE π§
3.4.0 β she's been around. Vintage. Iconic. β
π REPORTING BUGS π
Found a bug? Tell the gnutls girlies:
- 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. Slay, legally speaking. π
π 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/
And that's the whole page, bestie β no cap, every flag, every argument, every caveat, untouched. π
This was the gnutls_crypto_register_aead_cipher(3) page from the gnutls manual, version 3.8.13. 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