SSL_EXPORT_KEYING_MATERIAL - Online Linux Manual PageSection : 3ossl
Updated : 2022-03-15
Source : 3.0.2
Note : OpenSSL

NAMESSL_export_keying_material, SSL_export_keying_material_early ​− obtain keying material for application use

SYNOPSIS​ #include <openssl/ssl.h> ​ ​ int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen, ​ const char *label, size_t llen, ​ const unsigned char *context, ​ size_t contextlen, int use_context); ​ ​ int SSL_export_keying_material_early(SSL *s, unsigned char *out, size_t olen, ​ const char *label, size_t llen, ​ const unsigned char *context, ​ size_t contextlen);

DESCRIPTIONDuring the creation of a TLS or DTLS connection shared keying material is established between the two endpoints. The functions ​SSL_export_keying_material() and SSL_export_keying_material_early() enable an application to use some of this keying material for its own purposes in accordance with RFC5705 (for TLSv1.2 and below) or RFC8446 (for TLSv1.3). SSL_export_keying_material() derives keying material using the exporter_master_secret established in the handshake. SSL_export_keying_material_early() is only usable with TLSv1.3, and derives keying material using the early_exporter_master_secret (as defined in the ​TLS 1.3 RFC). For the client, the early_exporter_master_secret is only available when the client attempts to send 0−RTT data. For the server, it is only available when the server accepts 0−RTT data. An application may need to securely establish the context within which this keying material will be used. For example this may include identifiers for the application session, application algorithms or parameters, or the lifetime of the context. The context value is left to the application but must be the same on both sides of the communication. For a given SSL connection s, olen bytes of data will be written to ​out. The application specific context should be supplied in the location pointed to by context and should be contextlen bytes long. Provision of a context is optional. If the context should be omitted entirely then ​use_context should be set to 0. Otherwise it should be any other value. If ​use_context is 0 then the values of context and contextlen are ignored. Note that in TLSv1.2 and below a zero length context is treated differently from no context at all, and will result in different keying material being returned. In TLSv1.3 a zero length context is that same as no context at all and will result in the same keying material being returned. An application specific label should be provided in the location pointed to by ​label and should be llen bytes long. Typically this will be a value from the IANA Exporter Label Registry (<https://www.iana.org/assignments/tls−parameters/tls−parameters.xhtml#exporter−labels>). Alternatively labels beginning with EXPERIMENTAL are permitted by the standard to be used without registration. TLSv1.3 imposes a maximum label length of 249 bytes. Note that this function is only defined for TLSv1.0 and above, and DTLSv1.0 and above. Attempting to use it in SSLv3 will result in an error.

RETURN VALUESSSL_export_keying_material() returns 0 or −1 on failure or 1 on success. SSL_export_keying_material_early() returns 0 on failure or 1 on success.

SEE ALSOssl(7)

HISTORYThe SSL_export_keying_material_early() function was added in OpenSSL 1.1.1.

COPYRIGHTCopyright 2017−2018 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the License). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
0
Johanes Gumabo
Data Size   :   10,387 byte
man-S___SL_export_keying_material.3osslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 198,157
Visitor ID   :     :  
Visitor IP   :   52.15.71.146   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|S___SL_export_keying_material.3ossl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|S___SL_export_keying_material.3ossl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|S___SL_export_keying_material.3ossl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|S___SL_export_keying_material.3ossl|43|'br══─}─══ |'br══─}─══ )