IPP LEGACY LIBRARY
ipp_diag()
M
X
800 SERIES PROGRAMMERS GUIDE 225
ipp_diag()
This function executes various IPP diagnostics. The application can use this
function to check information on the IPP firmware as well as perform 1DES test
encryptions.
Prototype
return = ipp_diag(test_type, result, master_key);
int return, test_type, master_key;
char *result;
Parameters
Return Values
The result buffer will contain the following, according to the test_type
specified:
test_type Type of test that the user wants to perform:
result Pointer to a buffer sufficient enough to hold the results. It must
be at least 17 bytes for tests 0-2 and at least 150 bytes for
tests 3-4.
master_key Master key slot # to use when performing test #3.
DUKPT engine to use when performing test #4.
0 Success
-1 Error
Table 20
Test_type Result buffer
0 Buffer contains checksum
1 Serial number if present
2 Version number
3-4 Refer to the Remarks section of ipp_read().
0 ROM Checksum Test
1 Serial Number Test
2 ROM Version Number Test
3 Master/Session Encryption Test
4 DUKPT Encryption Test