gnutls_hmac_get_len(3)
π gnutls_hmac_get_len(3) π
okay so bestie, welcome to the gnutls manual β yes, that's the manual name, it's giving cryptography royalty, we love her. this page is about one tiny lil function that answers one very important question: how many bytes is this HMAC gonna hand me back? β¨
πΈ NAME πΈ
gnutls_hmac_get_len β literally just an API function, no cap π«Ά
β¨ SYNOPSIS β¨
#include <gnutls/crypto.h>
unsigned gnutls_hmac_get_len(gnutls_mac_algorithm_t algorithm);
π ARGUMENTS π
gnutls_mac_algorithm_t algorithmβ the hmac algorithm you wanna use, babe. that's the one we're measuring π
π¦ DESCRIPTION π¦
so the way that this works is: you hand her an hmac algorithm, and she tells you the length of the output data of that given algorithm. that's it. that's the whole job. she's not doing the hmac, she's just telling you how big the result is gonna be so you can, like, allocate the right amount of space and not embarrass yourself. iconic behavior honestly π
β RETURNS β
the length β or zero on error π (yes, zero is the "something went wrong" vibe check fail)
π SINCE π
2.10.0 β she's been around since 2.10.0, a true elder stateswoman of the crypto game, respect π
π REPORTING BUGS π
found a bug? don't be shy, 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.
fr fr, that's the license, keep the notice and you're golden π«Ά
π₯ 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, mwah π
this was gnutls version 3.8.13, page gnutls_hmac_get_len(3), signing off β go check your HMAC lengths, stay hydrated, and remember: zero means error, not zero-length. bye bestie πΈπ¦β¨
π¦ 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