| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Clean up OpenSSL error stack in `ECDH::Initialize`, some curves have faulty implementations that are leaving dangling errors after initializing the curve. Fix: nodejs#4686
|
R: @nodejs/crypto |
Sorry, something went wrong.
|
LGTM if CI is green. |
Sorry, something went wrong.
|
Does it mean the Oakley curve is broken in openssl? $ openssl ecparam -list_curves
...
Oakley-EC2N-3:
IPSec/IKE/Oakley curve #3 over a 155 bit binary field.
Not suitable for ECDSA.
Questionable extension field!
Oakley-EC2N-4:
IPSec/IKE/Oakley curve #4 over a 185 bit binary field.
Not suitable for ECDSA.
Questionable extension field!
Instead of ignoring it, how about the idea to have ERR_peek_error() and throw an error in ECDH::New? |
Sorry, something went wrong.
|
@shigeki I don't really want to introduce more ERR_peek_error() checks until we decide what to do with the ERR stack in general. Every check added means that it may throw error on dirty stack. |
Sorry, something went wrong.
|
thanks! |
Sorry, something went wrong.
|
@indutny I found the error is intentional and ignoring it is a right choice, which comes from https://github.com/openssl/openssl/blob/OpenSSL_1_0_2-stable/crypto/ec/ec_lib.c#L321-L325 We ignore the return value because some groups have an order with factors of two, which makes the Montgomery setup fail. |group->mont_data| will be NULL in this case. CI was green except existing failures on WIn. LGTM and landed in ebd9add. Thanks. |
Sorry, something went wrong.
|
Thank you! |
Sorry, something went wrong.
Clean up OpenSSL error stack in `ECDH::Initialize`, some curves have faulty implementations that are leaving dangling errors after initializing the curve. Fix: nodejs#4686 PR-URL: nodejs#4689 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
Clean up OpenSSL error stack in `ECDH::Initialize`, some curves have faulty implementations that are leaving dangling errors after initializing the curve. Fix: nodejs#4686 PR-URL: nodejs#4689 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
Clean up OpenSSL error stack in `ECDH::Initialize`, some curves have faulty implementations that are leaving dangling errors after initializing the curve. Fix: nodejs#4686 PR-URL: nodejs#4689 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
Clean up OpenSSL error stack in `ECDH::Initialize`, some curves have faulty implementations that are leaving dangling errors after initializing the curve. Fix: nodejs#4686 PR-URL: nodejs#4689 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
| Back | FazBrowse Home | New Git URL |
Clean up OpenSSL error stack in ECDH::Initialize, some curves have
faulty implementations that are leaving dangling errors after
initializing the curve.
Fix: #4686