Comments (5)
Hi @a-def
The function doesn't support zero in 5.7.0.
I've put up a PR that fixes this and added a test case to ensure we keep this behavior.
Is this all you need?
from wolfssl.
Hi @a-def ,
I've re-opened this (it auto closed) as I would like to have your feedback on the PR. Please let us know if this PR resolves the issue or if you see anything else.
Thanks,
David Garske, wolfSSL
from wolfssl.
Hi,
Great, thank you for this quick fix. That's all.
from wolfssl.
Version
Most recent master
Description
Hello,
I've re-opened this issue as the fix still leads to unexpected behavior.
By setting z to 0, the resulting output would be treated as an invalid point down the line.
For example, testing if the output is on the curve with wc_ecc_point_is_on_curve
would fail. Indeed, wc_ecc_is_point
would return with ECC_BAD_ARG_E
because the z
of the output is set to 0 after a multiplication by 0.
Yet, point at infinity is a valid point on the curve. I wonder if it is relevant to set z
to 1 and/or add a conditional statement in wc_ecc_is_point
to handle the point at infinity.
from wolfssl.
Hi @a-def
I've put up a pull request with the change to set z to 1.
I did debate this in my mind but the safe add and double don't use the z so I thought it was safe!
Let me know if this fixes things for you.
Sean :-)
from wolfssl.
Related Issues (20)
- [Bug]: PKCS11 issue with wc_ecc_init_ex() HOT 4
- [Bug]: wolfSSL_check_domain_name for QUIC returns ok for failed SAN check HOT 1
- EC_method support missing despite RSA_method being present HOT 5
- Ed25519 signature verification bug HOT 2
- [Bug]: DTLS 1.2 handshake fails when 2 packets arrive OOO HOT 12
- [Bug]: wc_Curve448PublicKeyToDer returns error when output is NULL HOT 1
- Support for chrome and X25519Kyber512Draft00 HOT 4
- How can I contact [email protected] HOT 2
- [Bug]: PlatformIO without SINGLE_THREADED causes fatal error: semphr.h: No such file HOT 1
- [Bug]: Forcing FreeRTOS Espressif to SINGLE_THREADED causes SHA256 test failure HOT 1
- Request more openssl compatibility for gSOAP. HOT 2
- Trying to understand the implementation of the function - ge_double_scalarmult_vartime HOT 3
- wolfSSL_CTX_EnableOCSP documentation update request
- Request for Espressif Managed Component Post-5.7.0 Release HOT 1
- error: api_kyber.h No such file HOT 3
- OCSP stapling with HAProxy as a server HOT 9
- Found a typo in esp32_sha.c HOT 1
- WOLFSSL_SINGLE_THREADED cmake option does not affect SINGLE_THREADED compile macro HOT 2
- Guidance to use with Arduino as an IDF component in PIO HOT 2
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 wolfssl.