gnutls_mac_get_nonce_size(3)

✨ gnutls_mac_get_nonce_size ✨

okay bestie, welcome to the gnutls manual pages, and today's main character is gnutls_mac_get_nonce_size β€” an API function πŸ’… this one lives in the gnutls manual, and she's here to tell you how big a MAC's nonce is. no cap, that's the whole job. let's get into it 🫢


🌸 SYNOPSIS 🌸

like, here's how you summon her:

#include <gnutls/crypto.h>

size_t gnutls_mac_get_nonce_size(gnutls_mac_algorithm_t algorithm);

she takes one arg and hands you back a size_t. cute, simple, iconic ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_mac_algorithm_t algorithm β€” bestie, this is an encryption algorithm. that's it, that's the whole parameter πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so basically: she returns the size of the nonce used by the MAC in TLS. that's the tea β˜• no side quests, no drama, just the nonce size. periodt πŸ‘‘


⭐ RETURNS ⭐

the length (in bytes, obvs) of the given MAC nonce size β€” or 0. yeah, zero is a possible answer, don't come for her πŸ™ˆ


πŸ•°οΈ SINCE πŸ•°οΈ

she's been around since 3.2.0, an elder statesman of the API fr fr πŸ‘‘


πŸ› REPORTING BUGS πŸ›

found a bug? not me being the one to tell you, but like β€” go tell the devs, they wanna know πŸ’€


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.

like, keep the copyright notice, bestie, it's literally the rules 🫢

πŸ‘€ 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/

go read the real docs if you want the full lore, iykyk πŸ“š

aaaand that's the whole page, bestie!! this was gnutls version 3.8.13 serving gnutls_mac_get_nonce_size(3) energy, and honestly? she ate πŸ’…βœ¨ mwah, go check your nonce sizes responsibly πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from