1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

16 Commits

Author SHA1 Message Date
Rhys Weatherley
b9fefc6a76 Change error in RNG.cpp to a warning 2018-05-15 19:42:20 +10:00
Chris
a707bc36b7
Correct -Wsign-compare warnings
Corrected -Wsign-compare warnings on ESP8266 under platformio.

/home/travis/.platformio/lib/Crypto_ID1168/RNG.cpp: In member function 'void RNGClass::rand(uint8_t*, size_t)':
/home/travis/.platformio/lib/Crypto_ID1168/RNG.cpp:574:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (len > (credits / 8))
^
/home/travis/.platformio/lib/Crypto_ID1168/RNG.cpp: In member function 'bool RNGClass::available(size_t) const':
/home/travis/.platformio/lib/Crypto_ID1168/RNG.cpp:665:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return len <= (credits / 8);
^
/home/travis/.platformio/lib/Crypto_ID1168/RNG.cpp: In member function 'void RNGClass::stir(const uint8_t*, size_t, unsigned int)':
/home/travis/.platformio/lib/Crypto_ID1168/RNG.cpp:698:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((RNG_MAX_CREDITS - credits) > credit)
^
2018-04-23 13:41:37 -05:00
Rhys Weatherley
e2420adfc5 Port the crypto library to ESP32 2018-04-02 15:02:42 +10:00
Rhys Weatherley
b1ac67efb6 Make the RNG class more robust if the app doesn't call begin() or loop() 2018-04-02 07:07:58 +10:00
Rhys Weatherley
990ae0ea37 Add support for the ESP8266's TRNG 2018-03-31 16:13:20 +10:00
Rhys Weatherley
06987988be Use CRC-8 to validate the random seed in EEPROM/Flash 2017-11-26 10:06:29 +10:00
Rhys Weatherley
8400d51420 Use __TIME__ and __DATE__ to provide the RNG a compile-time seed 2017-11-25 05:39:42 +10:00
Rhys Weatherley
d452bea037 Remove EEPROM address argument from RNG.begin()
Always store the seed at the very end of EEPROM memory.
2017-11-04 10:18:05 +10:00
Rhys Weatherley
25e9f6f3d4 Watchdog-based noise source 2015-12-30 14:08:01 +10:00
Rhys Weatherley
3b4a928457 Move example EEPROM address for RNG from 500 to 950 2015-05-03 14:25:20 +10:00
Rhys Weatherley
2e64f4bec9 Save the RNG seed to flash memory on the Due 2015-05-02 09:40:13 +10:00
Rhys Weatherley
b5d6c8de33 Port RNG to the Arduino Due and add TRNG support 2015-04-19 08:26:51 +10:00
Rhys Weatherley
d50a7fed2d Noise source initialization that is post-RNG.begin() 2015-04-02 10:18:35 +10:00
Rhys Weatherley
ed59231db3 More API cleanups to RNG 2015-03-26 16:56:01 +10:00
Rhys Weatherley
067e8ac177 Register the noise sources with RNG at setup time 2015-03-25 19:35:44 +10:00
Rhys Weatherley
6ec1b93cf9 Random number generator class based on ChaCha 2015-03-01 12:08:35 +10:00