PeculiarVentures / node-webcrypto-p11

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

Add support for CKM_RSA_X_509 mechanism to replace CKM_RSA_OAEP #80

Closed microshine closed 1 year ago

microshine commented 1 year ago

This update adds support for the CKM_RSA_X_509 mechanism as a replacement for CKM_RSA_OAEP. Not all token manufacturers fully implement the CKM_RSA_OAEP mechanism (for example, SoftHSM throws an error when using the label parameter). Therefore, if the token supports CKM_RSA_X_509, the library will use this mechanism for its own implementation of RSA-OAEP encryption. Otherwise, CKM_RSA_OAEP will be used, as it was before.

coveralls commented 1 year ago

Coverage Status

Coverage: 87.455% (-0.02%) from 87.476% when pulling 84ee02705ffcf74b7230b836c1feb12beae7c5f5 on rsa-oaep into 081415e1dd10d75c5177cd1f4a62e7dc75df5b29 on master.

github-actions[bot] commented 1 year ago

NPM package v2.6.3 has been published 🎉