Added required DSA check to assert that the public key is a point of the curve.