49 #ifndef MCUXCLCSS_KDF_H_ 50 #define MCUXCLCSS_KDF_H_ 65 #define MCUXCLCSS_HKDF_VALUE_RTF_DERIV ((uint32_t) 1u<< 0u) 66 #define MCUXCLCSS_HKDF_VALUE_MEMORY_DERIV ((uint32_t) 0u<< 0u) 68 #define MCUXCLCSS_CKDF_RTF_DERIV 1U 69 #define MCUXCLCSS_CKDF_SYSTEM_MEMORY_DERIV 0U 71 #define MCUXCLCSS_CKDF_DERIVATIONDATA_SIZE 12u 73 #define MCUXCLCSS_CKDF_ALGO_SP800108 0x0u 75 #define MCUXCLCSS_HKDF_RFC5869_DERIVATIONDATA_SIZE 32u 76 #define MCUXCLCSS_HKDF_SP80056C_TARGETKEY_SIZE 32u 78 #define MCUXCLCSS_HKDF_ALGO_RFC5869 0x0u 79 #define MCUXCLCSS_HKDF_ALGO_SP80056C 0x1u 82 #define MCUXCLCSS_TLS_DERIVATIONDATA_SIZE ((size_t) 80u) 83 #define MCUXCLCSS_TLS_RANDOM_SIZE ((size_t) 32u) 85 #define MCUXCLCSS_TLS_INIT 0u 86 #define MCUXCLCSS_TLS_FINALIZE 1u 201 uint8_t
const * pDerivationData
228 uint8_t
const * pDerivationData,
229 size_t derivationDataLength
259 uint8_t
const * pDerivationData
286 uint8_t
const * pDerivationData,
321 uint8_t
const * pDerivationData,
#define MCUXCLCSS_API
Marks a function as a public API function of the mcuxClCss component.
Definition: mcuxClCss_Common.h:40
MCUXCLCSS_API mcuxClCss_Status_Protected_t mcuxClCss_TlsGenerateSessionKeysFromMasterKey_Async(uint8_t const *pDerivationData, mcuxClCss_KeyProp_t keyProperties, mcuxClCss_KeyIndex_t keyIdx)
Generates TLS session keys based on a master key and derivation data, according to the TLS 1....
Type for CSS key store key properties.
Definition: mcuxClCss_Types.h:196
uint8_t mcuxClCss_KeyIndex_t
Type for CSS keystore indices.
Definition: mcuxClCss_Types.h:193
uint32_t ckdf_algo
Defines which algorithm and mode shall be used.
Definition: mcuxClCss_Kdf.h:113
CSSv2 header for common functionality.
Command option bit field for mcuxClCss_Hkdf_Rfc5869_Async.
Definition: mcuxClCss_Kdf.h:120
uint32_t value
Accesses the bit field as a full word; initialize with a combination of constants from MCUXCLCSS_HKDF...
Definition: mcuxClCss_Kdf.h:124
MCUXCLCSS_API mcuxClCss_Status_Protected_t mcuxClCss_Ckdf_Sp800108_Async(mcuxClCss_KeyIndex_t derivationKeyIdx, mcuxClCss_KeyIndex_t targetKeyIdx, mcuxClCss_KeyProp_t targetKeyProperties, uint8_t const *pDerivationData)
Derives a key using the NIST SP 800-108 CMAC-based Extract-and-Expand Key Derivation Function.
MCUXCLCSS_API mcuxClCss_Status_Protected_t mcuxClCss_Hkdf_Rfc5869_Async(mcuxClCss_HkdfOption_t options, mcuxClCss_KeyIndex_t derivationKeyIdx, mcuxClCss_KeyIndex_t targetKeyIdx, mcuxClCss_KeyProp_t targetKeyProperties, uint8_t const *pDerivationData)
Derives a key using the HKDF (HMAC-based key derivation function) according to RFC5869.
uint32_t mode
Defines which phase of the key generation is performed.
Definition: mcuxClCss_Kdf.h:146
Internal command option bit field for CKDF functions.
Definition: mcuxClCss_Kdf.h:104
uint32_t hkdf_algo
Defines which algorithm shall be used.
Definition: mcuxClCss_Kdf.h:129
Internal command option bit field for mcuxClCss_TlsGenerateMasterKeyFromPreMasterKey_Async,...
Definition: mcuxClCss_Kdf.h:137
MCUXCLCSS_API mcuxClCss_Status_Protected_t mcuxClCss_Hkdf_Sp80056c_Async(mcuxClCss_KeyIndex_t derivationKeyIdx, uint8_t *pTagetKey, uint8_t const *pDerivationData, size_t derivationDataLength)
Derives a key using the HKDF (HMAC-based key derivation function) according to SP800-56C one-step app...
uint32_t rtfdrvdat
MCUXCLCSS_CKDF_SYSTEM_MEMORY_DERIV=use derivation input from system memory, MCUXCLCSS_CKDF_RTF_DERIV=...
Definition: mcuxClCss_Kdf.h:128
uint32_t value
Accesses the bit field as a full word; initialize with a combination of constants from MCUXCLCSS_HKDF...
Definition: mcuxClCss_Kdf.h:141
MCUXCLCSS_API mcuxClCss_Status_Protected_t mcuxClCss_TlsGenerateMasterKeyFromPreMasterKey_Async(uint8_t const *pDerivationData, mcuxClCss_KeyProp_t keyProperties, mcuxClCss_KeyIndex_t keyIdx)
Generates a TLS master key based on a pre-master key and derivation data, according to the TLS 1....
#define MCUX_CSSL_FP_FUNCTION_DECL(id)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:119
uint32_t value
Accesses the bit field as a full word; initialize with a combination of constants from MCUXCLCSS_HKDF...
Definition: mcuxClCss_Kdf.h:108
uint64_t mcuxClCss_Status_Protected_t
Type for CSS driver protected status codes.
Definition: mcuxClCss_Types.h:183