mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
Make the Crypto examples work for ESP8266
This commit is contained in:
@@ -78,6 +78,8 @@ byte buffer[16];
|
||||
|
||||
void testCipher(BlockCipher *cipher, const struct TestVector *test, size_t keySize, bool decryption = true)
|
||||
{
|
||||
crypto_feed_watchdog();
|
||||
|
||||
Serial.print(test->name);
|
||||
Serial.print(" Encryption ... ");
|
||||
cipher->setKey(test->key, keySize);
|
||||
@@ -105,6 +107,8 @@ void perfCipher(BlockCipher *cipher, const struct TestVector *test, size_t keySi
|
||||
unsigned long elapsed;
|
||||
int count;
|
||||
|
||||
crypto_feed_watchdog();
|
||||
|
||||
Serial.print(test->name);
|
||||
Serial.print(" Set Key ... ");
|
||||
start = micros();
|
||||
|
||||
Reference in New Issue
Block a user