Common Data Security Architecture (CDSA) White Paper

How to Create a CDSA Add-In Module for HP-UX

/* k points to behind the meta-inf, the 2nd to last ‘/’ */

/* Now change the extension to .1 */

Name->value[i+1] = ‘1’;

Name->value[i+2] = ‘\0’;

/* And move the lib name over the meta-inf which isn’t needed anymore */

k++;

j++;

while ( Name->value[j] != ‘\0’ )

{

Name->value[k] = Name->value[j]; j++;k++;

}

Name->value[k] = ‘\0’;

Name->length = strlen((char *)&Name->value[0]); return;

}

ISL_RetrieveSelfCheckKey This function returns the public key of the entity that signed the add-in credential.

To make this function, the add-in provider needs to ask HP to:create a DSA public/private key pair for the add-in providerembed the public key in the function whose prototype is shown below.The private key will be used in the signing process to create a credential file.

void ISL_RetrieveSelfCheckKey(struct data *Name)

{

const unsigned char Key[] = { 0x,......,0x };

Chapter 1

59