Lines Matching refs:headerLength
197 void AuthenticatedSymmetricCipher::SpecifyDataLengths(lword headerLength, lword messageLength, lword footerLength)
199 if (headerLength > MaxHeaderLength())
200 throw InvalidArgument(GetAlgorithm().AlgorithmName() + ": header length " + IntToString(headerLength) + " exceeds the maximum of " + IntToString(MaxHeaderLength()));
208 UncheckedSpecifyDataLengths(headerLength, messageLength, footerLength);
211 void AuthenticatedSymmetricCipher::EncryptAndAuthenticate(byte *ciphertext, byte *mac, size_t macSize, const byte *iv, int ivLength, const byte *header, size_t headerLength, const byte *message, size_t messageLength)
214 SpecifyDataLengths(headerLength, messageLength);
215 Update(header, headerLength);
220 bool AuthenticatedSymmetricCipher::DecryptAndVerify(byte *message, const byte *mac, size_t macLength, const byte *iv, int ivLength, const byte *header, size_t headerLength, const byte *ciphertext, size_t ciphertextLength)
223 SpecifyDataLengths(headerLength, ciphertextLength);
224 Update(header, headerLength);