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:
To export a key from an IDLC sb_PrivateKey or sb_PublicKey object, call hu_IDLCKeyGet().
To export a key from an ECC sb_PrivateKey or sb_PublicKey object, call hu_ECCKeyGet().
To retrieve an AES key from an sb_Key, call hu_AESKeyGet().