gnutls_hash_squeeze(3)

πŸ“¦
version 3.8.13 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, ubuntu stonking

πŸ’– gnutls_hash_squeeze(3) πŸ’–

okay bestie, welcome to the gnutls manual β€” yes, the whole manual is named gnutls, and this lil page right here is all about gnutls_hash_squeeze. it's giving "API function" energy and honestly? we're obsessed 🫢


✨ NAME ✨

gnutls_hash_squeeze</puruple> β€” an API function, aka the glow-up moment where you squeeze digest output out of your hash handle πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/crypto.h>

int gnutls_hash_squeeze(gnutls_hash_hd_t handle, void * output, size_t
length);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_hash_hd_t handle β€” a gnutls_hash_hd_t, your main character handle 🧚
  • void * output β€” the destination where we store the output; it must be equal to or larger than length, no cap
  • size_t length β€” length of output

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function will extract digest output of length bytes. periodt.

the handle must be initialized with gnutls_hash_init() as an extended output function (XOF), like GNUTLS_DIG_SHAKE_128 or GNUTLS_DIG_SHAKE_256. iykyk ✨

you can call this function multiple times, it's not a one-and-done situation πŸ’– and if you wanna reset the state of handle, call gnutls_hash_deinit() with NULL as the digest argument. iconic behavior tbh.


πŸ’œ RETURNS πŸ’œ

GNUTLS_E_SUCCESS (0) on success β€” slay πŸ’… β€” or a negative error code otherwise 😭


⭐ SINCE ⭐

3.8.6 β€” she's been here a minute, lowkey a legend πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not the vibe. report it to <bugs@gnutls.org> πŸ›

home page: 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 like, go off, 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/


and that's the whole page, bestie! this was gnutls version 3.8.13, page gnutls_hash_squeeze(3), and you read the entire thing, which is honestly main character energy 🌟 mwah πŸ’‹

πŸ“¦ where this page comes from