Common Enumerated Types

group group_crypto_enums

Enums

enum cy_en_crypto_aes_key_length_t

cy_en_crypto_aes_key_length_t: The key length options for the AES method.

Values:

enumerator CY_CRYPTO_KEY_AES_128

The AES key size is 128 bits.

enumerator CY_CRYPTO_KEY_AES_192

The AES key size is 192 bits.

enumerator CY_CRYPTO_KEY_AES_256

The AES key size is 256 bits.

enum cy_en_crypto_dir_mode_t

cy_en_crypto_dir_mode_t: Defines the direction of the Crypto methods.

Values:

enumerator CY_CRYPTO_ENCRYPT

The forward mode, plain text will be encrypted into cipher text.

enumerator CY_CRYPTO_DECRYPT

The reverse mode, cipher text will be decrypted into plain text.

enum cy_en_crypto_sha_mode_t

cy_en_crypto_sha_mode_t: Defines modes of SHA method.

Values:

enumerator CY_CRYPTO_MODE_SHA1

Sets the SHA1 mode.

enumerator CY_CRYPTO_MODE_SHA224

Sets the SHA224 mode.

enumerator CY_CRYPTO_MODE_SHA256

Sets the SHA256 mode.

enumerator CY_CRYPTO_MODE_SHA384

Sets the SHA384 mode.

enumerator CY_CRYPTO_MODE_SHA512

Sets the SHA512 mode.

enumerator CY_CRYPTO_MODE_SHA512_256

Sets the SHA512/256 mode.

enumerator CY_CRYPTO_MODE_SHA512_224

Sets the SHA512/224 mode.

enum cy_en_crypto_rsa_ver_result_t

cy_en_crypto_rsa_ver_result_t: Signature verification status.

Values:

enumerator CY_CRYPTO_RSA_VERIFY_SUCCESS

PKCS1-v1.5 verify SUCCESS.

enumerator CY_CRYPTO_RSA_VERIFY_FAIL

PKCS1-v1.5 verify FAILED.

enum cy_en_crypto_status_t

cy_en_crypto_status_t: Errors of the Crypto block.

Values:

enumerator CY_CRYPTO_SUCCESS

Operation completed successfully.

enumerator CY_CRYPTO_HW_ERROR

A hardware error occurred, detailed information is in stc_crypto_hw_error_t.

enumerator CY_CRYPTO_SIZE_NOT_X16

The size of input data is not multiple of 16.

enumerator CY_CRYPTO_DES_WEAK_KEY

The key for the DES method is weak.

enumerator CY_CRYPTO_COMM_FAIL

Communication between the client and server via IPC is broken.

enumerator CY_CRYPTO_SERVER_NOT_STARTED

The Crypto server is not started.

enumerator CY_CRYPTO_SERVER_BUSY

The Crypto server in process state.

enumerator CY_CRYPTO_NOT_INITIALIZED

The Crypto driver is not initialized.

enumerator CY_CRYPTO_HW_NOT_ENABLED

The Crypto hardware is not enabled.

enumerator CY_CRYPTO_NOT_SUPPORTED

The Crypto operation is not supported.

enumerator CY_CRYPTO_BAD_PARAMS

The Crypto operation parameters are incorrect.