Do not check incremental MAC in Glide.

This commit is contained in:
Nicholas Tinsley
2023-10-11 15:06:02 -04:00
committed by Alex Hart
parent 81e928f94e
commit 5ed4c51582
3 changed files with 6 additions and 7 deletions

View File

@@ -53,6 +53,9 @@ public class AttachmentCipherInputStream extends FilterInputStream {
private long totalRead;
private byte[] overflowBuffer;
/**
* Passing in a null incrementalDigest and/or 0 for the chunk size at the call site disables incremental mac validation.
*/
public static InputStream createForAttachment(File file, long plaintextLength, byte[] combinedKeyMaterial, byte[] digest, byte[] incrementalDigest, int incrementalMacChunkSize)
throws InvalidMessageException, IOException
{