SealdAnonymousTmrRecipientsArray_Add method

void SealdAnonymousTmrRecipientsArray_Add(
  1. Pointer<NativeSealdAnonymousTmrRecipientsArray> array,
  2. Pointer<Utf8> authFactorType,
  3. Pointer<Utf8> authFactorValue,
  4. Pointer<Uint8> overEncryptionKey,
  5. int overEncryptionKeyLen,
)

SealdAnonymousTmrRecipientsArray_Add adds a tmr recipient to the array. SealdAnonymousTmrRecipientsArray_Add does not take ownership of the given strings and booleans. It creates copies for itself.

@param array The SealdAnonymousTmrRecipientsArray to add the recipients to. @param authFactorType The type of authentication factor. 'EM' or 'SMS' @param authFactorValue The value of authentication factor. @param overEncryptionKey The TMR over-encryption key. This MUST be a cryptographically random buffer of 64 bytes. @param overEncryptionKeyLen The length of overEncryptionKey. @param error A pointer to a SealdError* where details will be stored in case of error.

Implementation

void SealdAnonymousTmrRecipientsArray_Add(
  ffi.Pointer<NativeSealdAnonymousTmrRecipientsArray> array,
  ffi.Pointer<pkg_ffi.Utf8> authFactorType,
  ffi.Pointer<pkg_ffi.Utf8> authFactorValue,
  ffi.Pointer<ffi.Uint8> overEncryptionKey,
  int overEncryptionKeyLen,
) {
  return _SealdAnonymousTmrRecipientsArray_Add(
    array,
    authFactorType,
    authFactorValue,
    overEncryptionKey,
    overEncryptionKeyLen,
  );
}