![NXP Semiconductors LCP43 Series User Manual Download Page 48](http://html1.mh-extra.com/html/nxp-semiconductors/lcp43-series/lcp43-series_user-manual_1721817048.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
48 of 1269
NXP Semiconductors
UM10503
Chapter 6: LPC43xx Security API
Table 23.
Security API calls
Function
Offset relative to
the API entry
point
Description
aes_Init
0x00
Initialize AES engine
Parameter - void
Return - void
aes_SetMode
0x04
Defines AES engine operation mode
Parameter: unsigned cmd with values:
0 - ECB encode AES_API_CMD_ENCODE_ECB (if the
parts are not configured for encryption, using
aes_SetMode with this parameter returns an error)
1 - ECB decode AES_API_CMD_DECODE_ECB
2 - CBC encode AES_API_CMD_ENCODE_CBC (if the
parts are not configured for encryption, using
aes_SetMode with this parameter returns an error)
3 - CBC decode AES_API_CMD_DECODE_CBC
Return - unsigned: see general error codes.
aes_LoadKey1
0x08
Loads 128-bit AES user key 1
Parameter - void
Return - void
aes_LoadKey2
0x0C
Loads 128-bit AES user key 2
Parameter - void
Return - void
aes_LoadKeyRNG
0x10
Loads randomly generated key in AES engine. To
update the RNG and load a new random number, use
the API call otp_GenRand before aes_LoadKeyRNG.
Parameter - void
Return - void
aes_LoadKeySW
0x14
Loads 128-bit AES software defined user key
Parameter - unsigned char *key(16 bytes)
Return - void
aes_LoadIV_SW
0x18
Loads 128-bit AES initialization vector
Parameter - unsigned char *iv(16 bytes)
Return - void
aes_LoadIV_IC
0x1C
Loads 128-bit AES IC specific initialization vector, which
is used to decrypt a boot image.
Parameter - void
Return - void