Aes() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

D
D
EVICE
RIVERS

AES()

AES()
86
M
X
800 S
P
ERIES
ROGRAMMERS
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
Algorithm
ucAesOption
AES128E (04h)
AES128D (05h)
AES192E (06h)
AES192D (07h)
AES256E (08h)
AES256D (09h)
Pointer to 8N-byte key block (N=1, 2 or 3)
pucAesKey8N
Pointer to 16-byte input block
pucInputData
Pointer to 16-byte output block
pucOutputData
Return Values
0
Successful execution
Less than 0
Error
G
UIDE
AES encryption using a 128-bit key
AES decryption using a 128-bit key
AES encryption using a 192-bit key
AES decryption using a 192-bit key
AES encryption using a 256-bit key
AES decryption using a 256-bit key

Advertisement

Table of Contents
loading

Table of Contents