12. CMOX_OFB

12.1. CMOX OFB PUBLIC CONSTANTS

group CMOX_OFB_PUBLIC_CONSTANTS

12.2. CMOX OFB PUBLIC CONSTANTS:CMOX OFB ALGO

group CMOX_OFB_ALGO

Variables

const cmox_cipher_algo_t CMOX_AESSMALL_OFB_ENC_ALGO

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

const cmox_cipher_algo_t CMOX_AESSMALL_OFB_DEC_ALGO

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

const cmox_cipher_algo_t CMOX_AESFAST_OFB_ENC_ALGO

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

const cmox_cipher_algo_t CMOX_AESFAST_OFB_DEC_ALGO

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

const cmox_cipher_algo_t CMOX_SM4_OFB_ENC_ALGO

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

const cmox_cipher_algo_t CMOX_SM4_OFB_DEC_ALGO

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

12.3. CMOX OFB PUBLIC CONSTANTS:CMOX OFB IMPL

group CMOX_OFB_IMPL

Variables

const cmox_ofb_impl_t CMOX_AESFAST_OFB_ENC

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

const cmox_ofb_impl_t CMOX_AESFAST_OFB_DEC

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

const cmox_ofb_impl_t CMOX_AESSMALL_OFB_ENC

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

const cmox_ofb_impl_t CMOX_AESSMALL_OFB_DEC

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

const cmox_ofb_impl_t CMOX_SM4_OFB_ENC

Implementation of OFB encryption using SM4 (Defined internally).

const cmox_ofb_impl_t CMOX_SM4_OFB_DEC

Implementation of OFB decryption using SM4 (Defined internally).

12.4. CMOX OFB PUBLIC METHODS

group CMOX_OFB_PUBLIC_METHODS

Functions

cmox_cipher_handle_t * cmox_ofb_construct ( cmox_ofb_handle_t * P_pThis , cmox_ofb_impl_t P_impl )

OFB constructor.

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

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

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

    • CMOX_AESFAST_OFB_ENC

    • CMOX_AESFAST_OFB_DEC

    • CMOX_AESSMALL_OFB_ENC

    • CMOX_AESSMALL_OFB_DEC

    • CMOX_SM4_OFB_ENC

    • CMOX_SM4_OFB_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

12.5. CMOX OFB PUBLIC TYPES

group CMOX_OFB_PUBLIC_TYPES

Typedefs

typedef const struct cmox_ofb_implStruct_st * cmox_ofb_impl_t

OFB mode implementation.

This type specifies the used block cipher for the OFB 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_ofb_handle_t
#include <cmox_ofb.h>

OFB handle structure definition.