gnutls_hash_init(3)
β¨ gnutls_hash_init β¨
okay bestie, welcome to the gnutls manual section 3 page for gnutls_hash_init π this is literally the function you call when you wanna start cooking up a message digest, and yes it's giving main character energy πΈ
π NAME π
gnutls_hash_init β it's an API function π that's the whole vibe, that's the whole name
π¦ SYNOPSIS π¦
#include <gnutls/crypto.h>
int gnutls_hash_init(gnutls_hash_hd_t * dig, gnutls_digest_algorithm_t
algorithm);
like. that's it. that's the whole door you gotta walk through πͺβ¨
π ARGUMENTS π
gnutls_hash_hd_t * digβ bestie this is agnutls_hash_hd_ttype, it's the handle you're handing over so the function has somewhere to put your shiny new context π«Άgnutls_digest_algorithm_t algorithmβ the hash algorithm you wanna use, pick your fighter, choose wisely π
πΈ DESCRIPTION πΈ
okay so the way that this works is: gnutls_hash_init initializes a context that you can then use to produce a Message Digest of data β¨ and when I say it will effectively use the current crypto backend in use by gnutls, or the cryptographic accelerator in use β I mean it's lowkey just rolling with whatever the setup already is. no cap. π
β RETURNS β
Zero, or a negative error code on error π that's the whole returns situation. zero = slay, negative = not slay.
π SINCE π
2.10.0 β been iconic since way back π°οΈπ
π REPORTING BUGS π
found a bug? not you being the detective π report bugs 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. π
π 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/
fr fr, that's the whole page, nothing skipped, nothing extra. iykyk π
okay bye bestie, this was gnutls version 3.8.13 on gnutls_hash_init(3) β go initialize something iconic ππ¦β¨
π¦ 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