I am developing a cloud-based application and have integrated the FileProviderExtension. However, files larger than 20 MB are not downloading as it’s throwing a memory limit exception. In this process, I have downloaded the file data, but after downloading the data, I need to decrypt the data. I am getting a memory limit exception during decryption. I am using the below lines to decrypt the data.
let symmetricKey = SymmetricKey(data: key)
let sealedBox = try AES.GCM.SealedBox(combined: inputData)
let decryptedData = try AES.GCM.open(sealedBox, using: symmetricKey)
I am getting memory limit exception at AES.GCM.open(sealedBox, using: symmetricKey)