nn::crypto::RsaContext

nn::crypto::RsaContext Class

Syntax

class RsaContext : public nn::crypto::PublicKeyContextBase

Description

The context class for RSA public key encryption.

Member Functions

Initialize Initializes the RSA context. This function must be called once before using RSA.
Finalize Destroys the RSA context. This function must be called once after using software RSA.
SetKey Sets the key.
SetKeyLength Sets the RSA key length.
GetKeyLength Gets the RSA key length.
Decrypt Decrypts using RSA.
Encrypt Encrypts using RSA.
Sign Creates an RSA-PKCS1-v1.5-SHA256 signature from a character string.
SignSha256 Creates an RSA-PKCS1-v1.5-SHA256 signature from a hash.
Verify Verifies an RSA-PKCS1-v1.5-SHA256 signature from a character string.
VerifySha256 Verifies an RSA-PKCS1-v1.5-SHA256 signature from a hash.
VerifySha1 Verifies an RSA-PKCS1-v1.5-SHA1 signature from a hash.

Class Hierarchy

nn::crypto::PublicKeyContextBase
  nn::crypto::RsaContext

Revision History

2011/10/27
Initial version.

CONFIDENTIAL