#include <blumgold.h>
Inheritance diagram for BlumGoldwasserPublicKey:

Public Methods | |
| BlumGoldwasserPublicKey (const Integer &n) | |
| BlumGoldwasserPublicKey (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 (unsigned int cipherTextLength)const |
| maximum length of plaintext for a given ciphertext length. More... | |
| unsigned int | CipherTextLength (unsigned int plainTextLength)const |
| calculate length of ciphertext given length of plaintext. More... | |
Protected Methods | |
| BlumGoldwasserPublicKey () | |
Protected Attributes | |
| Integer | n |
| unsigned int | modulusLen |
Definition at line 13 of file blumgold.h.
|
|
Definition at line 11 of file blumgold.cpp. |
|
|
Definition at line 16 of file blumgold.cpp. |
|
|
Definition at line 29 of file blumgold.h. |
|
|
calculate length of ciphertext given length of plaintext.
Reimplemented from PK_CryptoSystem. Definition at line 36 of file blumgold.cpp. |
|
|
Definition at line 24 of file blumgold.cpp. |
|
|
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 41 of file blumgold.cpp. |
|
|
maximum length of plaintext for a given ciphertext length.
Reimplemented from PK_CryptoSystem. Definition at line 31 of file blumgold.cpp. |
|
|
Definition at line 32 of file blumgold.h. |
|
|
Definition at line 31 of file blumgold.h. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000