gnutls_hash(3)
π gnutls_hash(3) β the NAME bit π
okay so bestie, this page lives in the gnutls manual, and it's all about one little function: gnutls_hash β an API function. that's it, that's the name. short, sweet, iconic. β¨
πΈ SYNOPSIS πΈ
like, here's how you even get to it:
#include <gnutls/crypto.h>
int gnutls_hash(gnutls_hash_hd_t handle, const void * ptext, size_t
ptext_len);
she's a three-argument girlie and she's serving. π
π¦ ARGUMENTS π¦
gnutls_hash_hd_t handleβ this is agnutls_hash_hd_ttype, literally what it says on the tin. your handle, your context, your main character. πconst void * ptextβ the data to hash. the actual snack being fed in. πsize_t ptext_lenβ the length of data to hash. how much of the snack. π
β¨ DESCRIPTION β¨
so what does she do? this function will hash the given data using the algorithm specified by the context. that's the whole vibe β you bring the data, the context already knows which algorithm it's on, and boom. hashed. no cap. π₯
π RETURNS π
zero or a negative error code on error. so if you get 0, slay, we ate. if you get something negative, that's your signal that it went sideways, bestie. π
β SINCE β
2.10.0 β she's been around a minute. veteran energy. π«Ά
π REPORTING BUGS π
found a bug? not to be dramatic but please tell someone:
- 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.
like yes, take it, remix it, just keep the receipts. periodt. π
π 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!! this was gnutls_hash(3), from the gnutls manual, version 3.8.13. iykyk π π§πΈ
π¦ 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