TLS key derivation example. More...
#include <mcuxClCss.h>
#include <mcuxClMemory.h>
#include <mcuxCsslFlowProtection.h>
#include <stdbool.h>
Functions | |
bool | tls_master_key_session_keys (void) |
Performs key derivation for TLS protocol. More... | |
Variables | |
static mcuxClCss_EccByte_t | ecc_public_key_client [MCUXCLCSS_ECC_PUBLICKEY_SIZE] |
Destination buffer to receive the public key of the mcuxClCss_EccKeyGen_Async operation. More... | |
static mcuxClCss_EccByte_t | ecc_public_key_server [MCUXCLCSS_ECC_PUBLICKEY_SIZE] |
static uint8_t | derivation_data [MCUXCLCSS_TLS_DERIVATIONDATA_SIZE] |
static uint8_t | client_random [MCUXCLCSS_TLS_RANDOM_SIZE] |
static uint8_t | server_random [MCUXCLCSS_TLS_RANDOM_SIZE] |
static uint8_t | master_key_string [] |
static uint8_t | key_expansion_string [] |
TLS key derivation example.
bool tls_master_key_session_keys | ( | void | ) |
Performs key derivation for TLS protocol.
true | The example code completed successfully |
false | The example code failed |
< [in] The TLS derivation data
< [in] Desired key properties. Only mcuxClCss_KeyProp_t::upprot_priv and mcuxClCss_KeyProp_t::upprot_sec are used, the rest are ignored.
< [in] The index of the TLS pre-master key, which is overwritten with the master key
< [in] The TLS derivation data
< [in] Desired key properties. Only mcuxClCss_KeyProp_t::upprot_priv and mcuxClCss_KeyProp_t::upprot_sec are used, the rest are ignored.
< [in] The index of the TLS master key, which is overwritten with one of the session keys.
|
static |
Destination buffer to receive the public key of the mcuxClCss_EccKeyGen_Async operation.