People have rightly been criticizing P-256 for a long time, but Curve25519 has some characteristics that put it in a different class of ECC. A good place to start is https://safecurves.cr.yp.to/
This used to be conventional wisdom among implementors, but cryptographers have had a pretty sharp vibe shift on it, and P-256 is back in fashion. This comment is a good starting point:
This used to be conventional wisdom among implementors, but cryptographers have had a pretty sharp vibe shift on it, and P-256 is back in fashion. This comment is a good starting point:
https://news.ycombinator.com/item?id=50760950