|
NAMEEVP_KDF-TLS13_KDF - The TLS 1.3 EVP_KDF implementationDESCRIPTIONSupport for computing the TLS 1.3 version of the HKDF KDF through the EVP_KDF API.The EVP_KDF-TLS13_KDF algorithm implements the HKDF key derivation function as used by TLS 1.3. Identity"TLS13-KDF" is the name for this implementation; it can be used with the EVP_KDF_fetch() function.Supported parametersThe supported parameters are:
NOTESThis KDF is intended for use by the TLS 1.3 implementation in libssl. It does not support all the options and capabilities that HKDF does.The OSSL_PARAM array passed to EVP_KDF_derive(3) or EVP_KDF_CTX_set_params(3) must specify all of the parameters required. This KDF does not support a piecemeal approach to providing these. A context for a TLS 1.3 KDF can be obtained by calling: EVP_KDF *kdf = EVP_KDF_fetch(NULL, "TLS13-KDF", NULL); EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); The output length of a TLS 1.3 KDF expand operation is specified via the keylen parameter to the EVP_KDF_derive(3) function. When using EVP_KDF_HKDF_MODE_EXTRACT_ONLY the keylen parameter must equal the size of the intermediate fixed-length pseudorandom key otherwise an error will occur. For that mode, the fixed output size can be looked up by calling EVP_KDF_CTX_get_kdf_size() after setting the mode and digest on the EVP_KDF_CTX. CONFORMING TORFC 8446SEE ALSOEVP_KDF(3), EVP_KDF_CTX_new(3), EVP_KDF_CTX_free(3), EVP_KDF_CTX_get_kdf_size(3), EVP_KDF_CTX_set_params(3), EVP_KDF_derive(3), "PARAMETERS" in EVP_KDF(3), EVP_KDF-HKDF(7)COPYRIGHTCopyright 2021 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>.
Visit the GSP FreeBSD Man Page Interface. |