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

Ed25519 Support

Open apowers313 opened this issue 6 years ago • 10 comments

Based on the conversation in PeculiarVentures/PKI.js#164 I'm hoping I can get help with adding the Ed25519 curve to webcrypto-liner. It looks like @microshine just added secp256k1 -- I'm assuming the easiest path is to look at those edits and copy them?

I'm a little concerned about whether or not I'm going to be successful in creating a PR here without a significant investment of time. Any help would be appreciated.

apowers313 avatar Apr 14 '18 18:04 apowers313

@apowers313 webcrypto-liner is based on webcrypto-core which supports X25519 named curve. You can use this curve like standard WebCrypto curves (e.g. P-256, P-384, P-521)

node-webcrypto-p11 implements X25519. It hes test for key derivation for NSS PKCS#11

microshine avatar Apr 14 '18 19:04 microshine

I have done some work upstream in webcrypto-core to add EdDSA, and plan to implement it here in an upcoming PR. After the webcrypto-core PR is merged and published

Mischala avatar Oct 08 '18 02:10 Mischala

changes made in #61

Mischala avatar Nov 05 '18 21:11 Mischala

@Mischala @microshine What's the status here? Is this going to be integrated soon? I'm willing to work on it if needed.

TJKoury avatar Jun 05 '19 18:06 TJKoury

No progress but we’re interested in a PR :)

rmhrisk avatar Jun 05 '19 20:06 rmhrisk

@Mischala checking out your fork, what was the stopping point there? Some technical issue?

TJKoury avatar Jun 05 '19 20:06 TJKoury

@peculiar/webcrypto implements EdDSA and ECDH-ES mechanism. I'm going to support the same mechanisms for webcrypto-liner (~1 week)

microshine avatar Feb 05 '21 15:02 microshine

Try this example. But copy files locally and run it. It doesn't work in codesandbox (not clear why) https://codesandbox.io/s/ed25519-with-certs-goxlt

image

It uses an unpublished webcrypto-liner library with Ed25519 supporting

microshine avatar Feb 09 '21 12:02 microshine

There is a problem with Ed448 curve. elliptic module doesn't implement it. So current version supports Ed25519 only

microshine avatar Feb 09 '21 12:02 microshine

@indutny any chance to get Ed448 working in elliptic for our use case?

rmhrisk avatar Feb 09 '21 18:02 rmhrisk