Lines Matching defs:ciphertext
59 string RSADecryptString(const char *privFilename, const char *ciphertext);
69 string DecryptString(const char *ciphertext, const char *passPhrase);
177 string ciphertext = RSAEncryptString(pubFilename, seed, message);
178 cout << "\nCiphertext: " << ciphertext << endl;
180 string decrypted = RSADecryptString(privFilename, ciphertext.c_str());
268 string ciphertext = EncryptString(plaintext, passPhrase);
269 cout << "\nCiphertext: " << ciphertext << endl;
271 string decrypted = DecryptString(ciphertext.c_str(), passPhrase);
417 string RSADecryptString(const char *privFilename, const char *ciphertext)
423 StringSource(ciphertext, true, new HexDecoder(new PK_DecryptorFilter(GlobalRNG(), priv, new StringSink(result))));