Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

19 lignes
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. }