gnutls_key_generate(3)
β¨ gnutls_key_generate(3) β¨
okay bestie, welcome to the gnutls manual π this one's a tiny lil function page but it's lowkey iconic β it's the one that makes you a random key out of thin air. no cap.
π NAME π
gnutls_key_generate β literally just the API function that does the thing, iykyk
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_key_generate(gnutls_datum_t * key, unsigned int key_size);
π¦ ARGUMENTS π¦
gnutls_datum_t * keyβ bestie, this is a pointer to agnutls_datum_t, and after this call it's gonna be holding a freshly created key β¨ like it comes out of the function already glowing, main character energy.unsigned int key_sizeβ the number of bytes of the key π«Ά so you tell it how chunky you want your key and it respects that.
π DESCRIPTION π
Generates a random key of key_size bytes. that's it. that's the whole vibe. π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned π or an error code. (not the success era, we don't do that here β if you get a nonzero, something's off.)
π SINCE π
3.0 β so this has been serving since way back, a true veteran of the gnutls world β
π REPORTING BUGS π
Found a bug? don't suffer in silence bestie π 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. (fr fr, that's the license, respect it π«‘)
π§ 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 the gnutls manual, version 3.8.13, page gnutls_key_generate(3) β thanks for reading, you ate that πβ¨π¦
π¦ 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