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 a gnutls_privkey_t type. 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 of seed. 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 Β© 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