PeculiarVentures / webcrypto-core

A input validation layer for WebCrypto polyfills.
MIT License
28 stars 13 forks source link

Rsa keygen param validation #8

Closed microshine closed 7 years ago

microshine commented 7 years ago

The modulus length must be a multiple of 8 bits and >= 256 and <= 16384

Current check is not right https://github.com/PeculiarVentures/webcrypto-core/blob/master/src/rsa/crypto.ts#L42