3. CMOX_HMAC

3.1. CMOX HMAC PUBLIC CONSTANTS

group CMOX_HMAC_PUBLIC_CONSTANTS

3.2. CMOX HMAC PUBLIC CONSTANTS:CMOX HMAC ALGO

group CMOX_HMAC_ALGO

Variables

const cmox_mac_algo_t CMOX_HMAC_SHA1_ALGO

Identifier of the HMAC-SHA1 mac algorithm for single-call function (Defined internally).

const cmox_mac_algo_t CMOX_HMAC_SHA224_ALGO

Identifier of the HMAC-SHA224 mac algorithm for single-call function (Defined internally).

const cmox_mac_algo_t CMOX_HMAC_SHA256_ALGO

Identifier of the HMAC-SHA256 mac algorithm for single-call function (Defined internally).

const cmox_mac_algo_t CMOX_HMAC_SHA384_ALGO

Identifier of the HMAC-SHA384 mac algorithm for single-call function (Defined internally).

const cmox_mac_algo_t CMOX_HMAC_SHA512_ALGO

Identifier of the HMAC-SHA512 mac algorithm for single-call function (Defined internally).

const cmox_mac_algo_t CMOX_HMAC_SHA512_224_ALGO

Identifier of the HMAC-SHA512/224 mac algorithm for single-call function (Defined internally).

const cmox_mac_algo_t CMOX_HMAC_SHA512_256_ALGO

Identifier of the HMAC-SHA512/256 mac algorithm for single-call function (Defined internally).

const cmox_mac_algo_t CMOX_HMAC_SM3_ALGO

Identifier of the HMAC-SM3 mac algorithm for single-call function (Defined internally).

3.3. CMOX HMAC PUBLIC CONSTANTS:CMOX HMAC IMPL

group CMOX_HMAC_IMPL

Variables

const cmox_hmac_impl_t CMOX_HMAC_SHA1

Implementation of HMAC using SHA-1 (Defined internally).

const cmox_hmac_impl_t CMOX_HMAC_SHA224

Implementation of HMAC using SHA-224 (Defined internally).

const cmox_hmac_impl_t CMOX_HMAC_SHA256

Implementation of HMAC using SHA-256 (Defined internally).

const cmox_hmac_impl_t CMOX_HMAC_SHA384

Implementation of HMAC using SHA-384 (Defined internally).

const cmox_hmac_impl_t CMOX_HMAC_SHA512

Implementation of HMAC using SHA-512 (Defined internally).

const cmox_hmac_impl_t CMOX_HMAC_SHA512_224

Implementation of HMAC using SHA-512/224 (Defined internally).

const cmox_hmac_impl_t CMOX_HMAC_SHA512_256

Implementation of HMAC using SHA-512/256 (Defined internally).

const cmox_hmac_impl_t CMOX_HMAC_SM3

Implementation of HMAC using SM3 (Defined internally).

3.4. CMOX HMAC PUBLIC METHODS

group CMOX_HMAC_PUBLIC_METHODS

Functions

cmox_mac_handle_t * cmox_hmac_construct ( cmox_hmac_handle_t * P_pThis , cmox_hmac_impl_t P_impl )

HMAC constructor.

The function is used for specifying which hash function to use in order to implement the HMAC algorithm.

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

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

    • CMOX_HMAC_SHA1

    • CMOX_HMAC_SHA224

    • CMOX_HMAC_SHA256

    • CMOX_HMAC_SHA384

    • CMOX_HMAC_SHA512

    • CMOX_HMAC_SHA512_224

    • CMOX_HMAC_SHA512_256

    • CMOX_HMAC_SM3

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

3.5. CMOX HMAC PUBLIC TYPES

group CMOX_HMAC_PUBLIC_TYPES

Typedefs

typedef const struct cmox_hmac_implStruct_st * cmox_hmac_impl_t

HMAC implementation.

This type specifies the used hash function for the HMAC 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 const struct cmox_hmac_supportStruct_st * cmox_hmac_support_t

HMAC internal support functions.

This type specifies some functions used internally by the HMAC in order to correctly compute the MAC. The structure pointed by the type is defined in the library internally

struct cmox_hmac_handle_t
#include <cmox_hmac.h>

HMAC handle structure definition.