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

230 Commits

Author SHA1 Message Date
Rhys Weatherley
fa1400ea83 KeyRing implementation 2018-06-16 14:08:01 +10:00
Rhys Weatherley
7423609e64 Noise protocol implementation 2018-06-10 16:32:18 +10:00
Rhys Weatherley
b9fefc6a76 Change error in RNG.cpp to a warning 2018-05-15 19:42:20 +10:00
Rhys Weatherley
f4730a52cd New keywords 2018-04-27 12:02:57 +10:00
Rhys Weatherley
0bd0fa1be3 Add SHA-1 back to the library as a legacy algorithm 2018-04-27 12:01:14 +10:00
Rhys Weatherley
455549f835 ASCON-128 finalist from the CAESAR competition 2018-04-27 11:01:29 +10:00
Rhys Weatherley
84962a2008 Bump library versions to 0.2.0 2018-04-26 08:01:44 +10:00
Rhys Weatherley
11f8f3aeb2 Add PlatformIO library.json files to the other libraries 2018-04-26 08:00:22 +10:00
Rhys Weatherley
d9ebc63878 Move CBC, CFB, and OFB to the CryptoLegacy library 2018-04-26 07:56:57 +10:00
Rhys Weatherley
a03d95e7b4 Move Speck from Crypto to CryptoLW 2018-04-26 07:10:07 +10:00
Rhys Weatherley
60ac9c4d6b Add Acorn128 to the host mode test suite 2018-04-26 07:06:14 +10:00
Rhys Weatherley
f301893d7f Bump @PlatformIO Crypto library version to 0.1.6 2018-04-26 06:53:53 +10:00
Rhys Weatherley
4078351503 AVR assembly version of Acorn128 2018-04-26 06:51:21 +10:00
Rhys Weatherley
91bffb9d1f ACORN-128 AEAD cipher 2018-04-26 06:51:21 +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
0189fdeee8 GCM: Fix test cases where the IV is not 96 bits in size 2018-04-15 13:27:34 +10:00
rweather
7868671873
Merge pull request #27 from AndrolGenhald/master
GCM: Reset ghash in setIV instead of in setKey
2018-04-15 13:20:17 +10:00
Rhys Weatherley
22ee5721d6 Move non-cryptography code to a separate repository 2018-04-07 10:22:35 +10:00
Rhys Weatherley
ca49329fbd Make use of the AES hardware module on the ESP32 2018-04-07 09:48:46 +10:00
Rhys Weatherley
92dcceea57 Bump library version 2018-04-07 02:42:48 +10:00
Rhys Weatherley
9ae79f469f AES tiny and small memory versions 2018-04-07 02:39:30 +10:00
Rhys Weatherley
bb9f0c2b96 ESP32 compilation fix for the NewHope example 2018-04-02 17:16:26 +10:00
Rhys Weatherley
599e417f0e 16-bit limbs are faster than 32-bit on ESP8266 2018-04-02 15:08:55 +10: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
511cd8f77c Make the Crypto examples work for ESP8266 2018-04-01 15:58:00 +10:00
Rhys Weatherley
990ae0ea37 Add support for the ESP8266's TRNG 2018-03-31 16:13:20 +10:00
AndrolGenhald
fb3929aec7 GCM: Reset ghash in setIV instead of in setKey 2018-02-24 17:18:23 -06:00
Rhys Weatherley
27ad81051d Bump library version 2018-02-18 09:10:28 +10:00
Rhys Weatherley
a2079e1708 Fix for pgm access issue on esp8266
Ticket: https://github.com/rweather/arduinolibs/issues/20
2018-02-18 09:09:17 +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
506af269b7 Bump @PlatformIO Crypto library version to 0.1.2 2017-11-03 10:48:30 +10:00
Rhys Weatherley
8b5f414fc1 Disable AVR asm speedups in Curve25519 for now 2017-11-03 10:47:35 +10:00
Rhys Weatherley
277a0b63c9 Speed up Speck by using a custom AVR code generator
This also fixes the remaining asm issues with newer versions of gcc.
2017-11-03 10:47:18 +10:00
Rhys Weatherley
b53f57225d Fix AVR asm issues with Speck 2017-11-01 16:11:51 +10:00
Evan Wang
fce780d9a2 Bump @PlatformIO Crypto library version to 0.1.1 2017-07-10 01:12:55 -04:00
Rhys Weatherley
8b89c1fbb5 Fix warning in LimbUtil.h 2017-05-29 04:53:51 +10:00
Sergei Kotlyachkov
a4683416ff Fix compilation error for ESP8266 2016-11-28 20:08:48 -05:00
Ivan Kravets
343f2cc24e Allow any @PlatformIO development platform that has support for Arduino framework 2016-10-28 23:00:55 +03:00
Ivan Kravets
274ce083f5 @PlatformIO Library Registry manifest file 2016-10-28 19:59:02 +03:00
Rhys Weatherley
b45722dd46 Update the documentation for New Hope 2016-08-27 14:31:56 +10:00
Rhys Weatherley
4875215793 Improve the New Hope test sketch 2016-08-27 08:20:06 +10:00
Rhys Weatherley
9daa1508fd Avoid some overlapping buffer issues in sharedb() 2016-08-27 08:07:42 +10:00
Rhys Weatherley
6d2f7b34d6 Fix some 16-bit vs 32-bit math issues for AVR 2016-08-27 06:16:04 +10:00
Rhys Weatherley
8512fc0140 Save another 2K of stack space for sharedb() on AVR 2016-08-26 05:47:37 +10:00
Rhys Weatherley
97efa287b6 Stripped down AVR example for New Hope 2016-08-25 18:28:31 +10:00
Rhys Weatherley
a2043ed565 Use small footprint on AVR, large footprint on ARM 2016-08-25 16:16:50 +10:00
Rhys Weatherley
a495d367c5 Hide the ChaCha20 state inside other buffers 2016-08-25 16:14:10 +10:00