diff options
author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2018-02-04 12:20:37 +0900 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-02-26 13:35:54 +0000 |
commit | b38ede8043439d99a3c6c174f17b91875cce66ac (patch) | |
tree | e4766b5fe52ffc7dbd61513a0c220027f479cee3 /include | |
parent | e454f3add638fda5c2aa32cd368c8929c0b1eb09 (diff) |
Export keying material using early exporter master secret
This commit adds SSL_export_keying_material_early() which exports
keying material using early exporter master secret.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5252)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/tls1.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h index ed0380f84a..f16785663b 100644 --- a/include/openssl/tls1.h +++ b/include/openssl/tls1.h @@ -232,6 +232,19 @@ __owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen, const unsigned char *context, size_t contextlen, int use_context); +/* + * SSL_export_keying_material_early exports a value derived from the + * early exporter master secret, as specified in + * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes + * |olen| bytes to |out| given a label and optional context. It + * returns 1 on success and 0 otherwise. + */ +__owur 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); + int SSL_get_peer_signature_type_nid(const SSL *s, int *pnid); int SSL_get_sigalgs(SSL *s, int idx, |