How to change default TLS elliptic curve

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LeWi_2227251
Level 3
Level 3
First like received Welcome!

For TLS EC key/certificate we need to support secp224r1 key size.  WICED defaults to secp256r1 key size.

I tried to change the elliptic curve to different values modifying the SDK at this location:

libraries\crypto\micro-ecc\configuration.h

Still defaults to secp256r1.

Running as client the WICED device always responds with only curve secp256r1?

pastedImage_37.png

0 Likes
1 Solution
2 Replies
Anonymous
Not applicable

Leif,

Can I know how you modified the configuration.h file for the required curve?

You need to change the following:

#define uECC_CURVE   uECC_secp224r1

#define uECC_BYTES   uECC_secp224r1_size

Please let us know who you are testing? Which application and SDK you are using?

0 Likes

Fixed with WICED SDK 5.2