PeculiarVentures / node-webcrypto-p11

A WebCrypto Polyfill for Node in typescript built on PKCS#11.
MIT License
44 stars 15 forks source link

Adding support for "NO-HASH" when signing with ECDSA #83

Open nirfireblocks opened 9 months ago

nirfireblocks commented 9 months ago

Hi @microshine,

We ran into a use case where the data to be signed via ECDSA is already hashed, and should not be hashed again. As it wasn't available, I added the option to sign via ECDSA with the hash algorithm "NO-HASH". I created two pull requests: node-webcrypto-p11: https://github.com/PeculiarVentures/node-webcrypto-p11/pull/82 webcrypto-core: https://github.com/PeculiarVentures/webcrypto-core/pull/64

These are tiny PRs, I tested them and they worked great.

Could you please merge them into the master branch?

Thanks, Nir