IPP LEGACY LIBRARY
ipp_mac()
222 M
X
800 SERIES PROGRAMMERS GUIDE
ipp_mac()
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
Return Values
master_key ASCII "0...9" selects master key number
working_key
second_key ASCII "0...9" selects second key number
message message to calculate MAC on
message_length max 3200, number of characters in message
result buffer pointer to contain the resultant MAC value
1 Successful
-1 Master Key Pointer Error
-2 Second Key Pointer Error
-3 Message length too large
-4 Wrong Block Size
-5 Communication Error
1DES Mode 16 characters, null terminated
3DES Mode 20 characters, null terminated GISKE data
block