Comments (5)
Hey again,
I'll try to know what is it problem, and I got:
Problem is with function: processChunk();
Right there:
for (index = 0; index < 8; ++index) { state.h[index] ^= (v[index] ^ v[index + 8]);
When I assign (or xor) variable into state.h[index];
it crashed.
But when I assign e.g. into state.h[index] = 0xFFFFFFFF;
it will works.
When I do: uint32_t new_index = (v[index] ^ v[index + 8]);
it works, but next if I'd like to assign (or xor) into new_index = (v[index] ^ v[index + 8]);
it fail again :/
Thank you for any help.
Best Regards
Jรกn
from arduinolibs.
I borrowed a WeMos D1 Mini from my brother. The BLAKE2s test case and others work for me with the following configuration:
- Arduino IDE 1.8.2
- 2.4.1 version of the ESP8266 board support code from https://github.com/esp8266/Arduino
- Tools -> Board configured as "WeMos D1 R2 & mini".
Maybe whatever compiler issue was occurring before has been fixed now? Or it is even more subtle.
I have noticed some issues with other test programs like TestAES which run the tests for a longer amount of time. If the code spends more than 5 seconds in the setup() or loop() function without returning to the caller, then a Soft WDT Reset exception will occur. This can be avoided by calling wdt_disable() at the start of the setup() function. In production code it may be necessary to call wdt_reset() periodically to feed the watchdog if the program spends a lot of time in setup() or loop().
I'm still working through the other Crypto examples to make sure they all work in an ESP8266 configuration with the latest toolchain. And there may be need to be some other changes for EEPROM access and chip ID's in the RNG class.
from arduinolibs.
I have made some modifications to the library and all crypto examples now work with my brother's ESP8266 WeMos D1 Mini and ESP32 Dev Module. For the ESP8266 it was mostly watchdog issues, with a few other things here and there. I have collected up some recommendations for people who are using ESP8266 here:
http://rweather.github.io/arduinolibs/crypto_esp.html
I also modified the RNG class to use the hardware TRNG's on both ESP8266 and ESP32.
Hopefully this will put the ESP-related issues to rest now.
from arduinolibs.
Hello Rwather, I just wanna inform you, that I instal the newest version of IDE + updated library + ESP8266 core as you mentioned, and all work very well. Thank you again for you're response and have a nice day :) Bye
PS: If I'll find some problem thing in library, I will inform you, to improve user experiance in your lib.
from arduinolibs.
Fantastic - I'm glad it is working for you now. I look forward to any comments as to how to improve the library.
from arduinolibs.
Related Issues (20)
- Encrypt String longer than blockSize() HOT 5
- Asymmetric encryption/decryption? HOT 3
- Error compiling for new Arduino core for the ESP32 HOT 4
- Support for XChaCha20 Poly1305 HOT 2
- Need help with ChaCha and Strings HOT 1
- TestSpeck.ino fails on samd21 M0 after changing the plaintext HOT 1
- Asymmetric encryption HOT 1
- Including libraries does not work in platformio HOT 1
- default key? HOT 4
- Bug of Ascon128.c++ in Arduino Cryptography Library HOT 3
- TestSpeck.ino - Decryption fails for SpeckTiny with all key sizes HOT 1
- Crypto doesn't support next generation AVRs HOT 18
- โSHA256โ was not declared in this scope ESP32S3 HOT 6
- Crypto library "Hash.h" conflicting with ESP866 Arduino package "Hash.h" HOT 5
- Ascon128::decrypt doesn't seem to allow for inplace decryption, despite documentation saying so
- Support for SHA-512/256?
- crypto_feed_watchdog was not declared in this scope [ESP8266 & ESP32] HOT 3
- RNG.cpp include of <Arduino.h> makes native builds for unit testing and debugging fail
- Error Compiling for ESP8266 or ESP32 clean() not declared in scope AES CFB example
- calculated shared secret doesn't match (Diffie-Hellman, Curve25519)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinolibs.