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

PublicBlumBlumShub Class Reference

BlumBlumShub without factorization of the modulus. More...

#include <blumshub.h>

Inheritance diagram for PublicBlumBlumShub:

RandomNumberGenerator StreamCipher BlumBlumShub List of all members.

Public Methods

 PublicBlumBlumShub (const Integer &n,const Integer &seed)
unsigned int GenerateBit ()
 generate new random bit and return it. More...

byte GenerateByte ()
 generate new random byte and return it. More...

byte ProcessByte (byte input)
 encrypt or decrypt one byte. More...


Protected Attributes

const ModularArithmetic modn
const int maxBits
Integer current
int bitsLeft

Friends

class  BlumGoldwasserPublicKey
class  BlumGoldwasserPrivateKey

Detailed Description

BlumBlumShub without factorization of the modulus.

Definition at line 13 of file blumshub.h.


Constructor & Destructor Documentation

PublicBlumBlumShub::PublicBlumBlumShub ( const Integer & n,
const Integer & seed )
 

Definition at line 8 of file blumshub.cpp.


Member Function Documentation

unsigned int PublicBlumBlumShub::GenerateBit ( ) [virtual]
 

generate new random bit and return it.

Default implementation is to call GenerateByte() and return its parity.

Reimplemented from RandomNumberGenerator.

Definition at line 16 of file blumshub.cpp.

byte PublicBlumBlumShub::GenerateByte ( ) [virtual]
 

generate new random byte and return it.

Reimplemented from RandomNumberGenerator.

Definition at line 27 of file blumshub.cpp.

byte PublicBlumBlumShub::ProcessByte ( byte input ) [inline, virtual]
 

encrypt or decrypt one byte.

Reimplemented from StreamCipher.

Definition at line 22 of file blumshub.h.


Friends And Related Function Documentation

class BlumGoldwasserPrivateKey [friend]
 

Definition at line 32 of file blumshub.h.

class BlumGoldwasserPublicKey [friend]
 

Definition at line 31 of file blumshub.h.


Member Data Documentation

int PublicBlumBlumShub::bitsLeft [protected]
 

Definition at line 29 of file blumshub.h.

Integer PublicBlumBlumShub::current [protected]
 

Definition at line 28 of file blumshub.h.

const int PublicBlumBlumShub::maxBits [protected]
 

Definition at line 27 of file blumshub.h.

const ModularArithmetic PublicBlumBlumShub::modn [protected]
 

Definition at line 26 of file blumshub.h.


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