C API for BALTECH SDK

§ brp_DHWCtrl_AesEncrypt()

brp_errcode brp_DHWCtrl_AesEncrypt ( brp_protocol  protocol,
brp_DHWCtrl_AesEncrypt_WrappedKeyNr  WrappedKeyNr,
brp_buf  Block,
size_t  Block_len,
brp_buf  Key,
size_t  Key_len,
brp_buf EncBlock,
size_t *  EncBlock_len,
brp_mempool mempool 
)

Encrypts a block.

Parameters
[in]protocolused to execute the command
[in]WrappedKeyNr
[in]BlockBlock to encrypt
[in]Block_len
[in]KeyKey to use for encryption
[in]Key_len
[out]EncBlockEncrypted block
[out]EncBlock_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