DEVICE DRIVERS
AES()
86 M
X
800 SERIES PROGRAMMERS GUIDE
AES()
This function performs AES computations on 128-bit data block. The operation
type and key length are specified using the parameter ucAesOption.
Prototype
int AES (unsigned char ucAesOption,
unsigned char *pucAesKey8N,
unsigned char *pucInputData,
unsigned char *pucOutputData)
Parameters
Return Values
ucAesOption Algorithm
pucAesKey8N Pointer to 8N-byte key block (N=1, 2 or 3)
pucInputData Pointer to 16-byte input block
pucOutputData Pointer to 16-byte output block
0 Successful execution
Less than 0 Error
AES128E (04h) AES encryption using a 128-bit key
AES128D (05h) AES decryption using a 128-bit key
AES192E (06h) AES encryption using a 192-bit key
AES192D (07h) AES decryption using a 192-bit key
AES256E (08h) AES encryption using a 256-bit key
AES256D (09h) AES decryption using a 256-bit key