Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 3 months ago.
using programs/pkey/ecdh_curve25519.c with MBEDTLS_ECP_DP_SECP521R1 fails
I built and ran programs/pkey/ecdh_curve25519.c as is without any issues. Next I tried changing the curve from MBEDTLS_ECP_DP_CURVE25519 to MBEDTLS_ECP_DP_SECP521R1 on the appropriate lines and increased the buffer sizes, etc. Running with the 521 curve causes the mbedtls_ecdh_compute_shared() for "Server reading client key and computing secret..." to fail with a ret value of -19584.
Shouldn't this work?