SealdAnonymousEncryptionSession_DecryptMessage method

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

Decrypt an encrypted message string into the corresponding clear-text string.

@param aes The SealdAnonymousEncryptionSession instance. @param encryptedMessage The encrypted message to decrypt. @param result A pointer to which to write the resulting decrypted message. @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_DecryptMessage(
  ffi.Pointer<NativeSealdAnonymousEncryptionSession> aes,
  ffi.Pointer<pkg_ffi.Utf8> encryptedMessage,
  ffi.Pointer<ffi.Pointer<pkg_ffi.Utf8>> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdAnonymousEncryptionSession_DecryptMessage(
    aes,
    encryptedMessage,
    result,
    error,
  );
}