![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 111](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827111.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
111 of 1441
NXP Semiconductors
UM10503
Chapter 8: LPC43Sxx Security API
8.4.1.1 AES ROM driver variables
The parameter channel_id is a combination of channel selection and DMA mux
configuration and is defined as follows:
Bits[2:0]: Destination channel number (0 to 7).
Bits[11:8]: Destination peripheral control number (select 2 or 14. These are the AES out
request lines).
Bits[13:12]: Destination DMA mux selection (use 3 if destination peripheral control
number is 2, use 1 if destination peripheral control number is 14).
Bits[18:16]: Source channel number (0 to 7).
Bits[27:24]: Source peripheral control number (select 1 or 13, these are the AES in
request lines).
Bits[29:28]: Source DMA mux selection (use 3 if destination peripheral control number is
1, use 1 if destination peripheral control number is 13).
Remark:
Selecting the AES input and output DMA request lines in the channel_id
structure configures the DMAMUX register (see
) in the CREG block for
AES.
aes_Config_DMA
0x2C
Checks for valid AES configuration of the chip and setup DMA channel to
process an AES data block.
Parameter: unsigned channel_id
Return - unsigned:
AES_API_ERROR_NOT_SUPPORTED
AES_API_ERROR_DMA_CHANNEL_CFG
AES_API_ERROR_DMA_MUX_CFG
AES_API_NO_ERROR
aes_Operate_DMA
0x30
Checks for valid AES configuration of the chip and enables DMA channel to
process an AES data block.
Parameter1: unsigned channel_id.
Parameter2: unsigned char *dataOutAddr (16 x size of consecutive bytes)
Parameter3: unsigned char *dataInAddr (16 x size of consecutive bytes)
Parameter4: unsigned size (number of 128 bit AES blocks)
Return – unsigned:
AES_API_ERROR_NOT_SUPPORTED
AES_API_NO_ERROR
aes_Get_Status_DMA
0x34
Read status of DMA channels that process an AES data block.
Parameter: channel_id.
Return – unsigned:
AES_API_NO_ERROR
AES_API_DMA_BUSY
Table 76.
AES API calls
Function
Offset relative to
the API entry
point
Description