A struct containing all of the function pointers needed to implement cipher operations using secure elements.

PSA Crypto API implementations should populate instances of the table as appropriate upon startup or at build time.

If one of the functions is not implemented (such as psa_drv_se_cipher_ecb_t), it should be set to NULL.

Public Functions#

size_t
MBEDTLS_PRIVATE(context_size)

The size in bytes of the hardware-specific secure element cipher context structure.

Function that performs a cipher setup operation.

MBEDTLS_PRIVATE(p_set_iv)

Function that sets a cipher IV (if necessary)

MBEDTLS_PRIVATE(p_update)

Function that performs a cipher update operation.

MBEDTLS_PRIVATE(p_finish)

Function that completes a cipher operation.

Function that aborts a cipher operation.

Function that performs ECB mode for a cipher operation (Danger: ECB mode should not be used directly by clients of the PSA Crypto Client API)

Public Function Documentation#

MBEDTLS_PRIVATE#

size_t psa_drv_se_cipher_t::MBEDTLS_PRIVATE (context_size )

The size in bytes of the hardware-specific secure element cipher context structure.

Parameters
TypeDirectionArgument NameDescription
context_sizeN/A

MBEDTLS_PRIVATE#

psa_drv_se_cipher_setup_t psa_drv_se_cipher_t::MBEDTLS_PRIVATE (p_setup )

Function that performs a cipher setup operation.

Parameters
TypeDirectionArgument NameDescription
p_setupN/A

MBEDTLS_PRIVATE#

psa_drv_se_cipher_set_iv_t psa_drv_se_cipher_t::MBEDTLS_PRIVATE (p_set_iv )

Function that sets a cipher IV (if necessary)

Parameters
TypeDirectionArgument NameDescription
p_set_ivN/A

MBEDTLS_PRIVATE#

psa_drv_se_cipher_update_t psa_drv_se_cipher_t::MBEDTLS_PRIVATE (p_update )

Function that performs a cipher update operation.

Parameters
TypeDirectionArgument NameDescription
p_updateN/A

MBEDTLS_PRIVATE#

psa_drv_se_cipher_finish_t psa_drv_se_cipher_t::MBEDTLS_PRIVATE (p_finish )

Function that completes a cipher operation.

Parameters
TypeDirectionArgument NameDescription
p_finishN/A

MBEDTLS_PRIVATE#

psa_drv_se_cipher_abort_t psa_drv_se_cipher_t::MBEDTLS_PRIVATE (p_abort )

Function that aborts a cipher operation.

Parameters
TypeDirectionArgument NameDescription
p_abortN/A

MBEDTLS_PRIVATE#

psa_drv_se_cipher_ecb_t psa_drv_se_cipher_t::MBEDTLS_PRIVATE (p_ecb )

Function that performs ECB mode for a cipher operation (Danger: ECB mode should not be used directly by clients of the PSA Crypto Client API)

Parameters
TypeDirectionArgument NameDescription
p_ecbN/A