Debian Codegraph @

doc/functions/gnutls_privkey_get_seed

raw
1
2
3
4
5 @deftypefun {int} {gnutls_privkey_get_seed} (gnutls_privkey_t @var{key}, gnutls_digest_algorithm_t * @var{digest}, void * @var{seed}, size_t * @var{seed_size})
6 @var{key}: should contain a @code{gnutls_privkey_t} type
7
8 @var{digest}: if non-NULL it will contain the digest algorithm used for key generation (if applicable)
9
10 @var{seed}: where seed will be copied to
11
12 @var{seed_size}: originally holds the size of @code{seed} , will be updated with actual size
13
14 This function will return the seed that was used to generate the
15 given private key. That function will succeed only if the key was generated
16 as a provable key.
17
18 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
19 negative error value.
20
21 @strong{Since:} 3.5.0
22 @end deftypefun