Client Data Structures

group group_crypto_cli_data_structures
struct cy_stc_crypto_hw_error_t
#include <>

Structure for storing a description of a Crypto hardware error.

Public Members

uint32_t errorStatus0

Captures error description information for one of obtained hardware error:

  • for INSTR_OPC_ERROR: - violating the instruction.

  • for INSTR_CC_ERROR : - violating the instruction condition code.

  • for BUS_ERROR : - violating the transfer address.

uint32_t errorStatus1

[31] - “1” - Indicates that hardware error has occured and ERROR_STATUS0 and ERROR_STATUS1 captured valid error-information.

[26..24] - The error source:

  • ”0”: INSTR_OPC_ERROR - an instruction decoder error.

  • ”1”: INSTR_CC_ERROR - an instruction condition code-error.

  • ”2”: BUS_ERROR - a bus master interface AHB-Lite bus-error.

    • [5..4] - violating the transfer, the size attribute

      • ”0”: an 8-bit transfer;

      • ”1”: 16 bits transfer;

      • ”2”: 32-bit transfer.

    • [0] - violating the transfer, read the attribute

  • ”3”: TR_AP_DETECT_ERROR - True Random Generator error.

struct cy_stc_crypto_context_t
#include <>

The structure for storing the crypto client context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in the function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_des_t
#include <>

The structure for storing the DES context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in the function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_aes_t
#include <>

The structure for storing the AES context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in the function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_sha_t
#include <>

The structure for storing the SHA context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in the function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_prng_t
#include <>

The structure for storing the PRNG context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in the function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_trng_t
#include <>

The structure for storing the TRNG context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in the function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_str_t
#include <>

The structure for storing the string context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in the function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_crc_t
#include <>

The structure for storing the CRC context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in the function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_rsa_ver_t
#include <>

The structure for storing the RSA verification context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in the function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_rsa_t
#include <>

The structure for storing the RSA context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.

struct cy_stc_crypto_context_ecc_t
#include <>

The structure for storing the ECC operations context.

All fields for the context structure are internal. Firmware never reads or writes these values. Firmware allocates the structure and provides the address of the structure to the driver in function calls. Firmware must ensure that the defined instance of this structure remains in scope while the drive is in use.