Des() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

DES()

This function performs DES, DESX and Triple-DES computations. The operation
type and key length are specified using the parameter ucDeaOption.
Prototype
int DES (unsigned char ucDeaOption,
unsigned char *pucDeaKey8N,
unsigned char *pucInputData,
unsigned char *pucOutputData)
Parameters
Algorithm
ucDeaOption
DESX1KE(02h)
DESX1KD(03h)
DESX2KE(04h)
DESX2KD(05h)
DESX3KE(06h)
DESX3KD(07h)
DESE(08h)
DESD(09h)
TDES2KE(0Ch)
TDES2KD(0Dh)
TDES3KE(0Eh)
TDES3KD(0Fh)
Pointer to 8N-byte key block (N=1, 2 or 3)
pucDeaKey8N
Pointer to 8-byte input block
pucInputData
Pointer to 8-byte output block
pucOutputDat
a
Return Values
0
Successful execution
Less than 0
Error
DEAX encryption with single-length key
DEAX encryption with single-length key
DEAX encryption with double-length key
DEAX encryption with double-length key
DEAX encryption with triple-length key
DEAX encryption with triple-length key
DEA encryption with single-length key
DEA encryption with single-length key
TDEA encryption with double-length key
TDEA encryption with double-length key
TDEA encryption with triple-length key
TDEA encryption with triple-length key
X
M
800 S
ERIES
D
D
EVICE
RIVERS
DES()
85
P
G
ROGRAMMERS
UIDE

Advertisement

Table of Contents
loading

Table of Contents