SealdTmrRecipientsWithRightsArray_Add method
SealdTmrRecipientsWithRightsArray_Add adds a tmr recipient with its associated rights to the array. SealdTmrRecipientsWithRightsArray_Add does not take ownership of the given strings and booleans. It creates copies for itself.
@param array The SealdTmrRecipientsWithRightsArray to add the recipients-rights pair 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 readRight The right to read the message. @param forwardRight The right to forward the message to another user. @param revokeRight The right to revoke another user from a message, or to remove rights from them. @param error A pointer to a SealdError* where details will be stored in case of error.
Implementation
void SealdTmrRecipientsWithRightsArray_Add(
ffi.Pointer<NativeSealdTmrRecipientsWithRightsArray> array,
ffi.Pointer<pkg_ffi.Utf8> authFactorType,
ffi.Pointer<pkg_ffi.Utf8> authFactorValue,
ffi.Pointer<ffi.Uint8> overEncryptionKey,
int overEncryptionKeyLen,
int readRight,
int forwardRight,
int revokeRight,
) {
return _SealdTmrRecipientsWithRightsArray_Add(
array,
authFactorType,
authFactorValue,
overEncryptionKey,
overEncryptionKeyLen,
readRight,
forwardRight,
revokeRight,
);
}