gnutls_hmac(3)
π gnutls_hmac(3) π
okay bestie, sit DOWN, because this one is from the gnutls manual and it's literally the little function that does the HMAC thing. you're gonna eat this up.
β¨ NAME β¨
gnutls_hmac β an API function, periodt. it's giving "one job, done well" energy π
π SYNOPSIS π
#include <gnutls/crypto.h>
int gnutls_hmac(gnutls_hmac_hd_t handle, const void * ptext, size_t
ptext_len);
look at her. three little arguments. so unbothered. so iconic. π¦
πΈ ARGUMENTS πΈ
gnutls_hmac_hd_t handleβ bestie this is agnutls_hmac_hd_ttype. that's the whole description. it's a handle, it holds your whole situation together π«Άconst void * ptextβ the data to hash. the actual tea. the stuff you want mushed into a digest βsize_t ptext_lenβ the length of data to hash. yes ma'am, we need to know how much data, we are not out here guessing byte counts π₯
π DESCRIPTION π
so what does she DO? she will hash the given data using the algorithm specified by the context. that's it. that's the whole vibe. the context already knows which algorithm you picked (because you picked it when you set the handle up, duh), and this function just takes your data and runs it through. no cap, that's literally all β¨
β RETURNS β
Zero or a negative error code on error. so: 0 means slay, anything negative means something went sideways π always check her, fr fr.
π SINCE π
2.10.0 β she's been around since 2.10.0, an absolute veteran, a legend in these streets π
π REPORTING BUGS π
found a bug? not me manifesting that, but if it happens, 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. (yes girl, free as in freedom, no royalty, just vibes πΈ)
π§ 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 π
okay that's the whole page bestie, mwah, go forth and HMAC responsibly. π
sign-off time: this came from the gnutls manual, version 3.8.13, page gnutls_hmac(3) β catch you on the next one, love u, bye! πβ¨π
π¦ 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