STCRYPTOLIB_CMAC_ALT

MBEDTLS IMPLEMENTATION STCRYPTOLIB CMAC ALT FUNCTIONS

group MBEDTLS_IMPLEMENTATION_STCRYPTOLIB_CMAC_ALT_FUNCTIONS

Public API functions for STCRYPTOLIB CMAC alternate implementation.

This file implements STMicroelectronics CMAC with STCryptoLib services on API from mbed TLS

The CMAC Secure Hash Standard was published by NIST.

http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38b.pdf

Functions

int mbedtls_cipher_cmac_starts ( mbedtls_cipher_context_t * ctx , const unsigned char * key , size_t keybits )
int mbedtls_cipher_cmac_update ( mbedtls_cipher_context_t * ctx , const unsigned char * input , size_t ilen )
int mbedtls_cipher_cmac_finish ( mbedtls_cipher_context_t * ctx , unsigned char * output )
int mbedtls_cipher_cmac ( const mbedtls_cipher_info_t * cipher_info , const unsigned char * key , size_t keylen , const unsigned char * input , size_t ilen , unsigned char * output )
int mbedtls_aes_cmac_prf_128 ( const unsigned char * key , size_t key_length , const unsigned char * input , size_t in_len , unsigned char output [ 16 ] )

Implementation of AES-CMAC-PRF-128 defined in RFC 4615.

MBEDTLS IMPLEMENTATION STCRYPTOLIB CMAC ALT TYPES

group MBEDTLS_IMPLEMENTATION_STCRYPTOLIB_CMAC_ALT_TYPES

This file contains CMAC definitions and functions based on STM32 crypto library.

The Cipher-based Message Authentication Code (CMAC) Mode for Authentication is defined in RFC-4493: The AES-CMAC Algorithm .

CMAC context structure definitions for STCRYPTOLIB.

struct mbedtls_cmac_context_t
#include <stcryptolib_cmac_alt.h>

CMAC context structure.

Public Members

cmox_mac_handle_t * mac_ctx

Mac ctx

cmox_cmac_handle_t cmac_ctx

Cmac ctx