#include <blumshub.h>
Inheritance diagram for PublicBlumBlumShub:

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 |
Definition at line 13 of file blumshub.h.
|
|
Definition at line 8 of file blumshub.cpp. |
|
|
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. |
|
|
generate new random byte and return it.
Reimplemented from RandomNumberGenerator. Definition at line 27 of file blumshub.cpp. |
|
|
encrypt or decrypt one byte.
Reimplemented from StreamCipher. Definition at line 22 of file blumshub.h. |
|
|
Definition at line 32 of file blumshub.h. |
|
|
Definition at line 31 of file blumshub.h. |
|
|
Definition at line 29 of file blumshub.h. |
|
|
Definition at line 28 of file blumshub.h. |
|
|
Definition at line 27 of file blumshub.h. |
|
|
Definition at line 26 of file blumshub.h. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000