gnutls_hash_squeeze(3)
π 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β agnutls_hash_hd_t, your main character handle π§void * outputβ the destination where we store the output; it must be equal to or larger thanlength, no capsize_t lengthβ length ofoutput
π¦ 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 π
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
- 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