gnutls_cipher_get_iv_size(3)
π gnutls_cipher_get_iv_size π
okay bestie, welcome to the gnutls manual β yes, that gnutls, the TLS library that's literally carrying the entire internet on its back π«Ά. today's episode: how to ask a cipher how big its initialization vector is. it's giving β¨crypto girlieβ¨ energy and we're obsessed.
πΈ NAME πΈ
gnutls_cipher_get_iv_size β an API function, and honestly? a little legend.
β¨ SYNOPSIS β¨
#include <gnutls/crypto.h>
unsigned gnutls_cipher_get_iv_size(gnutls_cipher_algorithm_t algorithm);
look at that signature. clean. iconic. no notes. π
π ARGUMENTS π
gnutls_cipher_algorithm_t algorithmβ bestie, this is an encryption algorithm. that's the whole vibe. you hand it a cipher, it tells you stuff about it.
π¦ DESCRIPTION π¦
so like, this function returns the size of the initialization vector (IV) for the algorithm you gave it. the IV!! the little randomizer that makes sure your encryption isn't the same boring output every single time. main character of every cipher tbh.
and here's the tea β: for algorithms that have a variable size IV β like AES-CCM, for example β the size you get back is the one that TLS uses. not just some random number, not the whole buffet of options, the TLS one specifically. no cap.
π RETURNS π
the block size for the encryption algorithm. that's what you're getting back. periodt.
β SINCE β
3.2.0 β she's been around since 3.2.0, a true veteran. respect the elders. π
π REPORTING BUGS π
found a bug? don't be shy, tell the devs:
- Report bugs to
<bugs@gnutls.org>. - Home page:
https://www.gnutls.org
they actually want to know. fr fr. π
π 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, remix it, just keep the receipts. slay. β¨)
π 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 it. it's right there. iykyk. π
π«Ά and that's the whole page bestie β every flag, every value, every word, untouched, just wearing a cuter outfit now. π
gnutls version 3.8.13, manual page gnutls_cipher_get_iv_size(3) β mwah, bye! πβ¨π¦
π¦ 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