gnutls_cipher_get_key_size(3)
π gnutls_cipher_get_key_size β the manual, but make it cute π
okay so bestie, this page lives in the gnutls manual (that's the library, section 3, the C function corner of the world), and it's about one lil' function that tells you how big a cipher's key is. that's it. that's the whole vibe. let's go π«Ά
β¨ NAME β¨
gnutls_cipher_get_key_size β API function, aka the "how many bytes is this key, bestie" function π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
size_t gnutls_cipher_get_key_size(gnutls_cipher_algorithm_t algorithm);
look at her. one include, one function, zero drama. iconic β¨
π ARGUMENTS π
gnutls_cipher_algorithm_t algorithmβ this is an encryption algorithm, bestie. like, the cipher itself. that's what you hand over. π§
π DESCRIPTION π
so here's the tea: this function returns the key size of the algorithm you passed in. that's it. no side quests, no plot twists. you give it a cipher, it tells you how big that cipher's key is. periodt. π
β RETURNS β
it hands you back the length, in bytes, of the given cipher's key size. π
and if the cipher you gave it is invalid? you get 0. not an error code, not a scream, just a plain lil' 0. so like, vibe check your algorithm before you get your feelings hurt. π
π¦ REPORTING BUGS π¦
found something cursed? don't suffer in silence, tell the devs:
- 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. (translation: go off, share it, just keep the receipts attached. π )
π 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, go read the whole thing, it's giving encyclopedia but make it TLS. πβ¨
and that's the page, bestie!! this was gnutls version 3.8.13, straight from the gnutls manual, and yes she ate. no cap. πβ¨ππ¦πΈπ
π«Ά
π¦ 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