added generate key. Removed pubkey export

This commit is contained in:
Derek Miller 2019-02-15 17:10:49 -06:00
parent 0972fe548c
commit 0b3098a486

View file

@ -788,10 +788,15 @@ typedef psa_status_t (*psa_drv_se_export_key_t)(psa_key_slot_number_t key,
* *
* \retval #PSA_SUCCESS * \retval #PSA_SUCCESS
*/ */
typedef psa_status_t (*psa_drv_se_export_public_key_t)(psa_key_slot_number_t key, typedef psa_status_t (*psa_drv_se_generate_key_t) (psa_key_slot_number_t key_slot,
uint8_t *p_data, psa_key_type_t type,
size_t data_size, psa_key_usage_t usage,
size_t *p_data_length); size_t bits,
const void *extra,
size_t extra_size,
uint8_t *p_pubkey_out,
size_t pubkey_out_size,
size_t *p_pubkey_length);
/** /**
* \brief A struct containing all of the function pointers needed to for key * \brief A struct containing all of the function pointers needed to for key
@ -806,11 +811,11 @@ typedef struct {
/** Function that performs the key import operation */ /** Function that performs the key import operation */
psa_drv_se_import_key_t p_import; psa_drv_se_import_key_t p_import;
/** Function that performs the key destroy operation */ /** Function that performs the key destroy operation */
psa_drv_se_destroy_key_t p_destroy; psa_drv_se_generate_key_t p_generate;
/** Function that performs the key export operation */ /** Function that performs the key export operation */
psa_drv_se_export_key_t p_export; psa_drv_se_destroy_key_t p_destroy;
/** Function that perforsm the public key export operation */ /** Function that perforsm the public key export operation */
psa_drv_se_export_public_key_t p_export_public; psa_drv_se_export_key_t p_export;
} psa_drv_se_key_management_t; } psa_drv_se_key_management_t;
/**@}*/ /**@}*/