Sample1.c

This sample shows how to generate 2 types of keys using KMLIB. These are:

>A DES3 secret key

>An RSA key pair

The following assumptions are made:

>slot 1 already exists in the HSM

>the SO and user pin are set to 9999 for slot 1

Use either the ctbrowse utility or the following ctkmu utility command to check that the tokens have been created.

ctkmu l -s1

Documentation for the utilities can be found in the following manuals if required.

ctbrowse: ProtectToolkit-C Administration Guide

ctkmu: ProtectToolkit-C Programming Guide