mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
SHA512 hash algorithm
This commit is contained in:
@@ -29,15 +29,15 @@
|
||||
\li Block ciphers: AES128, AES192, AES256
|
||||
\li Block cipher modes: CTR, CFB, CBC, OFB
|
||||
\li Stream ciphers: ChaCha
|
||||
\li Hash algorithms: SHA1, SHA256, BLAKE2s
|
||||
\li Hash algorithms: SHA1, SHA256, SHA512, BLAKE2s
|
||||
\li Public key algorithms: Curve25519
|
||||
\li Random number generation: \link RNGClass RNG\endlink, TransistorNoiseSource
|
||||
|
||||
All cryptographic algorithms have been optimized for 8-bit Arduino platforms
|
||||
like the Uno. Memory usage is also reduced, particularly for SHA1 and SHA256
|
||||
which save 256 and 192 bytes respectively over traditional implementations.
|
||||
For other algorithms, static sbox tables and the like are placed into
|
||||
program memory to further reduce data memory usage.
|
||||
like the Uno. Memory usage is also reduced, particularly for SHA1, SHA256,
|
||||
and SHA512 which save 256, 192, and 512 bytes respectively over traditional
|
||||
implementations. For other algorithms, static sbox tables and the like are
|
||||
placed into program memory to further reduce data memory usage.
|
||||
|
||||
ChaCha with 20 rounds and 256-bit keys is the recommended
|
||||
symmetric encryption algorithm because it is twice as fast as AES128,
|
||||
@@ -65,6 +65,7 @@ Ardunino Mega 2560 running at 16 MHz are similar:
|
||||
<tr><td>ChaCha (8 rounds)</td><td align="right">8.13us</td><td align="right">8.14us</td><td align="right">43.74us</td><td align="right">130</td></tr>
|
||||
<tr><td>SHA1</td><td align="right">21.90us</td><td> </td><td align="right"> </td><td align="right">94</td></tr>
|
||||
<tr><td>SHA256</td><td align="right">43.85us</td><td> </td><td align="right"> </td><td align="right">106</td></tr>
|
||||
<tr><td>SHA512</td><td align="right">123.25us</td><td> </td><td align="right"> </td><td align="right">210</td></tr>
|
||||
<tr><td>BLAKE2s</td><td align="right">18.54us</td><td> </td><td align="right"> </td><td align="right">170</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ realtime clock and the LCD library to implement an alarm clock.
|
||||
\li Block ciphers: AES128, AES192, AES256
|
||||
\li Block cipher modes: CTR, CFB, CBC, OFB
|
||||
\li Stream ciphers: ChaCha
|
||||
\li Hash algorithms: SHA1, SHA256, BLAKE2s
|
||||
\li Hash algorithms: SHA1, SHA256, SHA512, BLAKE2s
|
||||
\li Public key algorithms: Curve25519
|
||||
\li Random number generation: \link RNGClass RNG\endlink, TransistorNoiseSource
|
||||
|
||||
|
||||
Reference in New Issue
Block a user