BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_UlRdr_SendEncryptedCmd | ( | brp_protocol | protocol, |
brp_buf | Signature, | ||
unsigned | DevCode, | ||
unsigned | CmdCode, | ||
brp_buf | Params, | ||
size_t | Params_len, | ||
unsigned * | SendDevCode, | ||
unsigned * | SendCmdCode, | ||
brp_buf * | SendParams, | ||
size_t * | SendParams_len, | ||
brp_mempool * | mempool | ||
) |
Encrypts the given command with the session key generated in the previous 3-pass-authentication.
Before doing so, the signature is checked.
[in] | protocol | used to execute the command |
[in] | Signature | Signature of the following command. |
[in] | DevCode | Device Code of the command to encrypt. |
[in] | CmdCode | Command Code of the command to encrypt. |
[in] | Params | Params of the command to encrypt. |
[in] | Params_len | |
[out] | SendDevCode | Device Code to send. |
[out] | SendCmdCode | Command Code to send. |
[out] | SendParams | Params to send. |
[out] | SendParams_len | |
[in] | mempool | is used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool |