jose/lib/help
Filip Skokan 5b53cb0155 fix: limit calculation of missing RSA private components
- this deprecates the use of `JWK.importKey` in favor of
`JWK.asKey`
- this deprecates the use of `JWKS.KeyStore.fromJWKS` in favor of
`JWKS.asKeyStore`

Both `JWK.importKey` and `JWKS.KeyStore.fromJWKS` could have resulted
in the process getting blocked when large bitsize RSA private keys
were missing their components and could also result in an endless
calculation loop when the private key's private exponent was outright
invalid or tampered with.

The new methods still allow to import private RSA keys with these
optimization key parameters missing but its disabled by default and one
should choose to enable it when working with keys from trusted sources

It is recommended not to use @panva/jose versions with this feature in
its original on-by-default form - v1.1.0 and v1.2.0 These will
2019-06-20 23:32:13 +02:00
..
asn1 fix: reject rsa keys without all factors and exponents with a specific message 2019-05-23 19:20:30 +02:00
base64url.js fix: limit calculation of missing RSA private components 2019-06-20 23:32:13 +02:00
consts.js feat: add JWK key_ops support, fix .algorithms() op returns 2019-04-23 14:30:51 +02:00
deep_clone.js feat: resolving alg/enc, crit members, add tests 2019-02-20 23:12:08 +01:00
ecdsa_signatures.js revert: add EC P-256K JWK and ES256K sign/verify support 2019-04-07 14:13:10 +02:00
epoch.js feat: add JWT.sign/verify/decode 2019-02-27 22:38:30 +01:00
generate_iv.js refactor: cleanup, TODO chores 2019-02-10 21:39:59 +01:00
is_disjoint.js feat: add messy encrypt/decrypt structure and shorthands 2019-02-09 20:04:15 +01:00
is_object.js refactor: jwe/jws serializer detection 2019-02-19 23:30:57 +01:00
key_utils.js fix: limit calculation of missing RSA private components 2019-06-20 23:32:13 +02:00
node_alg.js feat: add support for JWK x5c, x5t and x5t#S256 2019-05-25 22:34:28 +02:00
rsa_primes.js fix: limit calculation of missing RSA private components 2019-06-20 23:32:13 +02:00
secs.js feat: add JWT.sign/verify/decode 2019-02-27 22:38:30 +01:00
timing_safe_equal.js chore: cleanup 2019-02-10 17:45:55 +01:00
uint64be.js feat: add PBES2 KW 2019-01-27 11:17:30 +01:00
validate_crit.js refactor: add .d.ts and simplify errors 2019-02-25 21:27:39 +01:00