ThePassionate opened a new pull request, #4089: URL: https://github.com/apache/nuttx-apps/pull/4089
## Summary Add an ECDH test case to the existing `dhm` test (the `TESTING_CRYPTO_ECDH` option already builds this program): * Fixed vectors: private keys dA/dB and public keys QA/QB generated with pure Python affine EC arithmetic, cross-checked bidirectionally against the python cryptography package; both directions must derive the same shared secret Z. * Ephemeral key pairs generated through the new kernel commands must also agree in both directions. Also fixes `test_dh_compute_key()` swallowing errors (it returned 0 unconditionally) and adds `setbuf(stdout, NULL)`. ## Impact * Testing only. ## Testing Depends on apache/nuttx#22054 (the ECDH commands). On sim:sim/crypto with that kernel PR: ``` nsh> dhm test dh compute key ok test ecdh compute key ok ``` `tools/checkpatch.sh` (via the paired nuttx tree) passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
