Data Structures | Typedefs | Functions
AESGCMLPF3HSM.h File Reference

Detailed Description

AESGCM driver implementation for the Low Power F3 family.

============================================================================

This file should only be included in the board file to fill the AESGCM_config struct.

Hardware Accelerator

The Low Power F3 family of devices has dedicated hardware accelerators. CC23XX devices have one dedicated accelerator whereas CC27XX devices have two (Primary and Secondary). Combined they can perform AES encryption operations with 128-bit, 192-bit and 256-bit keys. Only one operation can be carried out on the accelerator at a time. Mutual exclusion is implemented at the driver level and coordinated between all drivers relying on the accelerator. It is transparent to the application and only noted to ensure sensible access timeouts are set. The GHASH computation for GCM has optimizations using Shoup's 4-bit tables that are precomputed for each hash key H.

Implementation Limitations

Runtime Parameter Validation

The driver implementation does not perform runtime checks for most input parameters. Only values that are likely to have a stochastic element to them are checked (such as whether a driver is already open). Higher input parameter validation coverage is achieved by turning on assertions when compiling the driver.

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <ti/drivers/AESGCM.h>
#include <ti/drivers/cryptoutils/aes/AESCommonLPF3.h>
#include <ti/devices/DeviceFamily.h>
#include <DeviceFamily_constructPath(driverlib/aes.h)>
Include dependency graph for AESGCMLPF3HSM.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AESGCMLPF3HSM_Object
 AESGCMLPF3HSM Object. More...
 

Typedefs

typedef AESCommonLPF3_HWAttrs AESGCMLPF3HSM_HWAttrs
 AESGCMLPF3 Hardware Attributes. More...
 

Functions

int_fast16_t AESGCMLPF3HSM_setMac (AESGCM_Handle handle, const uint8_t *mac, size_t macLength)
 Function to set the mac for an AES CCM segmented operation. This API needs to be called only when the subsequent AESGCM_addData() operation is processing all of the remaining data in a single call. More...
 

Typedef Documentation

§ AESGCMLPF3HSM_HWAttrs

AESGCMLPF3 Hardware Attributes.

AESGCMLPF3 hardware attributes should be included in the board file and pointed to by the AESGCM_config struct.

Function Documentation

§ AESGCMLPF3HSM_setMac()

int_fast16_t AESGCMLPF3HSM_setMac ( AESGCM_Handle  handle,
const uint8_t *  mac,
size_t  macLength 
)

Function to set the mac for an AES CCM segmented operation. This API needs to be called only when the subsequent AESGCM_addData() operation is processing all of the remaining data in a single call.

Note
This API is only concerned with segmented decryption operations.
Precondition
AESGCM_setupDecrypt(), AESGCM_setLengths(), or AESGCM_addAAD()
Parameters
[in]handleA CCM handle returned from AESGCM_open() or AESGCM_construct()
[in]macPointer to the buffer containing the mac
[in]macLengthThe length of the mac in bytes
Return values
AESGCM_STATUS_SUCCESSThe operation succeeded.
AESGCM_STATUS_ERRORThe operation failed.
AESGCM_STATUS_FEATURE_NOT_SUPPORTEDThe operation is not supported in this device.
Postcondition
AESGCM_addData()
© Copyright 1995-2024, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale