Home >

Utilities Reference Guide > CKdemo > The KEY menu functions

The KEY Menu Functions

The KEY menu provides the following functions:

60) Wrap Key

This option allows you to encrypt a key. You must provide the encryption mechanism type, the handle of the wrapping key (used to encrypt the key), and the handle of the key to be wrapped (the one that is going to be encrypted). Currently, the wrapping of private asymmetric keys is not supported.

61) Unwrap Key

This option allows you to import a wrapped (encrypted) key into the token. You are asked for the mechanism to be used for the unwrapping operation as well as what type of key is being unwrapped. Depending on the type of key being unwrapped, you are asked for some information about the key. Then you must provide a key handle of the token key to be used in the unwrapping (decryption) operation, and finally, give the name of the file containing the wrapped key.

62) Generate Random

Number This option generates a specified amount of random data. You are asked how many bytes of random data to generate and then are presented with the random value.

63) Derive Key

This option allows you to use a key derivation mechanism to derive a key on the token. There are several key derivation mechanisms to choose from, and you are presented with a menu of the choices.

64) PBE Key Generation

This option allows you to perform a "Password Based Encryption" key generation. This option is useful because it allows you to put the same key on multiple tokens without ever knowing the key value itself.

65) Create Known Keys

This option attempts to load a known key onto the token. However, due to policy setting on most tokens, this option is not allowed. As an alternative, it is possible to encrypt a known key and then unwrap it onto the token. See the Unwrap Key sample code on the SDK distribution CD.

66) Seed RNG

Provide a seed value to the HSM's Random Number Generator.

67) EC User Defined Curves

Set the desired attributes and point to a file containing Elliptical Curve parameters for generating EC keys.