Skip to the content.
Optional XTEA Encryption
- You can deliver your device with encrypted trices. This way only the service [wo]men is able to read the Trices.
- Implemented is XTEA but this is exchangeable.
- The to 8 byte padded blocks can get encrypted by enabling
#define ENCRYPT... inside triceConfig.h. You need to add -password MySecret as trice log switch and youβre done.
- Any password is usable instead of
MySecret. Simply add once the -show switch and copy the displayed passphrase into the triceConfig.h file.
- The encryption takes part before the COBS encoding.
- TCOBS is usable but not recommended after encryption, because it cannot compress effective arbitrary data.
- If XTEA is used, the encrypted packages have a multiple-of-8 byte length containing 1-7 padding bytes.
- The optional decryption is the next step after unpacking a data frame.
- Enabling XTEA, automatically switches to COBS framing. There is no need to use the Trice tool
-packageFraming switch in that case because the Trice tool, when getting the CLI switch -password "phrase" automatically assumes COBS encoded data, overwriting the default value for -packageFraming.
(back to top)