SealdTmrRecipientsWithRightsArray_Get method

void SealdTmrRecipientsWithRightsArray_Get(
  1. Pointer<NativeSealdTmrRecipientsWithRightsArray> 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,
)

SealdTmrRecipientsWithRightsArray_Get returns the TMR recipient and its associated rights at position i. The caller is responsible for calling free on the returned char** when no longer necessary.

@param array The SealdTmrRecipientsWithRightsArray from which to retrieve the recipients-rights pair. @param i The position from which we want to retrieve the recipients-rights pair. @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. @param recipientRightRead A pointer to which to write the read right value at position i. @param recipientRightForward A pointer to which to write the forward right value at position i. @param recipientRightRevoke A pointer to which to write the revoke right value at position i.

Implementation

void SealdTmrRecipientsWithRightsArray_Get(
  ffi.Pointer<NativeSealdTmrRecipientsWithRightsArray> 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 _SealdTmrRecipientsWithRightsArray_Get(
    array,
    i,
    authFactorType,
    authFactorValue,
    overEncryptionKey,
    overEncryptionKeyLen,
    recipientRightRead,
    recipientRightForward,
    recipientRightRevoke,
  );
}