Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <pubkey.h>
Public Member Functions | |
virtual | ~TF_EncryptorBase () |
void | Encrypt (RandomNumberGenerator &rng, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs ¶meters=g_nullNameValuePairs) const |
Encrypt a byte string. More... | |
Public Member Functions inherited from TF_CryptoSystemBase< PK_Encryptor, TF_Base< RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod > > | |
virtual | ~TF_CryptoSystemBase () |
bool | ParameterSupported (const char *name) const |
size_t | FixedMaxPlaintextLength () const |
size_t | FixedCiphertextLength () const |
Public Member Functions inherited from PK_FixedLengthCryptoSystemImpl< PK_Encryptor > | |
virtual | ~PK_FixedLengthCryptoSystemImpl () |
size_t | MaxPlaintextLength (size_t ciphertextLength) const |
size_t | CiphertextLength (size_t plaintextLength) const |
Public Member Functions inherited from PK_Encryptor | |
virtual BufferedTransformation * | CreateEncryptionFilter (RandomNumberGenerator &rng, BufferedTransformation *attachment=NULL, const NameValuePairs ¶meters=g_nullNameValuePairs) const |
Create a new encryption filter. More... | |
Public Member Functions inherited from PK_CryptoSystem | |
virtual | ~PK_CryptoSystem () |
Public Member Functions inherited from PublicKeyAlgorithm | |
virtual | ~PublicKeyAlgorithm () |
CryptoMaterial & | AccessMaterial () |
Retrieves a reference to a Public Key. More... | |
const CryptoMaterial & | GetMaterial () const |
Retrieves a reference to a Public Key. More... | |
virtual PublicKey & | AccessPublicKey ()=0 |
Retrieves a reference to a Public Key. More... | |
virtual const PublicKey & | GetPublicKey () const |
Retrieves a reference to a Public Key. More... | |
Public Member Functions inherited from AsymmetricAlgorithm | |
virtual | ~AsymmetricAlgorithm () |
void | BERDecode (BufferedTransformation &bt) |
Loads this object from a BufferedTransformation. More... | |
void | DEREncode (BufferedTransformation &bt) const |
Saves this object to a BufferedTransformation. More... | |
Public Member Functions inherited from Algorithm | |
virtual | ~Algorithm () |
Algorithm (bool checkSelfTestStatus=true) | |
Interface for all crypto algorithms. More... | |
virtual std::string | AlgorithmName () const |
Provides the name of this algorithm. More... | |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable () |
virtual Clonable * | Clone () const |
Copies this object. More... | |
Additional Inherited Members | |
Protected Types inherited from TF_Base< RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod > | |
typedef RandomizedTrapdoorFunction | TrapdoorFunctionInterface |
typedef PK_EncryptionMessageEncodingMethod | MessageEncodingInterface |
Protected Member Functions inherited from TF_CryptoSystemBase< PK_Encryptor, TF_Base< RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod > > | |
size_t | PaddedBlockByteLength () const |
size_t | PaddedBlockBitLength () const |
Protected Member Functions inherited from TF_Base< RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod > | |
virtual | ~TF_Base () |
virtual const TrapdoorFunctionBounds & | GetTrapdoorFunctionBounds () const =0 |
virtual const TrapdoorFunctionInterface & | GetTrapdoorFunctionInterface () const =0 |
virtual const MessageEncodingInterface & | GetMessageEncodingInterface () const =0 |
|
inlinevirtual |
|
virtual |
Encrypt a byte string.
rng | a RandomNumberGenerator derived class |
plaintext | the plaintext byte buffer |
plaintextLength | the size of the plaintext byte buffer |
ciphertext | a byte buffer to hold the encrypted string |
parameters | a set of NameValuePairs to initialize this object |
CiphertextLength(plaintextLength) != 0
ensures the plaintext isn't too large COUNTOF(ciphertext) == CiphertextLength(plaintextLength)
ensures the output byte buffer is large enough. Implements PK_Encryptor.
Definition at line 153 of file pubkey.cpp.