Lines Matching defs:plaintextLength
424 size_t GetSymmetricKeyLength(size_t plaintextLength) const
425 {return plaintextLength + MAC::DEFAULT_KEYLENGTH;}
426 size_t GetSymmetricCiphertextLength(size_t plaintextLength) const
427 {return plaintextLength + MAC::DIGESTSIZE;}
430 void SymmetricEncrypt(RandomNumberGenerator &rng, const byte *key, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs ¶meters) const
441 macKey = key + plaintextLength;
447 xorbuf(ciphertext, plaintext, cipherKey, plaintextLength);
449 mac.Update(ciphertext, plaintextLength);
457 mac.Final(ciphertext + plaintextLength);
461 size_t plaintextLength = GetMaxSymmetricPlaintextLength(ciphertextLength);
471 macKey = key + plaintextLength;
478 mac.Update(ciphertext, plaintextLength);
486 if (!mac.Verify(ciphertext + plaintextLength))
489 xorbuf(plaintext, ciphertext, cipherKey, plaintextLength);
490 return DecodingResult(plaintextLength);