nrfxlib API 2.8.99
|
int mbedtls_gcm_setkey_shadow_key_derived | ( | mbedtls_gcm_context *const | ctx, |
mbedtls_cipher_id_t | cipher, | ||
uint32_t | slot_id, | ||
unsigned int | keybits, | ||
uint8_t const * | label, | ||
size_t | label_size, | ||
uint8_t const * | context, | ||
size_t | context_size ) |
#include <crypto/nrf_cc310_mbedcrypto/include/mbedtls/cc3xx_kmu.h>
Function to configure AES GCM to use a key derived from one or more slots in KMU for encryption.
See mbedtls_derive_kmu_key for details on the KDF function.
ctx | AES context to set the decryption key by KMU slot. |
cipher | Cipher id to use. |
slot_id | Identifier of the key slot (0 - 127). |
keybits | Key size in bits. |
label | Label to use for KDF. |
label_size | Size of the label to use for KDF. |
context | Context info to use for KDF. |
context_size | Context info size to use for KDF. |