Lines Matching defs:plaintext
1203 for querying their plaintext and ciphertext lengths.
1210 //! maximum length of plaintext for a given ciphertext length
1214 //! calculate length of ciphertext given length of plaintext
1223 /*! \note "Fixed" here means length of ciphertext does not depend on length of plaintext.
1227 //! return maximum plaintext length given the fixed ciphertext length, if one exists, otherwise return 0
1240 //! exception thrown when trying to encrypt plaintext of invalid length
1244 InvalidPlaintextLength() : Exception(OTHER_ERROR, "PK_Encryptor: invalid plaintext length") {}
1248 /*! \pre CiphertextLength(plaintextLength) != 0 (i.e., plaintext isn't too long)
1252 const byte *plaintext, size_t plaintextLength,
1268 //! decrypt a byte string, and return the length of plaintext
1269 /*! \pre size of plaintext == MaxPlaintextLength(ciphertextLength) bytes.
1270 \return the actual length of the plaintext, indication that decryption failed.
1274 byte *plaintext, const NameValuePairs ¶meters = g_nullNameValuePairs) const =0;
1283 DecodingResult FixedLengthDecrypt(RandomNumberGenerator &rng, const byte *ciphertext, byte *plaintext, const NameValuePairs ¶meters = g_nullNameValuePairs) const
1284 {return Decrypt(rng, ciphertext, FixedCiphertextLength(), plaintext, parameters);}