Code Monkey home page Code Monkey logo

Comments (5)

xpanis avatar xpanis commented on June 18, 2024

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.

rweather avatar rweather commented on June 18, 2024

I borrowed a WeMos D1 Mini from my brother. The BLAKE2s test case and others work for me with the following configuration:

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.

rweather avatar rweather commented on June 18, 2024

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.

xpanis avatar xpanis commented on June 18, 2024

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.

rweather avatar rweather commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.