50#ifndef MBEDTLS_CCM_ALT_H
51#define MBEDTLS_CCM_ALT_H
53#if !defined(MBEDTLS_CONFIG_FILE)
56#include MBEDTLS_CONFIG_FILE
59#include "mbed_toolchain.h"
63#define MBEDTLS_ERR_CCM_BAD_INPUT -0x000D
64#define MBEDTLS_ERR_CCM_AUTH_FAILED -0x000F
67#define MBEDTLS_ERR_CCM_HW_ACCEL_FAILED -0x0011
76#define MAX_CCM_BUF 256
77#define CCM_PBLOCK_SIZE MAX_CCM_BUF
85 MBED_ALIGN(4) uint8_t ccm_buf[MAX_CCM_BUF + 16];
86 MBED_ALIGN(4) uint8_t out_buf[MAX_CCM_BUF + 16];
120 const unsigned char *key,
121 unsigned int keybits );
169 const unsigned char *iv,
size_t iv_len,
170 const unsigned char *add,
size_t add_len,
171 const unsigned char *input,
unsigned char *output,
172 unsigned char *tag,
size_t tag_len );
217 const unsigned char *iv,
size_t iv_len,
218 const unsigned char *add,
size_t add_len,
219 const unsigned char *input,
unsigned char *output,
220 unsigned char *tag,
size_t tag_len );
254 const unsigned char *iv,
size_t iv_len,
255 const unsigned char *add,
size_t add_len,
256 const unsigned char *input,
unsigned char *output,
257 const unsigned char *tag,
size_t tag_len );
299 const unsigned char *iv,
size_t iv_len,
300 const unsigned char *add,
size_t add_len,
301 const unsigned char *input,
unsigned char *output,
302 const unsigned char *tag,
size_t tag_len );
304#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_AES_C)
311int mbedtls_ccm_self_test(
int verbose );
This file contains an abstraction interface for use with the cipher primitives provided by the librar...
Configuration options (set of defines)
mbedtls_cipher_id_t
Supported cipher types.
The CCM context-type definition.