Skip to content

Software AES test on a RAK811, aka STM32L151CBU6 + SX1276

License

Notifications You must be signed in to change notification settings

Kongduino/RAK811_AES_Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAK811_AES_Test

This is a software AES test I have written for many MCUs, this time targeting the RAK811 – an STM32L151CBU6 + LoRa SX1276. Which is important in this case, since I am generating the Iv and the key, in the first part of the test, with LoRa's TRNG feature. This requires my LoRandom library and Sandeep Mistry's LoRa library. You have to use both libraries, because despite numerous PR, Sandeep refused to update his library with a working Random function. His is fubared, because he never read the docs...

THIS is not how random works in LoRa...

byte LoRaClass::random() {
  return readRegister(REG_RSSI_WIDEBAND);
}

Aaaaanyway. Once you have LoRandom installed, you have a real RNG function, and you can generate random passphrases, IVs, etc. The second part of the test is adapted from a standard STM32Cube example, and tests AES 128 ECB and CBC. It checks the validity of the operations – in the first part of the test it is easy to do so visually, because it is plain text. Less so in the second part.

Part 1

demo_01 demo_02

Part 2

demo_03 demo_04

Releases

No releases published

Packages

No packages published