gnutls_x509_privkey_verify_seed(3)
π gnutls_x509_privkey_verify_seed β the manual page, but make it make sense
okay bestie, so this is a page from the gnutls manual, and it's all about one lil API function called gnutls_x509_privkey_verify_seed. yes the name is a mouthful, we're gonna get through it together π«Ά
β¨ NAME β¨
gnutls_x509_privkey_verify_seed β it's an API function, bestie, that's literally the whole job description π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_privkey_verify_seed(gnutls_x509_privkey_t key,
gnutls_digest_algorithm_t digest, const void * seed, size_t seed_size);
look at her, she's giving very "I take four arguments and I know exactly what I'm doing" π
π ARGUMENTS π
gnutls_x509_privkey_t keyβ this should contain agnutls_x509_privkey_ttype. that's it, that's the requirement, she's not asking for much β¨gnutls_digest_algorithm_t digestβ it contains the digest algorithm used for key generation (if applicable). note the "if applicable", she's keeping it flexible πconst void * seedβ the seed of the key to be checked with. yes, seed. we're checking seeds. this is a seed-verification function, the name wasn't lying π±size_t seed_sizeβ holds the size ofseed. she needs to know how big the thing is, obviously π
π DESCRIPTION π
so what does she actually do?? this function will verify that the given private key was generated from the provided seed. that's the whole vibe check π₯
and here's the cute part: if seed is NULL, then the seed stored in the key's structure will be used for verification instead. so you can either hand her a seed, or just let her use the one she already has. lowkey convenient π¦
π RETURNS π
if the verification fails, you get GNUTLS_E_PRIVKEY_VERIFICATION_ERROR back. not great, not terrible, it's just telling you the truth π
and on success? you get zero or a positive code. slay, we love a success state π
β SINCE β
3.5.0 β she's been around, she's not new here π
π REPORTING BUGS π
found a bug?? do NOT suffer in silence bestie, report it:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they want to hear from you fr fr π¬
π 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. that's the deal, and it's a good deal π«Ά
π 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/
go read the full thing, she's thorough and she deserves your attention π
and that's the whole page, bestie!! every flag, every argument, every error code, preserved and cherished π
this was page from gnutls version 3.8.13 β go off, stay secure, and always verify your seeds β¨ππ
π¦ 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