Key Objects (sb_Key, sb_PublicKey, sb_PrivateKey)

A key object contains parameters that constitute a cryptographic key.

Key objects can be created in several ways. To create keys that are randomly generated, call the appropriate KeyGen() function. The corresponding parameters object must have been created with an RNG context. To create keys from supplied values, call the appropriate KeySet() function.

There may be more than one component in a key object. For example, a Triple DES key object contains three keys. An RSA public key object is a combination of a public modulus and a public exponent.

The following are examples of how to retrieve key information from the different key objects: