RSAPublic Class Reference
[Math]

RSA public cypher. More...

#include <RSA.h>

Inheritance diagram for RSAPublic:
IMemoryValidate RSA

List of all members.

Public Member Functions

 RSAPublic (int bitSize, BigInteger &mondulus, BigInteger &exponent)
 RSAPublic (int bitSize)
 RSAPublic (const RSAPublic &key)
 RSAPublic (const RSAKey &key, int bitSize)
RSAKeyGetPublicKey ()
int GetBitSize () const
RefCountPtr< Array< byte > > EncryptBinary (Array< byte > &plainText)
RefCountPtr< StringEncryptText (Array< byte > &plainText)
RefCountPtr< StringEncryptText (const String &plainText)
void PadInputBuffer (Array< byte > &plainText) const
virtual void CheckMem () const
virtual void ValidateMem () const

Protected Member Functions

int GetInputBlockSize (bool forEncryption) const
int GetOutputBlockSize (bool forEncryption) const

Protected Attributes

RSAKey m_publicKey
int m_bitSize

Detailed Description

RSA public cypher.

Definition at line 162 of file RSA.h.


Member Function Documentation

int RSAPublic::GetInputBlockSize ( bool  forEncryption  )  const [protected]

Return the maximum size for an input block to this engine. For RSA this is always one byte less than the key size on encryption, and the same length as the key size on decryption.

Returns:
maximum size for an input block.

Definition at line 310 of file RSA.cpp.

int RSAPublic::GetOutputBlockSize ( bool  forEncryption  )  const [protected]

Return the maximum size for an output block to this engine. For RSA this is always one byte less than the key size on decryption, and the same length as the key size on encryption.

Returns:
maximum size for an output block.

Definition at line 340 of file RSA.cpp.


The documentation for this class was generated from the following files: