decode
Reads a key from its encoded form. Throws IllegalArgumentException when the bytes are not a point on P-256 in uncompressed form, and IllegalStateException when the platform provider cannot run at all.
The JDK provider's decoder does not check that a point lies on the curve; its key agreement does. So the check here is a throwaway agreement against the decoded point, which every provider refuses for an off-curve one (OffCurvePointTest pins that per target). That makes a bad key fail here, uniformly, rather than at the first seal.