gnutls_privkey_verify_seed(3)
π gnutls_privkey_verify_seed π
okay bestie, sit down, hydrate, and let me tell you about a little function from the gnutls manual (that's the manual name btw, we're in the gnutls section of the docs, page 3, the library-call girlies π).
β¨ NAME β¨
gnutls_privkey_verify_seed β it's an API function, and its whole personality is "prove it" π
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_privkey_verify_seed(gnutls_privkey_t key,
gnutls_digest_algorithm_t digest, const void * seed, size_t seed_size);
literally just one include and one call, no cap π«Ά
π¦ ARGUMENTS π¦
gnutls_privkey_t keyβ should contain agnutls_privkey_ttype. it's the key we're interrogating, main character energy πgnutls_digest_algorithm_t digestβ it contains the digest algorithm used for key generation (if applicable). note the "(if applicable)" bestie, we don't gatekeep πconst void * seedβ the seed of the key to be checked with π±size_t seed_sizeβ holds the size ofseed. gotta know how big the seed is, it's giving measurements π
π₯ DESCRIPTION π₯
This function will verify that the given private key was generated from the provided seed. that's it, that's the vibe check: was this key actually born from this seed, or is it lying to you π
β RETURNS β
In case of a verification failure GNUTLS_E_PRIVKEY_VERIFICATION_ERROR is returned, and zero or positive code on success. so like: zero-or-positive = we ate π
, that specific error = not me getting caught lacking π
π SINCE π
3.5.0 β vintage, but in a cute way π
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
(they want the bugs, fr fr, don't be shy π)
π 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. (slay, royalty-free, iconic πΈ)
π§ 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/
lowkey important: the failure code is exactly GNUTLS_E_PRIVKEY_VERIFICATION_ERROR, do not freestyle it, iykyk π
and that's the whole page bestie β this was gnutls_privkey_verify_seed(3) from the gnutls manual, version 3.8.13, brought to you by the gnutls girlies. go verify some seeds, periodt πβ¨
π¦ 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