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
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
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
e1bf1808c1
Update reference links for Curve25519 and Ed25519
2016-03-27 09:45:39 +10:00
Rhys Weatherley
5c4d7ce69a
Port the big number routines to 64-bit systems
2016-03-27 07:52:55 +10:00
Rhys Weatherley
9ff24b0ddf
Implementation of the NIST P-521 curve
2016-03-26 19:03:31 +10:00
Rhys Weatherley
c8d7c3153d
Keyed hashing for BLAKE2 according to RFC7693
2016-03-23 19:08:16 +10:00
Rhys Weatherley
72715b172b
Compiling the Crypto library on a host system
2016-03-17 19:19:14 +10:00
Rhys Weatherley
8cd6916fe8
Fix some compiler warnings
2016-03-16 19:19:11 +10:00
Rhys Weatherley
b078357392
XTS mode for disk sector encryption
2016-02-20 16:12:32 +10:00
Rhys Weatherley
4445547e1b
More keywords
2016-02-14 08:52:58 +10:00
Rhys Weatherley
12739a8c5a
Update keyword list
2016-02-14 08:34:03 +10:00
Rhys Weatherley
c624a3eab3
Extendable output functions: SHAKE128 and SHAKE256
2016-02-14 08:27:27 +10:00
Rhys Weatherley
41cc393de5
AVR inline assembler speedups for Curve25519 and Ed25519
2016-02-14 05:51:22 +10:00
Rhys Weatherley
33df6a873d
Refactor the low-memory versions of Speck
...
Rename SpeckLowMemory to SpeckTiny for the encrypt-only version.
SpeckSmall for the version that supports both encryption and decryption.
2016-02-13 06:59:05 +10:00
Rhys Weatherley
e66f8fe6e0
Split the OMAC code out of EAX so it can be used separately
2016-02-09 19:07:35 +10:00
Rhys Weatherley
21ac06136a
Speed up GHASH with AVR assembly code
...
Also split the Galois operations off into a separate GF128 class.
2016-02-07 13:30:21 +10:00
Rhys Weatherley
2decb74161
Remove SHA1 from the library
...
SHA1 is on the cusp of being utterly broken so no new
software should be making use of it for any reason.
2016-01-16 09:08:28 +10:00
Rhys Weatherley
95313613b7
Reduce the object state size for Poly1305
2016-01-16 08:57:46 +10:00
Rhys Weatherley
b852d222b4
Reduce the object state size of AES
2016-01-16 08:44:35 +10:00
Rhys Weatherley
1ae693127c
Reduce the state size for BLAKE2 by moving state.v to the stack
2016-01-16 06:43:56 +10:00
Rhys Weatherley
f52888517b
Move the Keccak B state from the object to the stack
2016-01-15 17:50:36 +10:00
Rhys Weatherley
4079e6c2b7
Speed up step mapping theta in KeccakCore
2016-01-15 17:44:33 +10:00
Rhys Weatherley
368c6be1cd
Remove reliance on state.B from KeccakCore::setHMACKey()
2016-01-14 19:33:35 +10:00
Rhys Weatherley
0b56598294
Speed up KeccakCore by unrolling into AVR assembly
2016-01-13 19:50:59 +10:00
Rhys Weatherley
25e9f6f3d4
Watchdog-based noise source
2015-12-30 14:08:01 +10:00
Rhys Weatherley
738d86cf2b
EAX block cipher mode with authentication
2015-12-19 09:18:41 +10:00