Fix desktop compatibility issue

This commit is contained in:
Niels Andriesse 2020-12-10 09:22:45 +11:00
parent d3f0ed81f7
commit 0ce74e9a8e
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}