mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Do not check incremental MAC in Glide.
This commit is contained in:
committed by
Alex Hart
parent
81e928f94e
commit
5ed4c51582
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user