![]() |
BALTECH Docs |
BALTECH SDK wrapper functions reference
|
| brp_errcode brp_Crypto_DecryptBuffer | ( | brp_Crypto_DecryptBuffer_t | params | ) |
This command decrypts a variable length buffer given in the Buffer parameter using the SkipJack algorithm.
If KeyIndex is set to 0x00, KeyValue will be used as encryption key. Otherwise, KeyIndex is interpreted as the index of the corresponding entry in the internal key list. KeyIndex = 0x01 denotes configuration value 0x81, KeyIndex = 0x02 denotes configuration value 0x82, etc.
The value returned in the InitialVector variable is necessary for CBC encryption. If large amounts of data must be encrypted, this command has to be called more than once. In this case, the returned InitialVector variable of call i of the command has to be specified as the InitialVector parameter of call i+1.
| [in] | params | Struct with the following fields:
|