nn::crypto::RsaKey

nn::crypto::RsaKey Class

Syntax

class RsaKey

Description

The RSA key class.

You can instantiate this class by setting the DER format and each parameter for the RSA key.

Member Functions

InitializeKey Initializes by entering each parameter for the RSA key.
InitializePrivateKey Initializes RSA keys as private keys.
InitializePublicKey Initializes RSA keys as public keys.
Finalize Finalizes RSA keys. You can re-initialize after making this function call.
GetKeyLength Returns the length of the RSA key.
IsPrivate Returns whether the RSA key is a private key.
GetModulus Returns the modulus of the RSA key.
GetExp Returns the exponent of the RSA key.

Revision History

2010/02/09
Initial version.

CONFIDENTIAL