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