@Override
    protected byte[] engineGetEncoded() throws IOException {
        return NativeCrypto.EC_KEY_marshal_curve_name(curve.getNativeRef());
    }
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