@Override
    protected void engineInit(byte[] bytes) throws IOException {
        long ref = NativeCrypto.EC_KEY_parse_curve_name(bytes);
        if (ref == 0) {
            throw new IOException("Error reading ASN.1 encoding");
        }
        this.curve = new OpenSSLECGroupContext(new NativeRef.EC_GROUP(ref));
    }
AlgorithmParameters implementation for elliptic curves.  The only supported encoding format is
ASN.1, as specified in RFC 3279, section 2.3.5.  However, only named curves are supported.
common/src/main/java/org/conscrypt/ECParameters.java