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

Add NodeJS nativeCrypto

Open TJKoury opened this issue 3 years ago • 7 comments

Adding NodeJS crypto.webcrypto per this issue.

@types/node typescript definition is incomplete, created local variable with :any for the time being.

TJKoury avatar Jul 19 '21 21:07 TJKoury

@TJKoury are you aware of @peculliar/webcrypto it is a node implementation of webcrypto and Node v15 also has native support. I am not against having liner support Node but its unclear of the objective?

rmhrisk avatar Jul 21 '21 17:07 rmhrisk

The idea is to have an isomorphic code base that supports secp256k1 / Ed25519 / x25519. If I’m not mistaken, @peculiar/webcrypto does not enable those curves in the browser.

TJKoury avatar Jul 21 '21 22:07 TJKoury

#86

TJKoury avatar Jul 22 '21 22:07 TJKoury

Bump

TJKoury avatar Jul 09 '22 17:07 TJKoury

@microshine

rmhrisk avatar Jul 09 '22 18:07 rmhrisk

@peculiar/webcrypto supports Ed curves

See these tests

Ed25519/Ed448 X25519/X448

And also it supports P-256, P-384, P-521, K-256, brainpoolP160r1, brainpoolP160t1, brainpoolP192r1, brainpoolP192t1, brainpoolP224r1, brainpoolP224t1, brainpoolP256r1, brainpoolP256t1, brainpoolP320r1, brainpoolP320t1, brainpoolP384r1, brainpoolP384t1, brainpoolP512r1, and brainpoolP512t1 named curves for ECDSA and ECDH algorithms

microshine avatar Jul 10 '22 09:07 microshine

Ok will check it out.

TJKoury avatar Jul 10 '22 16:07 TJKoury