Lines Matching defs:plaintextLength
144 size_t CiphertextLength(size_t plaintextLength) const
145 {return plaintextLength <= FixedMaxPlaintextLength() ? FixedCiphertextLength() : 0;}
176 void Encrypt(RandomNumberGenerator &rng, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs ¶meters = g_nullNameValuePairs) const;
938 virtual size_t GetSymmetricKeyLength(size_t plaintextLength) const =0;
939 virtual size_t GetSymmetricCiphertextLength(size_t plaintextLength) const =0;
941 virtual void SymmetricEncrypt(RandomNumberGenerator &rng, const byte *key, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs ¶meters) const =0;
1162 size_t CiphertextLength(size_t plaintextLength) const
1164 size_t len = GetSymmetricEncryptionAlgorithm().GetSymmetricCiphertextLength(plaintextLength);
1220 void Encrypt(RandomNumberGenerator &rng, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs ¶meters = g_nullNameValuePairs) const
1236 SecByteBlock derivedKey(encAlg.GetSymmetricKeyLength(plaintextLength));
1239 encAlg.SymmetricEncrypt(rng, derivedKey, plaintext, plaintextLength, ciphertext, parameters);