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 a gnutls_hash_hd_t type, 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:


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