MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClPsaDriver_Oracle.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2022-2023 NXP */
3/* */
4/* NXP Confidential. This software is owned or controlled by NXP and may */
5/* only be used strictly in accordance with the applicable license terms. */
6/* By expressly accepting such terms or by downloading, installing, */
7/* activating and/or otherwise using the software, you are agreeing that */
8/* you have read, and that you agree to comply with and are bound by, such */
9/* license terms. If you do not agree to be bound by the applicable license */
10/* terms, then you may not retain, install, activate or otherwise use the */
11/* software. */
12/*--------------------------------------------------------------------------*/
13
17#ifndef MCUXCLPSADRIVERORACLE_H_
18#define MCUXCLPSADRIVERORACLE_H_
19
20#include <common.h>
21#include <psa/crypto.h>
22#include <mcuxClKey.h>
23#include <mcuxClConfig.h> // Exported features flags header
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29// GENERAL NOTE
30// do not use mcuxClKey_setKeyproperties on any of these keys as it will overwrite pAuxData
31
45 uint8_t *data,
46 size_t data_size,
47 size_t *data_length,
48 bool internal_representation);
49
88
101
115
128
141
153
180 const uint8_t *data,
181 size_t data_length,
182 size_t *key_buffer_length,
183 size_t *bits);
184
204MCUX_CSSL_ANALYSIS_START_PATTERN_DESCRIPTIVE_IDENTIFIER()
205psa_status_t mcuxClPsaDriver_Oracle_GetKeyBufferSizeFromKeyData(const psa_key_attributes_t *attributes,
206 const uint8_t *data,
207 size_t data_length,
208 size_t *key_buffer_length);
209MCUX_CSSL_ANALYSIS_STOP_PATTERN_DESCRIPTIVE_IDENTIFIER()
210
221MCUX_CSSL_ANALYSIS_START_PATTERN_DESCRIPTIVE_IDENTIFIER()
222psa_status_t mcuxClPsaDriver_Oracle_GetBuiltinKeyBufferSize(mbedtls_svc_key_id_t key_id, size_t *key_buffer_size);
223MCUX_CSSL_ANALYSIS_STOP_PATTERN_DESCRIPTIVE_IDENTIFIER()
224
237MCUX_CSSL_ANALYSIS_START_PATTERN_DESCRIPTIVE_IDENTIFIER()
238psa_status_t mcuxClPsaDriver_Oracle_GetBuiltinKeyBuffer(psa_key_attributes_t *attributes,
239 uint8_t *key_buffer,
240 size_t key_buffer_size,
241 size_t *key_buffer_length);
242MCUX_CSSL_ANALYSIS_STOP_PATTERN_DESCRIPTIVE_IDENTIFIER()
243
244#ifdef __cplusplus
245} /* extern "C" */
246#endif
247
248#endif /* MCUXCLPSADRIVERORACLE_H_ */
Top-level include file for the mcuxClKey component.
psa_status_t mcuxClPsaDriver_Oracle_GetBuiltinKeyBufferSize(mbedtls_svc_key_id_t key_id, size_t *key_buffer_size)
Oracle function for making keys that are installed upon boot in S50 and keys derived from those (buil...
psa_status_t mcuxClPsaDriver_Oracle_SuspendKey(mcuxClKey_Descriptor_t *pKey)
Oracle function for 'suspending' a key.
psa_status_t mcuxClPsaDriver_Oracle_GetKeyBufferSizeFromKeyData(const psa_key_attributes_t *attributes, const uint8_t *data, size_t data_length, size_t *key_buffer_length)
Oracle function for determine the size required for a key buffer from the data supplied when importin...
psa_status_t mcuxClPsaDriver_Oracle_StoreKey(mcuxClKey_Descriptor_t *pKey)
Oracle function for saving a key.
psa_status_t mcuxClPsaDriver_Oracle_UnloadKey(mcuxClKey_Descriptor_t *pKey)
Oracle function for 'unloading' a previously loaded key.
psa_status_t mcuxClPsaDriver_Oracle_ImportKey(mcuxClKey_Descriptor_t *pKey, const uint8_t *data, size_t data_length, size_t *key_buffer_length, size_t *bits)
Oracle function for executing S50 specific activities when the import of key is done the PSA library ...
psa_status_t mcuxClPsaDriver_Oracle_ResumeKey(mcuxClKey_Descriptor_t *pKey)
Oracle function for 'resuming' a previously 'suspended' key.
psa_status_t mcuxClPsaDriver_Oracle_LoadKey(mcuxClKey_Descriptor_t *pKey)
Oracle function for loading a key.
psa_status_t mcuxClPsaDriver_Oracle_ExportPublicKey(mcuxClKey_Descriptor_t *pKey, uint8_t *data, size_t data_size, size_t *data_length, bool internal_representation)
Oracle function for exporting of the public key created in ELS during KEY_GEN command.
psa_status_t mcuxClPsaDriver_Oracle_ReserveKey(mcuxClKey_Descriptor_t *pKey)
Oracle function for allocating storage for a key that will be created by the psa driver.
psa_status_t mcuxClPsaDriver_Oracle_GetBuiltinKeyBuffer(psa_key_attributes_t *attributes, uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length)
Oracle function for making keys that are installed upon boot in S50 and keys derived from those (buil...
struct mcuxClKey_Descriptor mcuxClKey_Descriptor_t
Key descriptor type.
Definition mcuxClKey_Types.h:81