SealdAnonymousEncryptionSession_DecryptFileFromPath method
int
SealdAnonymousEncryptionSession_DecryptFileFromPath(
- Pointer<
NativeSealdAnonymousEncryptionSession> aes, - Pointer<
Utf8> encryptedFilePath, - Pointer<
Pointer< result,Utf8> > - Pointer<
Pointer< error,NativeSealdError> >
Decrypts an encrypted file into the corresponding clear-text file.
@param aes The SealdAnonymousEncryptionSession instance.
@param encryptedFilePath The path of the file to encrypted file to decrypt.
@param result A pointer to a char pointer where the path of the decrypted file will be stored.
@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 SealdAnonymousEncryptionSession_DecryptFileFromPath(
ffi.Pointer<NativeSealdAnonymousEncryptionSession> aes,
ffi.Pointer<pkg_ffi.Utf8> encryptedFilePath,
ffi.Pointer<ffi.Pointer<pkg_ffi.Utf8>> result,
ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
return _SealdAnonymousEncryptionSession_DecryptFileFromPath(
aes,
encryptedFilePath,
result,
error,
);
}