Blame doc/manpages/gnutls_srp_set_server_fake_salt_seed.3

Packit aea12f
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit Service 991b93
.TH "gnutls_srp_set_server_fake_salt_seed" 3 "3.6.14" "gnutls" "gnutls"
Packit aea12f
.SH NAME
Packit aea12f
gnutls_srp_set_server_fake_salt_seed \- API function
Packit aea12f
.SH SYNOPSIS
Packit aea12f
.B #include <gnutls/gnutls.h>
Packit aea12f
.sp
Packit aea12f
.BI "void gnutls_srp_set_server_fake_salt_seed(gnutls_srp_server_credentials_t " cred ", const gnutls_datum_t * " seed ", unsigned int " salt_length ");"
Packit aea12f
.SH ARGUMENTS
Packit aea12f
.IP "gnutls_srp_server_credentials_t cred" 12
Packit aea12f
is a \fBgnutls_srp_server_credentials_t\fP type
Packit aea12f
.IP "const gnutls_datum_t * seed" 12
Packit aea12f
is the seed data, only needs to be valid until the function
Packit aea12f
returns; size of the seed must be greater than zero
Packit aea12f
.IP "unsigned int salt_length" 12
Packit aea12f
is the length of the generated fake salts
Packit aea12f
.SH "DESCRIPTION"
Packit aea12f
This function sets the seed that is used to generate salts for
Packit aea12f
invalid (non\-existent) usernames.
Packit aea12f
Packit aea12f
In order to prevent attackers from guessing valid usernames,
Packit aea12f
when a user does not exist gnutls generates a salt and a verifier
Packit aea12f
and proceeds with the protocol as usual.
Packit aea12f
The authentication will ultimately fail, but the client cannot tell
Packit aea12f
whether the username is valid (exists) or invalid.
Packit aea12f
Packit aea12f
If an attacker learns the seed, given a salt (which is part of the
Packit aea12f
handshake) which was generated when the seed was in use, it can tell
Packit aea12f
whether or not the authentication failed because of an unknown username.
Packit aea12f
This seed cannot be used to reveal application data or passwords.
Packit aea12f
Packit aea12f
 \fIsalt_length\fP should represent the salt length your application uses.
Packit aea12f
Generating fake salts longer than 20 bytes is not supported.
Packit aea12f
Packit aea12f
By default the seed is a random value, different each time a
Packit aea12f
\fBgnutls_srp_server_credentials_t\fP is allocated and fake salts are
Packit aea12f
16 bytes long.
Packit aea12f
.SH "SINCE"
Packit aea12f
3.3.0
Packit aea12f
.SH "REPORTING BUGS"
Packit aea12f
Report bugs to <bugs@gnutls.org>.
Packit aea12f
.br
Packit aea12f
Home page: https://www.gnutls.org
Packit aea12f
Packit aea12f
.SH COPYRIGHT
Packit Service 991b93
Copyright \(co 2001- Free Software Foundation, Inc., and others.
Packit aea12f
.br
Packit aea12f
Copying and distribution of this file, with or without modification,
Packit aea12f
are permitted in any medium without royalty provided the copyright
Packit aea12f
notice and this notice are preserved.
Packit aea12f
.SH "SEE ALSO"
Packit aea12f
The full documentation for
Packit aea12f
.B gnutls
Packit aea12f
is maintained as a Texinfo manual.
Packit aea12f
If the /usr/share/doc/gnutls/
Packit aea12f
directory does not contain the HTML form visit
Packit aea12f
.B
Packit aea12f
.IP https://www.gnutls.org/manual/
Packit aea12f
.PP