11. CMOX_KEYWRAP ¶
11.1. CMOX KEYWRAP PUBLIC CONSTANTS ¶
- group CMOX_KEYWRAP_PUBLIC_CONSTANTS
11.2. CMOX KEYWRAP PUBLIC CONSTANTS:CMOX KEYWRAP ALGO ¶
- group CMOX_KEYWRAP_ALGO
-
Variables
-
const
cmox_cipher_algo_t
CMOX_AESSMALL_KEYWRAP_ENC_ALGO
-
Identifier of the KEYWRAP encryption using AES (small implementation) for single-call function (Defined internally).
-
const
cmox_cipher_algo_t
CMOX_AESSMALL_KEYWRAP_DEC_ALGO
-
Identifier of the KEYWRAP decryption using AES (small implementation) for single-call function (Defined internally).
-
const
cmox_cipher_algo_t
CMOX_AESFAST_KEYWRAP_ENC_ALGO
-
Identifier of the KEYWRAP encryption using AES (fast implementation) for single-call function (Defined internally).
-
const
cmox_cipher_algo_t
CMOX_AESFAST_KEYWRAP_DEC_ALGO
-
Identifier of the KEYWRAP decryption using AES (fast implementation) for single-call function (Defined internally).
-
const
cmox_cipher_algo_t
CMOX_AESSMALL_KEYWRAP_ENC_ALGO
11.3. CMOX KEYWRAP PUBLIC CONSTANTS:CMOX KEYWRAP IMPL ¶
- group CMOX_KEYWRAP_IMPL
-
Variables
-
const
cmox_keywrap_impl_t
CMOX_AESFAST_KEYWRAP_ENC
-
Implementation of KEYWRAP encryption using AES (fast implementation) (Defined internally).
-
const
cmox_keywrap_impl_t
CMOX_AESFAST_KEYWRAP_DEC
-
Implementation of KEYWRAP decryption using AES (fast implementation) (Defined internally).
-
const
cmox_keywrap_impl_t
CMOX_AESSMALL_KEYWRAP_ENC
-
Implementation of KEYWRAP encryption using AES (small implementation) (Defined internally).
-
const
cmox_keywrap_impl_t
CMOX_AESSMALL_KEYWRAP_DEC
-
Implementation of KEYWRAP decryption using AES (small implementation) (Defined internally).
-
const
cmox_keywrap_impl_t
CMOX_AESFAST_KEYWRAP_ENC
11.4. CMOX KEYWRAP PUBLIC MACROS ¶
- group CMOX_KEYWRAP_PUBLIC_MACROS
-
Defines
-
CMOX_KEYWRAP_TAG_LEN
-
Size in bytes of the keywrap tag.
-
CMOX_KEYWRAP_TAG_LEN
11.5. CMOX KEYWRAP PUBLIC METHODS ¶
- group CMOX_KEYWRAP_PUBLIC_METHODS
-
Functions
-
cmox_cipher_handle_t
*
cmox_keywrap_construct
(
cmox_keywrap_handle_t
*
P_pThis
,
cmox_keywrap_impl_t
P_impl
)
-
KEYWRAP constructor.
The function is used for specifying which block cipher algorithm to use in order to implement the KEYWRAP algorithm and if the algorithm will be used for encryption or decryption.
- Parameters :
-
P_pThis – Pointer to the KEYWRAP handle to initialize
P_impl – Constant that specifies the implementation to use. This parameter can be one of the following values:
CMOX_AESFAST_KEYWRAP_ENC
CMOX_AESFAST_KEYWRAP_DEC
CMOX_AESSMALL_KEYWRAP_ENC
CMOX_AESSMALL_KEYWRAP_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_keywrap_construct
(
cmox_keywrap_handle_t
*
P_pThis
,
cmox_keywrap_impl_t
P_impl
)
11.6. CMOX KEYWRAP PUBLIC TYPES ¶
- group CMOX_KEYWRAP_PUBLIC_TYPES
-
Typedefs
-
typedef
const
struct
cmox_keywrap_implStruct_st
*
cmox_keywrap_impl_t
-
KEYWRAP mode implementation.
This type specifies the used block cipher for the KEYWRAP 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_keywrap_handle_t
-
#include <cmox_keywrap.h>
KEYWRAP handle structure definition.
-
typedef
const
struct
cmox_keywrap_implStruct_st
*
cmox_keywrap_impl_t