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:

they actually want to know. fr fr. πŸ’–


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