Compare commits

...

2 Commits

Author SHA1 Message Date
Alex Hart
d19c5085ce Bump version to 6.35.4 2023-10-11 15:24:41 -03:00
Nicholas
4f20b35dfa Disable incremental MAC generation. 2023-10-11 14:20:30 -04:00
2 changed files with 8 additions and 7 deletions

View File

@@ -34,14 +34,14 @@ ktlint {
}
def canonicalVersionCode = 1341
def canonicalVersionName = "6.35.3"
def canonicalVersionName = "6.35.4"
def postFixSize = 100
def abiPostFix = ['universal' : 0,
'armeabi-v7a' : 1,
'arm64-v8a' : 2,
'x86' : 3,
'x86_64' : 4]
def abiPostFix = ['universal' : 5,
'armeabi-v7a' : 6,
'arm64-v8a' : 7,
'x86' : 8,
'x86_64' : 9]
def keystores = [ 'debug' : loadKeystoreProperties('keystore.debug.properties') ]

View File

@@ -41,7 +41,7 @@ class DigestingRequestBody(
override fun writeTo(sink: BufferedSink) {
val digestStream = ByteArrayOutputStream()
val inner = SkippingOutputStream(contentStart, sink.outputStream())
val isIncremental = outputStreamFactory is AttachmentCipherOutputStreamFactory
val isIncremental = outputStreamFactory is AttachmentCipherOutputStreamFactory && INCREMENTAL_MAC_SENDING_ENABLED
val sizeChoice: ChunkSizeChoice = ChunkSizeChoice.inferChunkSize(contentLength.toInt())
val outputStream: DigestingOutputStream = if (isIncremental) {
(outputStreamFactory as AttachmentCipherOutputStreamFactory).createIncrementalFor(inner, contentLength, sizeChoice, digestStream)
@@ -95,5 +95,6 @@ class DigestingRequestBody(
companion object {
const val TAG = "DigestingRequestBody"
const val INCREMENTAL_MAC_SENDING_ENABLED = false
}
}