Commit graph

30 commits

Author SHA1 Message Date
Filip Skokan
67a8601b09 feat: added Node.js lts/dubnium support for runtime supported features 2019-08-22 20:40:02 +02:00
Filip Skokan
418e311c8d chore: update dev deps, code lint 2019-07-21 18:05:57 +02:00
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
Filip Skokan
bfc3991e08 style: disable lint for now until tools catch up to private fields 2019-04-23 18:09:45 +02:00
Filip Skokan
23b874cc20 feat: add JWK key_ops support, fix .algorithms() op returns
BREAKING CHANGE: key.algorithms(op) un+wrapKey was split into correct
wrapKey/unwrapKey/deriveKey returns

BREAKING CHANGE: keystore.all and keystore.get `operation` option was
removed, `key_ops: string[]` supersedes it
2019-04-23 14:30:51 +02:00
Filip Skokan
a8ef20e450 refactor: use private instance fields where possible 2019-04-23 14:30:50 +02:00
Filip Skokan
6fe5cfc7be refactor: call out ECDH-ES specificly during KW 2019-03-11 22:21:56 +01:00
Filip Skokan
d349ba96d7 feat: keystore .all and .get operation option 2019-03-11 22:15:34 +01:00
Filip Skokan
17b37d3dc9 fix: do not list "dir" under wrap/unwrapKey operations
BREAKING CHANGE: "dir" is no longer returned as wrap/unwrapKey key
operation
2019-03-11 21:51:13 +01:00
Filip Skokan
2ad441831d refactor: use import rather then new 2019-03-11 21:28:45 +01:00
Filip Skokan
6453e1ffc9 refactor: require order and base64url split encode buffer/string 2019-03-06 22:12:43 +01:00
Filip Skokan
4460c4c88f refactor: key keyObject property is private 2019-02-28 21:08:31 +01:00
Filip Skokan
e9f5fdcfc8 feat: verify and decrypt complete option returns the matched key as well 2019-02-26 22:45:02 +01:00
Filip Skokan
0a6027d62a refactor: add .d.ts and simplify errors 2019-02-25 21:27:39 +01:00
Filip Skokan
546840d55c feat: throw JOSEMultiError when general formats and keystore use 2019-02-24 14:05:57 +01:00
Filip Skokan
77fe241aa7 feat: add decrypt/verify complete and algorithm options 2019-02-22 22:26:33 +01:00
Filip Skokan
cb718b545b feat: add JWE zip support 2019-02-21 23:39:32 +01:00
Filip Skokan
962c1f5021 feat: b64 (rfc7797) support 2019-02-21 22:51:32 +01:00
Filip Skokan
7bc3cc4c71 feat: resolving alg/enc, crit members, add tests 2019-02-20 23:12:08 +01:00
Filip Skokan
869438c798 refactor: jwe/jws serializer detection 2019-02-19 23:30:57 +01:00
Filip Skokan
505fe3c35d test: enc/dec input check tests 2019-02-17 09:29:44 +01:00
Filip Skokan
cc7d53a5ce feat: decrypt keystore support 2019-02-17 16:22:44 +01:00
Filip Skokan
cc89d4e02b refactor: cleanup, TODO chores 2019-02-10 21:39:59 +01:00
Filip Skokan
05251b81c6 feat: add messy encrypt/decrypt structure and shorthands 2019-02-09 20:04:15 +01:00
Filip Skokan
ac1bb358d7 test: jwe cookbook decrypt 2019-02-09 19:26:02 +01:00
Filip Skokan
f3265330c8 feat: add ECDH-ES direct and key agreement KW 2019-01-27 19:20:32 +01:00
Filip Skokan
3b278f1b6b feat: add AES GCM encrypt and KW 2019-01-26 19:52:09 +01:00
Filip Skokan
b247fc33df feat: encryption with AES_CBC_HMAC_SHA2 2019-01-26 14:24:12 +01:00
Filip Skokan
faa45bc03b refactor: remove generic errors 2019-01-20 19:37:27 +01:00
Filip Skokan
b8709756f0 chore: initial commit 2018-11-03 12:30:32 +01:00