gnutls_x509_privkey_get_seed(3)
๐ gnutls_x509_privkey_get_seed(3) ๐
okay bestie, sit down, we're reading a gnutls manpage together and honestly? it's giving โจniche cryptographic loreโจ. this one lives in the gnutls manual, and it's all about pulling the seed back out of a private key. yes, the literal origin story of your key. main character energy fr fr ๐ฑ
๐ธ NAME ๐ธ
gnutls_x509_privkey_get_seed โ it's an API function, bestie, that's the whole vibe ๐
โจ SYNOPSIS โจ
#include <gnutls/x509.h>
int gnutls_x509_privkey_get_seed(gnutls_x509_privkey_t key,
gnutls_digest_algorithm_t * digest, void * seed, size_t * seed_size);
๐ ARGUMENTS ๐
gnutls_x509_privkey_t keyโ this one should contain agnutls_x509_privkey_ttype. it's the key you're interrogating, the one you're asking "so... where did you come from?" ๐ต๏ธโโ๏ธgnutls_digest_algorithm_t * digestโ if it's non-NULL, it will contain the digest algorithm that was used for key generation (if applicable). so like, if there's a digest to report, it goes here ๐งพvoid * seedโ whereseedwill be copied to. that's the destination, the lil home for your seed ๐size_t * seed_sizeโ originally holds the size ofseed, and will be updated with the actual size. so it goes in as "here's how much room i have" and comes out as "here's how much i actually used". glow-up, honestly ๐ซ
๐ DESCRIPTION ๐
this function will return the seed that was used to generate the given private key. that's it, that's the whole job โ reverse-engineering the ~origin story~ of your key ๐ฎ
but not me warning you: that function will succeed only if the key was generated as a provable key. no provable key? no seed. it's giving exclusive club, and not everyone has a membership card ๐๏ธ
๐ฅ RETURNS ๐ฅ
on success, GNUTLS_E_SUCCESS (0) is returned โ slay, zero, we love a zero ๐
otherwise, a negative error value. so if you see a negative number, that's the universe saying "no seed for you today" ๐ญ
๐ฆ SINCE ๐ฆ
3.5.0 โ this has been serving looks since version 3.5.0, periodt ๐
๐ REPORTING BUGS ๐
found a bug? don't suffer in silence, tell the people:
report bugs 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. (yes bestie, that means you can share it, just keep the receipts ๐งพ)
๐ 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!! no cap, every flag, every type, every word, all accounted for ๐ซถ
this was gnutls version 3.8.13, and the page is gnutls_x509_privkey_get_seed(3) โ stay hydrated, read your manpages, and may your keys always be provable ๐โจ๐ธ๐ฆ๐
๐ฆ 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