From 0ce74e9a8e20374f9f5db3dd997a4ca43c3881ef Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 10 Dec 2020 09:22:45 +1100 Subject: [PATCH] Fix desktop compatibility issue --- SessionMessagingKit/Utilities/DotNetAPI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SessionMessagingKit/Utilities/DotNetAPI.swift b/SessionMessagingKit/Utilities/DotNetAPI.swift index e3f154071..93a2d8370 100644 --- a/SessionMessagingKit/Utilities/DotNetAPI.swift +++ b/SessionMessagingKit/Utilities/DotNetAPI.swift @@ -158,7 +158,7 @@ public class DotNetAPI : NSObject { if isEncryptionRequired { var encryptionKey = NSData() var digest = NSData() - guard let encryptedAttachmentData = Cryptography.encryptAttachmentData(unencryptedAttachmentData, shouldPad: true, outKey: &encryptionKey, outDigest: &digest) else { + guard let encryptedAttachmentData = Cryptography.encryptAttachmentData(unencryptedAttachmentData, shouldPad: false, outKey: &encryptionKey, outDigest: &digest) else { SNLog("Couldn't encrypt attachment.") return seal.reject(Error.encryptionFailed) }