private void initInternal(OpenSSLKey newKey, boolean signing) throws InvalidKeyException {
        checkEngineType(newKey);
        key = newKey;

        this.signing = signing;
        try {
            resetContext();
        } catch (InvalidAlgorithmParameterException e) {
            throw new InvalidKeyException(e);
        }
    }
Configures the public key algorithm context ({@code EVP_PKEY_CTX}) associated with this
operation.

<p>The default implementation does nothing.

@param ctx reference to the context ({@code EVP_PKEY_CTX}).
common/src/main/java/org/conscrypt/OpenSSLSignature.java