webcrypto-liner icon indicating copy to clipboard operation
webcrypto-liner copied to clipboard

Add x25519 Support

Open TJKoury opened this issue 2 years ago • 8 comments

Since integration of the ECDH_ES mech is waiting on this issue, and I need x25519 for a project, I integrated a different crypto library for the time being.

Seems to be passing the test suite copied from the ED mech, though I am certain I missed something.

Standing by for feedback.

TJKoury avatar Jul 22 '21 22:07 TJKoury

@TJKoury webcrypto-liner supports Ed25519 https://github.com/PeculiarVentures/webcrypto-liner/blob/master/test/ed.ts#L12

microshine avatar Jul 31 '21 18:07 microshine

Great! I need x25519 support as well, for ECDH.

TJKoury avatar Jul 31 '21 20:07 TJKoury

To clarify:

I'm aware that you can actually use Ed25519 for ECDH, but most heavily used libraries follow the separation of using Ed25519 for 'sign' & 'verify', and x25519 for 'deriveBits' & 'deriveKey' for ECDH_ES, including Node.

Seeing as how all the examples are testing using the Node API, and hopefully the WebCrypto browser standards will follow the Node example, implementing x25519 for completeness seems appropriate for an isomorphic library to bring the browser up to Node's capabilities.

TJKoury avatar Aug 01 '21 19:08 TJKoury

So, thoughts?

TJKoury avatar Aug 19 '21 19:08 TJKoury

@microshine

rmhrisk avatar Aug 19 '21 20:08 rmhrisk

Bump

TJKoury avatar Oct 05 '21 12:10 TJKoury

Bump

TJKoury avatar Mar 08 '22 15:03 TJKoury

Bump

TJKoury avatar Jul 09 '22 17:07 TJKoury