Ipp_Mac() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

IPP L
L
EGACY
IBRARY

ipp_mac()

ipp_mac()
222
M
X
800 S
P
ERIES
ROGRAMMERS
This function performs a MAC calculation on the user data and returns the
resultant value.
Prototype
return = ipp_mac(master_key, working_key, second_key, message,
message_length, result);
int return;
unsigned int message_length;
char master_key, second_key, *working_key, *message, *result;
Parameters
ASCII "0...9" selects master key number
master_key
working_key
1DES Mode
3DES Mode
ASCII "0...9" selects second key number
second_key
message to calculate MAC on
message
max 3200, number of characters in message
message_length
buffer pointer to contain the resultant MAC value
result
Return Values
1
Successful
-1
Master Key Pointer Error
-2
Second Key Pointer Error
-3
Message length too large
-4
Wrong Block Size
-5
Communication Error
G
UIDE
16 characters, null terminated
20 characters, null terminated GISKE data
block

Advertisement

Table of Contents
loading

Table of Contents