How to use Elliptic Curves Diffie-Hellman with SJCL in JS and OpenSSL in Ruby
问题 Using Elliptic-Curves Diffie-Hellman, I want to connect SLCL - JS (documentation) on client and OpenSSL - Ruby (documentation) on server. I found a similar question here but it wasn't really answered properly and it was also not what I am really looking for since it uses sjcl.ecc.elGamal.generateKeys(384, 10) whereas I am hoping of using sjcl.ecc.curves['c384'] <- NIST Nevertheless, I still used and modified his code to test because I had problems using sjcl.ecc.curves['c384'] producing a