9. CMOX_ECB

9.1. CMOX ECB PUBLIC CONSTANTS

group CMOX_ECB_PUBLIC_CONSTANTS

9.2. CMOX ECB PUBLIC CONSTANTS:CMOX ECB ALGO

group CMOX_ECB_ALGO

Variables

const cmox_cipher_algo_t CMOX_AESSMALL_ECB_ENC_ALGO

Identifier of the ECB encryption using AES (small implementation) for single-call function (Defined internally).

const cmox_cipher_algo_t CMOX_AESSMALL_ECB_DEC_ALGO

Identifier of the ECB decryption using AES (small implementation) for single-call function (Defined internally).

const cmox_cipher_algo_t CMOX_AESFAST_ECB_ENC_ALGO

Identifier of the ECB encryption using AES (fast implementation) for single-call function (Defined internally).

const cmox_cipher_algo_t CMOX_AESFAST_ECB_DEC_ALGO

Identifier of the ECB decryption using AES (fast implementation) for single-call function (Defined internally).

const cmox_cipher_algo_t CMOX_SM4_ECB_ENC_ALGO

Identifier of the ECB encryption using SM4 for single-call function (Defined internally).

const cmox_cipher_algo_t CMOX_SM4_ECB_DEC_ALGO

Identifier of the ECB decryption using SM4 for single-call function (Defined internally).

9.3. CMOX ECB PUBLIC CONSTANTS:CMOX ECB IMPL

group CMOX_ECB_IMPL

Variables

const cmox_ecb_impl_t CMOX_AESFAST_ECB_ENC

Implementation of ECB encryption using AES (fast implementation) (Defined internally).

const cmox_ecb_impl_t CMOX_AESFAST_ECB_DEC

Implementation of ECB decryption using AES (fast implementation) (Defined internally).

const cmox_ecb_impl_t CMOX_AESSMALL_ECB_ENC

Implementation of ECB encryption using AES (small implementation) (Defined internally).

const cmox_ecb_impl_t CMOX_AESSMALL_ECB_DEC

Implementation of ECB decryption using AES (small implementation) (Defined internally).

const cmox_ecb_impl_t CMOX_SM4_ECB_ENC

Implementation of ECB encryption using SM4 (Defined internally).

const cmox_ecb_impl_t CMOX_SM4_ECB_DEC

Implementation of ECB decryption using SM4 (Defined internally).

9.4. CMOX ECB PUBLIC METHODS

group CMOX_ECB_PUBLIC_METHODS

Functions

cmox_cipher_handle_t * cmox_ecb_construct ( cmox_ecb_handle_t * P_pThis , cmox_ecb_impl_t P_impl )

ECB constructor.

The function is used for specifying which block cipher algorithm to use in order to implement the ECB algorithm and if the algorithm will be used for encryption or decryption.

Parameters :
  • P_pThis – Pointer to the ECB handle to initialize

  • P_impl – Constant that specifies the implementation to use. This parameter can be one of the following values:

    • CMOX_AESFAST_ECB_ENC

    • CMOX_AESFAST_ECB_DEC

    • CMOX_AESSMALL_ECB_ENC

    • CMOX_AESSMALL_ECB_DEC

    • CMOX_SM4_ECB_ENC

    • CMOX_SM4_ECB_DEC

Returns :

cmox_cipher_handle_t* Pointer to a general cipher handle. This will be used by the general purpose cipher functions in order to perform the algorithm

9.5. CMOX ECB PUBLIC TYPES

group CMOX_ECB_PUBLIC_TYPES

Typedefs

typedef const struct cmox_ecb_implStruct_st * cmox_ecb_impl_t

ECB mode implementation.

This type specifies the used block cipher for the ECB construct and if the algorithm will be used for encryption or decryption. This type is defined as a pointer to a structure, that contains the functions needed for the specific implementation, defined in the library internally

struct cmox_ecb_handle_t
#include <cmox_ecb.h>

ECB handle structure definition.