SealdTmrRecipientsWithRightsArray_Get method
- Pointer<
NativeSealdTmrRecipientsWithRightsArray> array, - int i,
- Pointer<
Pointer< authFactorType,Utf8> > - Pointer<
Pointer< authFactorValue,Utf8> > - Pointer<
Pointer< overEncryptionKey,Uint8> > - Pointer<
Int> overEncryptionKeyLen, - Pointer<
Int> recipientRightRead, - Pointer<
Int> recipientRightForward, - 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,
);
}