SealdEncryptionSession_AddTmrAccess method
Add a TMR access to this session for the given authentication factor.
@param es The SealdEncryptionSession instance.
@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 result A pointer to a *char which to write the response.
@param error A pointer to a SealdError* where details will be stored in case of error.
@return
Implementation
int SealdEncryptionSession_AddTmrAccess(
ffi.Pointer<NativeSealdEncryptionSession> es,
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,
ffi.Pointer<ffi.Pointer<pkg_ffi.Utf8>> result,
ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
return _SealdEncryptionSession_AddTmrAccess(
es,
authFactorType,
authFactorValue,
overEncryptionKey,
overEncryptionKeyLen,
readRight,
forwardRight,
revokeRight,
result,
error,
);
}