SealdEncryptionSession_DecryptFile method
int
SealdEncryptionSession_DecryptFile(
- Pointer<
NativeSealdEncryptionSession> es, - Pointer<
Uint8> encryptedFile, - int encryptedFileLen,
- Pointer<
Pointer< result,NativeSealdClearFile> > - Pointer<
Pointer< error,NativeSealdError> >
Decrypts an encrypted file into the corresponding clear-text file.
@param es The SealdEncryptionSession instance.
@param encryptedFile An array of bytes of the content of the encrypted file to decrypt.
@param encryptedFileLen The length of encryptedFile.
@param result A pointer to a SealdClearFile* to store the resulting decrypted file.
@param error A pointer to a SealdError* where details will be stored in case of error.
@return Error code: -1 if an error happened, 0 for success.
Implementation
int SealdEncryptionSession_DecryptFile(
ffi.Pointer<NativeSealdEncryptionSession> es,
ffi.Pointer<ffi.Uint8> encryptedFile,
int encryptedFileLen,
ffi.Pointer<ffi.Pointer<NativeSealdClearFile>> result,
ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
return _SealdEncryptionSession_DecryptFile(
es,
encryptedFile,
encryptedFileLen,
result,
error,
);
}