SealdEncryptionSession_EncryptMessage method

int SealdEncryptionSession_EncryptMessage(
  1. Pointer<NativeSealdEncryptionSession> es,
  2. Pointer<Utf8> clearMessage,
  3. Pointer<Pointer<Utf8>> result,
  4. Pointer<Pointer<NativeSealdError>> error,
)

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

@param es The SealdEncryptionSession instance. @param clearMessage The message to encrypt. @param result A pointer to which to write the resulting encrypted 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 SealdEncryptionSession_EncryptMessage(
  ffi.Pointer<NativeSealdEncryptionSession> es,
  ffi.Pointer<pkg_ffi.Utf8> clearMessage,
  ffi.Pointer<ffi.Pointer<pkg_ffi.Utf8>> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdEncryptionSession_EncryptMessage(
    es,
    clearMessage,
    result,
    error,
  );
}