HP-UX AAA Server A.08.02 Administrator's Guide

6. To implement the sample f1x() algorithm, modify the following code in the f1ximpl function:
unsigned int idx;
for ( idx = 0; idx < 8; ++idx )
{
maca[idx] = 0;
}
return SDK_SUCCESS;
On success, the f1x() algorithm returns sdk_success. Otherwise, it returns sdk_failure.
7. To implement the sample f2() algorithm, modify the following code in the f2impl function:
unsigned int idx;
for ( idx = 0; idx < 8; ++idx )
{
res[idx] = 0;
}
return SDK_SUCCESS;
On success, the f2() algorithm returns sdk_success. Otherwise, it returns sdk_failure.
8. To implement the sample f3() algorithm, modify the following code in the f3impl function:
unsigned int idx;
for ( idx = 0; idx < 16; ++idx )
{
ik[idx] = 0;
}
return SDK_SUCCESS;
On success, the f3() algorithm returns sdk_success. Otherwise, it returns sdk_failure.
9. To implement the sample f4() algorithm, modify the following code in the f4impl function:
unsigned int idx;
for ( idx = 0; idx < 16; ++idx )
{
ck[idx] = 0;
}
return 0;
On success, the f4() algorithm returns sdk_success. Otherwise, it returns sdk_failure.
10. To implement the sample f5() algorithm, modify the following code in the f5impl function:
unsigned int idx;
for ( idx = 0; idx < 6; ++idx )
{
ak[idx] = 0;
}
return SDK_SUCCESS;
On success, the f5() algorithm returns sdk_success. Otherwise, it returns sdk_failure.
11. To implement the sample f5x() algorithm, modify the following code in the f5ximpl function:
unsigned int idx;
for ( idx = 0; idx < 6; ++idx )
{
ak[idx] = 0;
}
return SDK_SUCCESS;
On success, the f5x() algorithm returns sdk_success. Otherwise, it returns sdk_failure.
338 Customizing the HP-UX AAA Server Using the SDK