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 Β© 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