Adding curve25519 to tinyec I am testing a TLS server that uses x25519 for key exchange. I am relying on Scapy-ssl_tls for building the TLS connection. However, this tool uses tinyec as its crypto library, and tinyec  does not have curve25519 in its registry, thus this whole setup does not work.
Does anybody know how could I add the curve25519 to tinyec? Since its 'registry' is just a bunch of hardcoded values (see below), I assume if I had these values for curve25519, that should be enough for my testing.
                     &quot;secp192r1&quot;: {&quot;p&quot;: 0xfffffffffffffffffffffffffffffffeffffffffffffffff,
                                   &quot;a&quot;: 0xfffffffffffffffffffffffffffffffefffffffffffffffc,
                                   &quot;b&quot;: 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1,
                                   &quot;g&quot;: (0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
                                         0x07192b95ffc8da78631011ed6b24cdd573f977a11e794811),
                                   &quot;n&quot;: 0xffffffffffffffffffffffff99def836146bc9b1b4d22831,
                                   &quot;h&quot;: 0x1},
Tinyec only supports Weierstrass curves, with an equation of the form $y^2 = x^3 + a x + b$. Curve25519 is a Montgomery curve, with an equation of the form $B y^2 = x^3 + A x^2 + x$. Tinyec's arithmetic can't do Curve25519 since its $A$ parameter is nonzero.
It would be less work to adapt Scapy-ssl_tls to one of the existing interfaces to Curve25519 than to write Montgomery curve arithmetic yourself.