SealdAnonymousTmrRecipientsArray_Get method

void SealdAnonymousTmrRecipientsArray_Get(
  1. Pointer<NativeSealdAnonymousTmrRecipientsArray> array,
  2. int i,
  3. Pointer<Pointer<Utf8>> authFactorType,
  4. Pointer<Pointer<Utf8>> authFactorValue,
  5. Pointer<Pointer<Uint8>> overEncryptionKey,
  6. Pointer<Int> overEncryptionKeyLen,
  7. Pointer<Int> recipientRightRead,
  8. Pointer<Int> recipientRightForward,
  9. Pointer<Int> recipientRightRevoke,
)

SealdAnonymousTmrRecipientsArray_Get returns the TMR recipient at position i. The caller is responsible for calling free on the returned char** when no longer necessary.

@param array The SealdAnonymousTmrRecipientsArray from which to retrieve the recipient. @param i The position from which we want to retrieve the recipient. @param authFactorType A pointer to which to write the recipient authentication factor type at position i. @param authFactorValue A pointer to which to write the recipient authentication factor value at position i. @param overEncryptionKey The TMR over-encryption key. This MUST be a cryptographically random buffer of 64 bytes. @param overEncryptionKeyLen The length of overEncryptionKey.

Implementation

void SealdAnonymousTmrRecipientsArray_Get(
  ffi.Pointer<NativeSealdAnonymousTmrRecipientsArray> array,
  int i,
  ffi.Pointer<ffi.Pointer<pkg_ffi.Utf8>> authFactorType,
  ffi.Pointer<ffi.Pointer<pkg_ffi.Utf8>> authFactorValue,
  ffi.Pointer<ffi.Pointer<ffi.Uint8>> overEncryptionKey,
  ffi.Pointer<ffi.Int> overEncryptionKeyLen,
  ffi.Pointer<ffi.Int> recipientRightRead,
  ffi.Pointer<ffi.Int> recipientRightForward,
  ffi.Pointer<ffi.Int> recipientRightRevoke,
) {
  return _SealdAnonymousTmrRecipientsArray_Get(
    array,
    i,
    authFactorType,
    authFactorValue,
    overEncryptionKey,
    overEncryptionKeyLen,
    recipientRightRead,
    recipientRightForward,
    recipientRightRevoke,
  );
}