SealdAnonymousEncryptionSession_EncryptFileFromPath method

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

Encrypt a clear-text file into an encrypted file, for the recipients of this session.

@param aes The SealdAnonymousEncryptionSession instance. @param clearFilePath The path of the file to encrypt. @param result A pointer to a char pointer where the path of the encrypted 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_EncryptFileFromPath(
  ffi.Pointer<NativeSealdAnonymousEncryptionSession> aes,
  ffi.Pointer<pkg_ffi.Utf8> clearFilePath,
  ffi.Pointer<ffi.Pointer<pkg_ffi.Utf8>> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdAnonymousEncryptionSession_EncryptFileFromPath(
    aes,
    clearFilePath,
    result,
    error,
  );
}