mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-25 13:43:31 +00:00
Rename mbedtls_psa_export_public_key_iop_operation_t
Rename it to mbedtls_psa_export_public_key_iop_t as iop stands for "interuptible operation" already. Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
parent
e283ed9e20
commit
3c46535ff9
@ -665,7 +665,7 @@ psa_status_t mbedtls_psa_ecp_generate_key_iop_abort(
|
|||||||
}
|
}
|
||||||
|
|
||||||
psa_status_t mbedtls_psa_ecp_export_public_key_iop_setup(
|
psa_status_t mbedtls_psa_ecp_export_public_key_iop_setup(
|
||||||
mbedtls_psa_export_public_key_iop_operation_t *operation,
|
mbedtls_psa_export_public_key_iop_t *operation,
|
||||||
uint8_t *private_key,
|
uint8_t *private_key,
|
||||||
size_t private_key_len,
|
size_t private_key_len,
|
||||||
const psa_key_attributes_t *private_key_attributes)
|
const psa_key_attributes_t *private_key_attributes)
|
||||||
@ -690,7 +690,7 @@ exit:
|
|||||||
}
|
}
|
||||||
|
|
||||||
psa_status_t mbedtls_psa_ecp_export_public_key_iop_complete(
|
psa_status_t mbedtls_psa_ecp_export_public_key_iop_complete(
|
||||||
mbedtls_psa_export_public_key_iop_operation_t *operation,
|
mbedtls_psa_export_public_key_iop_t *operation,
|
||||||
uint8_t *pub_key,
|
uint8_t *pub_key,
|
||||||
size_t pub_key_size,
|
size_t pub_key_size,
|
||||||
size_t *pub_key_len)
|
size_t *pub_key_len)
|
||||||
@ -717,7 +717,7 @@ psa_status_t mbedtls_psa_ecp_export_public_key_iop_complete(
|
|||||||
}
|
}
|
||||||
|
|
||||||
psa_status_t mbedtls_psa_ecp_export_public_key_iop_abort(
|
psa_status_t mbedtls_psa_ecp_export_public_key_iop_abort(
|
||||||
mbedtls_psa_export_public_key_iop_operation_t *operation)
|
mbedtls_psa_export_public_key_iop_t *operation)
|
||||||
{
|
{
|
||||||
mbedtls_ecp_keypair_free(operation->key);
|
mbedtls_ecp_keypair_free(operation->key);
|
||||||
mbedtls_free(operation->key);
|
mbedtls_free(operation->key);
|
||||||
|
@ -123,7 +123,7 @@ psa_status_t mbedtls_psa_ecp_export_public_key(
|
|||||||
/**
|
/**
|
||||||
* \brief Setup a new interruptible export public-key operation.
|
* \brief Setup a new interruptible export public-key operation.
|
||||||
*
|
*
|
||||||
* \param[in] operation The \c mbedtls_psa_export_public_key_iop_operation_t to use.
|
* \param[in] operation The \c mbedtls_psa_export_public_key_iop_t to use.
|
||||||
* This must be initialized first.
|
* This must be initialized first.
|
||||||
* \param[in] private_key pointer to private key.
|
* \param[in] private_key pointer to private key.
|
||||||
* \param[in] private_key_len size of \p private_key in bytes.
|
* \param[in] private_key_len size of \p private_key in bytes.
|
||||||
@ -142,7 +142,7 @@ psa_status_t mbedtls_psa_ecp_export_public_key(
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
psa_status_t mbedtls_psa_ecp_export_public_key_iop_setup(
|
psa_status_t mbedtls_psa_ecp_export_public_key_iop_setup(
|
||||||
mbedtls_psa_export_public_key_iop_operation_t *operation,
|
mbedtls_psa_export_public_key_iop_t *operation,
|
||||||
uint8_t *private_key,
|
uint8_t *private_key,
|
||||||
size_t private_key_len,
|
size_t private_key_len,
|
||||||
const psa_key_attributes_t *private_key_attributes);
|
const psa_key_attributes_t *private_key_attributes);
|
||||||
@ -151,7 +151,7 @@ psa_status_t mbedtls_psa_ecp_export_public_key_iop_setup(
|
|||||||
/**
|
/**
|
||||||
* \brief Continue and eventually complete an export public-key operation.
|
* \brief Continue and eventually complete an export public-key operation.
|
||||||
*
|
*
|
||||||
* \param[in] operation The \c mbedtls_psa_export_public_key_iop_operation_t to use.
|
* \param[in] operation The \c mbedtls_psa_export_public_key_iop_t to use.
|
||||||
* This must be initialized first and
|
* This must be initialized first and
|
||||||
* had \c mbedtls_psa_ecp_export_public_key_iop_setup()
|
* had \c mbedtls_psa_ecp_export_public_key_iop_setup()
|
||||||
* called successfully.
|
* called successfully.
|
||||||
@ -167,7 +167,7 @@ psa_status_t mbedtls_psa_ecp_export_public_key_iop_setup(
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
psa_status_t mbedtls_psa_ecp_export_public_key_iop_complete(
|
psa_status_t mbedtls_psa_ecp_export_public_key_iop_complete(
|
||||||
mbedtls_psa_export_public_key_iop_operation_t *operation,
|
mbedtls_psa_export_public_key_iop_t *operation,
|
||||||
uint8_t *pub_key,
|
uint8_t *pub_key,
|
||||||
size_t pub_key_size,
|
size_t pub_key_size,
|
||||||
size_t *pub_key_len);
|
size_t *pub_key_len);
|
||||||
@ -175,13 +175,13 @@ psa_status_t mbedtls_psa_ecp_export_public_key_iop_complete(
|
|||||||
/**
|
/**
|
||||||
* \brief Abort an interruptible export public-key operation.
|
* \brief Abort an interruptible export public-key operation.
|
||||||
*
|
*
|
||||||
* \param[in] operation The \c mbedtls_psa_export_public_key_iop_operation_t to abort.
|
* \param[in] operation The \c mbedtls_psa_export_public_key_iop_t to abort.
|
||||||
*
|
*
|
||||||
* \retval #PSA_SUCCESS
|
* \retval #PSA_SUCCESS
|
||||||
* The operation was aborted successfully.
|
* The operation was aborted successfully.
|
||||||
*/
|
*/
|
||||||
psa_status_t mbedtls_psa_ecp_export_public_key_iop_abort(
|
psa_status_t mbedtls_psa_ecp_export_public_key_iop_abort(
|
||||||
mbedtls_psa_export_public_key_iop_operation_t *operation);
|
mbedtls_psa_export_public_key_iop_t *operation);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Generate an ECP key.
|
* \brief Generate an ECP key.
|
||||||
|
@ -258,7 +258,7 @@ typedef struct {
|
|||||||
/* Make the struct non-empty if algs not supported. */
|
/* Make the struct non-empty if algs not supported. */
|
||||||
unsigned MBEDTLS_PRIVATE(dummy);
|
unsigned MBEDTLS_PRIVATE(dummy);
|
||||||
#endif
|
#endif
|
||||||
} mbedtls_psa_export_public_key_iop_operation_t;
|
} mbedtls_psa_export_public_key_iop_t;
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_C) && defined(MBEDTLS_ECP_RESTARTABLE)
|
#if defined(MBEDTLS_ECP_C) && defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
#define MBEDTLS_PSA_EXPORT_PUBLIC_KEY_IOP_INIT { NULL, MBEDTLS_ECP_RESTART_INIT, 0 }
|
#define MBEDTLS_PSA_EXPORT_PUBLIC_KEY_IOP_INIT { NULL, MBEDTLS_ECP_RESTART_INIT, 0 }
|
||||||
|
@ -584,7 +584,7 @@ struct psa_export_public_key_iop_s {
|
|||||||
* any driver (i.e. none of the driver contexts are active).
|
* any driver (i.e. none of the driver contexts are active).
|
||||||
*/
|
*/
|
||||||
unsigned int MBEDTLS_PRIVATE(id);
|
unsigned int MBEDTLS_PRIVATE(id);
|
||||||
mbedtls_psa_export_public_key_iop_operation_t MBEDTLS_PRIVATE(ctx);
|
mbedtls_psa_export_public_key_iop_t MBEDTLS_PRIVATE(ctx);
|
||||||
unsigned int MBEDTLS_PRIVATE(error_occurred) : 1;
|
unsigned int MBEDTLS_PRIVATE(error_occurred) : 1;
|
||||||
uint32_t MBEDTLS_PRIVATE(num_ops);
|
uint32_t MBEDTLS_PRIVATE(num_ops);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user