decryptFileAsync method
Decrypts an encrypted file into the corresponding clear-text file.
encryptedFile
- A Uint8List of the content of the encrypted file to decrypt.
Returns a SealdClearFile instance, containing the decrypted file.
Implementation
Future<SealdClearFile> decryptFileAsync(Uint8List encryptedFile) {
final _TransferablePointer<NativeSealdEncryptionSession> tPtr = _ptr;
return compute(
(Uint8List encryptedFile) =>
SealdEncryptionSession._(tPtr).decryptFile(encryptedFile),
encryptedFile);
}