gnutls_hmac_get_key_size(3)
π gnutls_hmac_get_key_size(3) π
okay so bestie, this one lives in the gnutls manual, and it's literally the tiniest little glow-up of a function. it tells you how big your HMAC key should be. that's it. that's the whole vibe. but it's important, okay? β¨
β¨ NAME β¨
gnutls_hmac_get_key_size β API function π
(yes that's literally the official description, she's giving "just a function, nothing more")
πΈ SYNOPSIS πΈ
#include <gnutls/crypto.h>
unsigned gnutls_hmac_get_key_size(gnutls_mac_algorithm_t algorithm);
like, one include, one call. we love a low-maintenance icon π«Ά
π ARGUMENTS π
gnutls_mac_algorithm_t algorithmβ the mac algorithm to use π just hand her the algorithm you're curious about and she'll do the rest, no cap
π¦ DESCRIPTION π¦
so here's the tea: this function returns the size of the key that should be used with the algorithm you passed in. β¨
and okay, here's the nuance that actually matters β for the algorithms that are flexible and could accept arbitrary key sizes, the size she hands back isn't some random number, it's the MAC key size used in the TLS protocol. so like, it's the canonical, protocol-approved number. the one that actually counts. periodt. π
π RETURNS π
the key size π β¦ or zero if something went wrong π (zero is the "not me, something's off" signal, don't ignore her)
β SINCE β
3.6.12 β she's been here since 3.6.12, an elder statesman at this point, respect her π«‘
π REPORTING BUGS π
found a bug? don't just vague-post about it, bestie, actually tell the maintainers:
- 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: she's free, just keep the receipts π§Ύβ¨)
π 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/
iykyk π
ngl, that's the whole page. no hidden lore, no extra flags, no surprise behavior. she does one thing and she does it well. obsessed, honestly. π₯°
gnutls version 3.8.13, and yes this was documented on gnutls_hmac_get_key_size(3) β mwah, 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