PeculiarVentures / node-webcrypto-p11

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

getProviderInfo throws CKR_MECHANISM_INVALID #55

Closed microshine closed 4 years ago

microshine commented 4 years ago

Some PKCS#11 middlewares throw exception on getting information about mechanisms

https://github.com/PeculiarVentures/fortify/issues/312

We need to update getProviderInfo and skip such mechanisms

https://github.com/PeculiarVentures/node-webcrypto-p11/blob/869c8e202e34f5776ca579b8e964a84a7b2e5b66/src/utils.ts#L92