-
Notifications
You must be signed in to change notification settings - Fork 831
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
[Bug]: esp32_sha.c:511:26: error: lvalue required as left operand of assignment #6026
Comments
@llange thanks for finding this. Yes, there's definitely a problem with HW acceleration under some circumstances as recently detected by the ED25519 test failure noted in #5948. I'm actively working on this in my ED25519_SHA2_fix branch. Although full support for the ESP-IDF version 5 is well underway, I have left open #5909 and #5319 until all wolfSSL Espressif projects have been confirmed to be working with v5. You may be interested in my "no install" wolfSSL in #6018 btw - Thanks again for taking a look. What's your use case for wolfSSL? I'm always interested in learning what new ESP32 projects are using wolfSSL. |
The project is OVMSv3 - basically, the firmware for an open-source vehicle telemetry unit - electric vehicle remote monitoring, diagnosis and control - (but in fact much more than that) : you buy/build the HW, plug it in a car, and from your Lab/Home/Server you can gather data, send commands, track it, etc... To the best of my knowledge (I'm a recent contributor and don't know the whole story), this firmware is using wolfSSL (and wolfSSH) since 2017 it seems ; for both an SSH server ( The FW is based on "non-current" versions of ESP-IDF (a custom fork of 3.3.6), wolfSSL (4.7.0) and woldSSH (1.4.6), and so I foolishly decided to help porting it to more recent versions. I'll certainly have a look at your "no install" examples, although my cmake knowledge is too minimal for understanding all the beauty of the implementation, but I can certainly get inspired by them. |
Thank you @gojimmypi for the merged PR. |
Contact Details
No response
Version
tag
v5.5.4-stable
ormaster
Description
Compiling OVMSv3 for ESP-IDF version 5+ (NOT using the component integration (https://github.com/espressif/esp-wolfssl/)) - like in #6024
Also I'm targeting the ESP32 target (not ESP32-S3 etc...)
So I understood that the default configuration does not enable SHA384, which may be the reason I seem to be struggling with some compile-time issues :-)
So it seems that 8bb6ff8 also introduced the following construct :
As you can see, in the case of
SHA2_384
the behaviour (assignment) is not the same as for the 3 other cases (register write).Those 2 (variables ? constants ?)
SHA_LOAD_REG
andSHA_BUSY_REG
are not defined (nor used) in wolfssl but there are indeed 2 functions in ESP-IDF with the same name.However it fails to compile for sure - may be it depends on the ESP-IDF version (I'm using 5.0), or on the target ?
This is not a field I'm experimented with, but after reading the ESP32 Technical Reference Manual (chapter 23.3.3, top of page 579) my suggestion would be:
which does compile for ESP32, and looks consistent with the other use of registers for SHA_384 in the same file:
+@gojimmypi FYI (Sorry to annoy you with this 7 months old patch of yours...)
Reproduction steps
No response
Relevant log output
The text was updated successfully, but these errors were encountered: