gnutls_hash_fast(3)
π gnutls_hash_fast(3) π
okay bestie, welcome to the gnutls manual β yes, that gnutls, the one that lives in your terminal and does cryptography like it's nothing. this page is all about one lil function that's about to become your new fave. no cap. π
β¨ NAME β¨
gnutls_hash_fast β literally just an API function, and it's giving "I do one thing and I do it well" π
πΈ SYNOPSIS πΈ
#include <gnutls/crypto.h>
int gnutls_hash_fast(gnutls_digest_algorithm_t algorithm, const void *
ptext, size_t ptext_len, void * digest);
she's simple, she's clean, she takes four args and she is not complicated. periodt.
π¦ ARGUMENTS π¦
gnutls_digest_algorithm_t algorithmβ the hash algorithm you wanna use, bestie. pick your fighter. β¨const void * ptextβ the data you're hashing. this is the main character of the operation ngl. πsize_t ptext_lenβ how long that data is. gotta tell her the length, she's not psychic. πvoid * digestβ this is where the output value of the hash lands. it's the little container she fills up for you. π«Ά
π DESCRIPTION π
so like. this is a convenience function β that's the whole vibe. it will hash the given data and hand you the output in a single call. one and done. no multi-step drama, no init/update/deinit situation, just β¨one callβ¨ and you're out. iconic behavior fr fr.
β RETURNS β
zero if everything slayed, or a negative error code if it did not. check it, bestie, always check it. π
π SINCE π
2.10.0 β she's been around a minute, lowkey a legend at this point. πΈ
π REPORTING BUGS π
found a bug? not on her watch β report it to <bugs@gnutls.org>. π
home page is right here: 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. so yes, you may share the love, 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/
okay but fr fr β this is a convenience function. if you need streaming or incremental hashing, this ain't it, bestie. this one's the one-shot queen. π
and that's the page, bestie!! π this was gnutls_hash_fast(3) from the gnutls manual, version 3.8.13. go forth and hash responsibly. mwah. πβ¨
π¦ 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