gnutls_hmac_fast(3)
β¨ gnutls_hmac_fast(3) β¨
okay bestie so this is a page from the gnutls manual, and it's about one lil function that does a whole lot in one go π it's giving "one call and done", no cap.
π NAME π
gnutls_hmac_fast β it's an API function, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
#include <gnutls/crypto.h>
int gnutls_hmac_fast(gnutls_mac_algorithm_t algorithm, const void * key,
size_t keylen, const void * ptext, size_t ptext_len, void * digest);
π ARGUMENTS π
gnutls_mac_algorithm_t algorithmβ the hash algorithm you wanna use, pick your fighter βconst void * keyβ the key you're using πsize_t keylenβ how long that key is, length check, periodtconst void * ptextβ the data you wanna hash, aka the stuff going in π₯size_t ptext_lenβ how much data there is to hashvoid * digestβ this is where the output value of the hash lands, the result goes here bestie β¨
π DESCRIPTION π
so basically? this convenience function hashes your given data and hands you back the output in a single call. one and done, no extra steps, iconic behavior honestly π
but β and this is the important part β this call will NOT work for MAC algorithms that require a nonce, like UMAC or GMAC. nope. not happening. if you try it with those it's just not gonna be your moment π
π RETURNS π
Zero, or a negative error code if something went wrong. That's it, that's the deal π«Ά
π§ SINCE π§
2.10.0 β oldie but a goodie, it's been here since forever β
π REPORTING BUGS π
Found a bug? tell the people, don't suffer in silence:
- 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.
π₯ 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 babes π this was gnutls version 3.8.13, and yes we are still out here reading gnutls_hmac_fast(3) in the year of our lord. mwah, go hash something πβ¨
π¦ 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