Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception (3) with ESP8266 core >2.5.0 in mulA24 #38

Open
gmag11 opened this issue Jun 7, 2019 · 1 comment
Open

Exception (3) with ESP8266 core >2.5.0 in mulA24 #38

gmag11 opened this issue Jun 7, 2019 · 1 comment

Comments

@gmag11
Copy link

gmag11 commented Jun 7, 2019

With core version higher than 2.5.0 (latest is 2.5.2) I get a Exception (3) boot loop when calling Curve25519::dh1(uint8_t k[32], uint8_t f[32]).

I've traced the exact point and I've got to Curve25519::mulA24(limb_t *result, const limb_t *x).

I've noticed that code uses BIGNUMBER_LIMB_16BITfor ESP8266 platform.

If I change this line from
#if defined(__AVR__) || defined(ESP8266) to
#if defined(__AVR__)

so that it uses BIGNUMBER_LIMB_32BIT, the program runs fine.

I've tested it with v0.2.0 and latest master.

@gmag11 gmag11 changed the title Exception (3) with ESP8266 core >2.5.0 Exception (3) with ESP8266 core >2.5.0 when reaching mulA24() Jun 7, 2019
@gmag11 gmag11 changed the title Exception (3) with ESP8266 core >2.5.0 when reaching mulA24() Exception (3) with ESP8266 core >2.5.0 in mulA24 Jun 7, 2019
@guilhermedalleprane
Copy link

guilhermedalleprane commented Sep 12, 2019

I have the same problem. I think it is solved here:
esp8266/Arduino#6270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants