4. CMOX_KMAC ¶
4.1. CMOX KMAC PUBLIC CONSTANTS ¶
- group CMOX_KMAC_PUBLIC_CONSTANTS
4.2. CMOX KMAC PUBLIC CONSTANTS:CMOX KMAC ALGO ¶
- group CMOX_KMAC_ALGO
-
Variables
-
const
cmox_mac_algo_t
CMOX_KMAC_128_ALGO
-
Identifier of the KMAC-128 mac algorithm for single-call function (Defined internally).
-
const
cmox_mac_algo_t
CMOX_KMAC_256_ALGO
-
Identifier of the KMAC-256 mac algorithm for single-call function (Defined internally).
-
const
cmox_mac_algo_t
CMOX_KMAC_128_ALGO
4.3. CMOX KMAC PUBLIC CONSTANTS:CMOX KMAC IMPL ¶
- group CMOX_KMAC_IMPL
-
Variables
-
const
cmox_kmac_impl_t
CMOX_KMAC_128
-
Implementation of KMAC-128 algorithm (Defined internally).
-
const
cmox_kmac_impl_t
CMOX_KMAC_256
-
Implementation of KMAC-256 algorithm (Defined internally).
-
const
cmox_kmac_impl_t
CMOX_KMAC_128
4.4. CMOX KMAC PUBLIC METHODS ¶
- group CMOX_KMAC_PUBLIC_METHODS
-
Functions
-
cmox_mac_handle_t
*
cmox_kmac_construct
(
cmox_kmac_handle_t
*
P_pThis
,
cmox_kmac_impl_t
P_impl
)
-
KMAC constructor.
The function is used for specifying which KMAC implementation to use in order to implement the MAC algorithm.
- Parameters :
-
P_pThis – Pointer to the KMAC handle to initialize
P_impl – Constant that specifies the implementation to use. This parameter can be one of the following values:
CMOX_KMAC_128
CMOX_KMAC_256
- Returns :
-
cmox_mac_handle_t* Pointer to a general MAC handle. This will be used by the general purpose MAC functions in order to perform the algorithm
-
cmox_mac_handle_t
*
cmox_kmac_construct
(
cmox_kmac_handle_t
*
P_pThis
,
cmox_kmac_impl_t
P_impl
)
4.5. CMOX KMAC PUBLIC TYPES ¶
- group CMOX_KMAC_PUBLIC_TYPES
-
Typedefs
-
typedef
const
struct
cmox_kmac_implStruct_st
*
cmox_kmac_impl_t
-
KMAC implementation.
This type specifies the implementation to use for the KMAC construct. This type is defined as a pointer to a structure, that contains the functions needed for the specific implementation, defined in the library internally
-
typedef
uint32_t
cmox_keccak_phase_t
-
Keccak-P phases.
-
struct
cmox_cshake_handle_t
-
#include <cmox_kmac.h>
Structure defining the cSHAKE context.
-
struct
cmox_kmac_inner_t
-
#include <cmox_kmac.h>
Structure defining the KMAC inner context.
-
struct
cmox_kmac_handle_t
-
#include <cmox_kmac.h>
KMAC handle structure definition.
-
typedef
const
struct
cmox_kmac_implStruct_st
*
cmox_kmac_impl_t