-
Notifications
You must be signed in to change notification settings - Fork 58
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
crypto.c: Use of -O3 option for compiling produces warnings #174
Comments
Not sure, why the compiler warns. AFAIK,
initialize |
I wonder if it thinks that there is no guarantee on the value of |
Yes, the assumptions about the |
Several thoughts here Need to assert that key_size is not bigger than sizeof(pub_x) etc. |
AFAIK, only |
Yes.
Not sure, see my comment above. Requires more analysis.
Not sure. I would consider to add ed25519/x25519 before any other stronger ecc. |
Agreed that it does need further checking, but I would think that we are talking about raw keys here, as opposed to the asn.1 representation. As we have hard-coded the ec key size (in bytes) to be |
We may use ecc.h - keyLengthInBytes / arrayLength consequently. Maybe rename it first? |
|
Is this still pending or also fixed with #208 ? |
Current compilation issue is fixed with #208. I had forgotten about this Issue, but if keysizes get changed, then this needs to get revisited. |
Closing for now. |
With Ubuntu 22.04, doing
produces warnings about potentially uninitialized variables as per sample
but using
-O2
(the default), all is fine.The text was updated successfully, but these errors were encountered: