nodejs / webcrypto

This repository has been archived. The WebCrypto API has been implemented in recent versions of Node.js and does not require additional packages.
69 stars 20 forks source link

Imported RSA keys should have modulusLength and publicExponent #16

Closed tniessen closed 4 years ago

tniessen commented 5 years ago

Generated RSA keys correctly set key.algorithm to an object with modulusLength and publicExponent properties. However, imported RSA keys are missing these properties since there is no easy way to determine them based on a KeyObject.

This could also be solved via https://github.com/nodejs/node/issues/26854.

tniessen commented 4 years ago

Possible solution in https://github.com/nodejs/node/pull/30045.