C API for BALTECH SDK

§ brp_UlRdr_SendEncryptedCmd()

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.

Parameters
[in]protocolused to execute the command
[in]SignatureSignature of the following command.
[in]DevCodeDevice Code of the command to encrypt.
[in]CmdCodeCommand Code of the command to encrypt.
[in]ParamsParams of the command to encrypt.
[in]Params_len
[out]SendDevCodeDevice Code to send.
[out]SendCmdCodeCommand Code to send.
[out]SendParamsParams to send.
[out]SendParams_len
[in]mempoolis 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