Encrypts the given command with the session key generated in the previous 3-pass-authentication. Before doing so, the signature is checked.
- Parameters
-
[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 |