12. CMOX_OFB ¶
12.1. OFB single-call algorithms ¶
- 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).
-
const
cmox_cipher_algo_t
CMOX_AESSMALL_OFB_ENC_ALGO
¶
12.2. OFB implementations ¶
- 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).
-
const
cmox_ofb_impl_t
CMOX_AESFAST_OFB_ENC
¶
12.3. OFB public method prototypes ¶
- 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
-
cmox_cipher_handle_t
*
cmox_ofb_construct
(
cmox_ofb_handle_t
*
P_pThis
,
cmox_ofb_impl_t
P_impl
)
¶
12.4. 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.
Public Members
-
cmox_cipher_handle_t
super
¶
-
General cipher handle
-
cmox_blockcipher_handle_t
blockCipher
¶
-
Block cipher handle
-
uint32_t
iv
[
CMOX_CIPHER_BLOCK_SIZE
]
¶
-
Buffer containing the Initialization Vector
-
cmox_cipher_handle_t
super
¶
-
typedef
const
struct
cmox_ofb_implStruct_st
*
cmox_ofb_impl_t
¶