SealdAnonymousEncryptionSession_DecryptFileFromPath method

int SealdAnonymousEncryptionSession_DecryptFileFromPath(
  1. Pointer<NativeSealdAnonymousEncryptionSession> aes,
  2. Pointer<Utf8> encryptedFilePath,
  3. Pointer<Pointer<Utf8>> result,
  4. Pointer<Pointer<NativeSealdError>> error,
)

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,
  );
}