|
Packit Service |
4684c1 |
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
|
|
Packit Service |
4684c1 |
.TH "gnutls_prf_early" 3 "3.6.14" "gnutls" "gnutls"
|
|
Packit Service |
4684c1 |
.SH NAME
|
|
Packit Service |
4684c1 |
gnutls_prf_early \- API function
|
|
Packit Service |
4684c1 |
.SH SYNOPSIS
|
|
Packit Service |
4684c1 |
.B #include <gnutls/gnutls.h>
|
|
Packit Service |
4684c1 |
.sp
|
|
Packit Service |
4684c1 |
.BI "int gnutls_prf_early(gnutls_session_t " session ", size_t " label_size ", const char * " label ", size_t " context_size ", const char * " context ", size_t " outsize ", char * " out ");"
|
|
Packit Service |
4684c1 |
.SH ARGUMENTS
|
|
Packit Service |
4684c1 |
.IP "gnutls_session_t session" 12
|
|
Packit Service |
4684c1 |
is a \fBgnutls_session_t\fP type.
|
|
Packit Service |
4684c1 |
.IP "size_t label_size" 12
|
|
Packit Service |
4684c1 |
length of the \fIlabel\fP variable.
|
|
Packit Service |
4684c1 |
.IP "const char * label" 12
|
|
Packit Service |
4684c1 |
label used in PRF computation, typically a short string.
|
|
Packit Service |
4684c1 |
.IP "size_t context_size" 12
|
|
Packit Service |
4684c1 |
length of the \fIextra\fP variable.
|
|
Packit Service |
4684c1 |
.IP "const char * context" 12
|
|
Packit Service |
4684c1 |
optional extra data to seed the PRF with.
|
|
Packit Service |
4684c1 |
.IP "size_t outsize" 12
|
|
Packit Service |
4684c1 |
size of pre\-allocated output buffer to hold the output.
|
|
Packit Service |
4684c1 |
.IP "char * out" 12
|
|
Packit Service |
4684c1 |
pre\-allocated buffer to hold the generated data.
|
|
Packit Service |
4684c1 |
.SH "DESCRIPTION"
|
|
Packit Service |
4684c1 |
This function is similar to \fBgnutls_prf_rfc5705()\fP, but only works in
|
|
Packit Service |
4684c1 |
TLS 1.3 or later to export early keying material.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Note that the keying material is only available after the
|
|
Packit Service |
4684c1 |
ClientHello message is processed and before the application traffic
|
|
Packit Service |
4684c1 |
keys are established. Therefore this function shall be called in a
|
|
Packit Service |
4684c1 |
handshake hook function for \fBGNUTLS_HANDSHAKE_CLIENT_HELLO\fP.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The \fIlabel\fP variable usually contains a string denoting the purpose
|
|
Packit Service |
4684c1 |
for the generated data.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The \fIcontext\fP variable can be used to add more data to the seed, after
|
|
Packit Service |
4684c1 |
the random variables. It can be used to make sure the
|
|
Packit Service |
4684c1 |
generated output is strongly connected to some additional data
|
|
Packit Service |
4684c1 |
(e.g., a string used in user authentication).
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The output is placed in \fIout\fP , which must be pre\-allocated.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Note that, to provide the RFC5705 context, the \fIcontext\fP variable
|
|
Packit Service |
4684c1 |
must be non\-null.
|
|
Packit Service |
4684c1 |
.SH "RETURNS"
|
|
Packit Service |
4684c1 |
\fBGNUTLS_E_SUCCESS\fP on success, or an error code.
|
|
Packit Service |
4684c1 |
.SH "SINCE"
|
|
Packit Service |
4684c1 |
3.6.8
|
|
Packit Service |
4684c1 |
.SH "REPORTING BUGS"
|
|
Packit Service |
4684c1 |
Report bugs to <bugs@gnutls.org>.
|
|
Packit Service |
4684c1 |
.br
|
|
Packit Service |
4684c1 |
Home page: https://www.gnutls.org
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
.SH COPYRIGHT
|
|
Packit Service |
4684c1 |
Copyright \(co 2001- Free Software Foundation, Inc., and others.
|
|
Packit Service |
4684c1 |
.br
|
|
Packit Service |
4684c1 |
Copying and distribution of this file, with or without modification,
|
|
Packit Service |
4684c1 |
are permitted in any medium without royalty provided the copyright
|
|
Packit Service |
4684c1 |
notice and this notice are preserved.
|
|
Packit Service |
4684c1 |
.SH "SEE ALSO"
|
|
Packit Service |
4684c1 |
The full documentation for
|
|
Packit Service |
4684c1 |
.B gnutls
|
|
Packit Service |
4684c1 |
is maintained as a Texinfo manual.
|
|
Packit Service |
4684c1 |
If the /usr/share/doc/gnutls/
|
|
Packit Service |
4684c1 |
directory does not contain the HTML form visit
|
|
Packit Service |
4684c1 |
.B
|
|
Packit Service |
4684c1 |
.IP https://www.gnutls.org/manual/
|
|
Packit Service |
4684c1 |
.PP
|