Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
375 B

  1. #include <strobe.h>
  2. #define roundup(x, y) ((((x) + (y) - 1) / (y)) * (y))
  3. typedef uint32_t rng_word_t;
  4. extern const rng_word_t rng_save[roundup(32, sizeof(rng_word_t)) / sizeof(rng_word_t)];
  5. void strobe_rng_init(void);
  6. void strobe_rng_save(void);
  7. static inline void
  8. bare_strobe_randomize(uint8_t *ptr, ssize_t len)
  9. {
  10. int r;
  11. r = strobe_randomize(ptr, len);
  12. (void)r;
  13. }