gnutls_privkey_get_seed(3)

πŸ’– gnutls_privkey_get_seed πŸ’–

okay bestie, so this is a page from the gnutls manual β€” specifically gnutls_privkey_get_seed(3) β€” and it's literally the function that spills the tea on how your private key was born. no cap.


✨ NAME ✨

gnutls_privkey_get_seed β€” API function. that's it, that's the name, she's simple and she knows it πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/abstract.h>

int gnutls_privkey_get_seed(gnutls_privkey_t key,
gnutls_digest_algorithm_t * digest, void * seed, size_t * seed_size);

🌸 ARGUMENTS 🌸

  • gnutls_privkey_t key β€” bestie, this one should contain a gnutls_privkey_t type. that's the whole vibe check.
  • gnutls_digest_algorithm_t * digest β€” if it's non-NULL, it will contain the digest algorithm used for key generation (if applicable). like, only if applicable, don't come for her otherwise πŸ™ˆ
  • void * seed β€” the place where seed will be copied to. she's moving in, make room ✨
  • size_t * seed_size β€” originally holds the size of seed, and then it will be updated with the actual size. so she goes in as one thing and comes out as another β€” it's giving glow up, fr fr.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function will return the seed that was used to generate the given private key. that's the whole point. the entire assignment.

and listen β€” that function will succeed only if the key was generated as a provable key. that's the catch. no provable key, no seed. periodt. πŸ”₯


πŸ’œ RETURNS πŸ’œ

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so like, 0 = slay, negative = not slay 😭


⭐ SINCE ⭐

3.5.0 β€” she's been here a minute, an icon, a legend πŸ‘‘


πŸ“ REPORTING BUGS πŸ“

Report bugs to <bugs@gnutls.org>.

Home page: https://www.gnutls.org

ngl if you found a bug, tell them! they want to know! that's the whole point of the address existing 🫢

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/


and that's the page bestie, we ate and left no crumbs πŸ’…βœ¨ this was gnutls 3.8.13, dated with gnutls_privkey_get_seed(3) energy β€” go read the other pages, iykyk πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from