validatePublicKey

Check if a public key satisfies algorithm specs. For instance, an ECC key should lie on the curve and not being point-at-infinity.