onCurve
Decodes an ECDSA public key from DER-encoded SubjectPublicKeyInfo (SPKI).
Parameters
der | The DER-encoded SPKI bytes. |
Returns
The decoded ECDSA public key.
Throws
CryptoException if the DER is malformed or algorithm is not EC.
Verifies that the point x, y lies on the curve described by curve (range check plus the Weierstrass equation).
Params: x = The x-coordinate. y = The y-coordinate. curve = The curve domain parameters.
Returns: true if the point is valid for the curve.