| 216 | } |
| 217 | |
| 218 | 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) |
| 219 | { |
| 220 | Resynchronize(iv, ivLength); |
| 221 | SpecifyDataLengths(headerLength, messageLength); |
| 222 | Update(header, headerLength); |
| 223 | ProcessString(ciphertext, message, messageLength); |
| 224 | TruncatedFinal(mac, macSize); |
| 225 | } |
| 226 | |
| 227 | 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) |
| 228 | { |
nothing calls this directly
no test coverage detected