Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

LUCELG_Encryptor Class Reference

. More...

#include <luc.h>

Inheritance diagram for LUCELG_Encryptor:

PK_FixedLengthEncryptor PK_Encryptor PK_FixedLengthCryptoSystem PK_CryptoSystem PK_CryptoSystem LUCELG_Decryptor List of all members.

Public Methods

 LUCELG_Encryptor (const Integer &p,const Integer &g,const Integer &y)
 LUCELG_Encryptor (BufferedTransformation &bt)
void DEREncode (BufferedTransformation &bt)const
void Encrypt (RandomNumberGenerator &rng,const byte *plainText,unsigned int plainTextLength,byte *cipherText)
 encrypt a byte string. More...

unsigned int MaxPlainTextLength ()const
unsigned int CipherTextLength ()const
const IntegerGetPrime ()const
const IntegerGetGenerator ()const
const IntegerGetPublicResidue ()const

Protected Methods

 LUCELG_Encryptor ()
void RawEncrypt (const Integer &k,const Integer &m,Integer &a,Integer &b)const
unsigned int ExponentBitLength ()const

Protected Attributes

Integer p
Integer g
Integer y
unsigned int modulusLen

Detailed Description

.

Definition at line 98 of file luc.h.


Constructor & Destructor Documentation

LUCELG_Encryptor::LUCELG_Encryptor ( const Integer & p,
const Integer & g,
const Integer & y )
 

Definition at line 114 of file luc.cpp.

LUCELG_Encryptor::LUCELG_Encryptor ( BufferedTransformation & bt )
 

Definition at line 119 of file luc.cpp.

LUCELG_Encryptor::LUCELG_Encryptor ( ) [inline, protected]
 

Definition at line 116 of file luc.h.


Member Function Documentation

unsigned int LUCELG_Encryptor::CipherTextLength ( ) const [inline, virtual]
 

Reimplemented from PK_FixedLengthCryptoSystem.

Definition at line 109 of file luc.h.

void LUCELG_Encryptor::DEREncode ( BufferedTransformation & bt ) const
 

Definition at line 129 of file luc.cpp.

void LUCELG_Encryptor::Encrypt ( RandomNumberGenerator & rng,
const byte * plainText,
unsigned int plainTextLength,
byte * cipherText ) [virtual]
 

encrypt a byte string.

Preconditions: \begin{itemize} \item CipherTextLength(plainTextLength) != 0 (i.e., plainText isn't too long) \item size of cipherText == CipherTextLength(plainTextLength) \end{itemize}

Reimplemented from PK_Encryptor.

Definition at line 138 of file luc.cpp.

unsigned int LUCELG_Encryptor::ExponentBitLength ( ) const [protected]
 

Definition at line 161 of file luc.cpp.

const Integer & LUCELG_Encryptor::GetGenerator ( ) const [inline]
 

Definition at line 112 of file luc.h.

const Integer & LUCELG_Encryptor::GetPrime ( ) const [inline]
 

Definition at line 111 of file luc.h.

const Integer & LUCELG_Encryptor::GetPublicResidue ( ) const [inline]
 

Definition at line 113 of file luc.h.

unsigned int LUCELG_Encryptor::MaxPlainTextLength ( ) const [inline, virtual]
 

Reimplemented from PK_FixedLengthCryptoSystem.

Definition at line 108 of file luc.h.

void LUCELG_Encryptor::RawEncrypt ( const Integer & k,
const Integer & m,
Integer & a,
Integer & b ) const [protected]
 

Definition at line 155 of file luc.cpp.


Member Data Documentation

Integer LUCELG_Encryptor::g [protected]
 

Definition at line 120 of file luc.h.

unsigned int LUCELG_Encryptor::modulusLen [protected]
 

Definition at line 121 of file luc.h.

Integer LUCELG_Encryptor::p [protected]
 

Definition at line 120 of file luc.h.

Integer LUCELG_Encryptor::y [protected]
 

Definition at line 120 of file luc.h.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:53 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000