Filip Skokan
c5c985b1ab
refactor: use pem from asn1.js
2019-03-26 20:47:01 +01:00
Filip Skokan
12357f8ae1
refactor: source in asn1.js to remove some transitive dependencies
2019-03-26 18:24:10 +01:00
Filip Skokan
6172bcb18e
refactor: dry resolveNodeAlg
2019-03-26 12:57:21 +01:00
Filip Skokan
a6d83d1d8e
refactor: explicitly check EC curves supported
2019-03-26 09:42:22 +01:00
Filip Skokan
8892994922
refactor: revert the windows fix, bump keyto
2019-03-25 09:49:50 +01:00
Filip Skokan
fe0003603d
refactor: remove ec length, generate only returns keyobject
2019-03-20 18:46:36 +01:00
Filip Skokan
2c342eb008
chore: .gitignore source-built node binary
...
[skip ci]
2019-03-19 19:08:37 +01:00
Filip Skokan
307eaab609
docs: fix changelog.md
...
[skip ci]
2019-03-19 18:31:00 +01:00
Filip Skokan
77f962ba99
chore(release): 0.11.2
2019-03-19 18:28:12 +01:00
Filip Skokan
57f1692d99
fix: key.toJWK() fixed on windows
...
* ci: try different os builds
* fix: key.toJWK() fixed on windows
resolves #17
2019-03-19 18:26:42 +01:00
Filip Skokan
925d47c65f
fix: internal symbol method is now really a symbol
2019-03-17 18:34:22 +01:00
Filip Skokan
6acd6d42d4
style: alg containers
2019-03-17 17:55:55 +01:00
Filip Skokan
671ef9dfd2
chore(release): 0.11.1
2019-03-17 17:45:14 +01:00
Filip Skokan
9af295bdb2
fix: restrict RS key algorithms by the key's bit size
2019-03-17 17:44:36 +01:00
Filip Skokan
1dc58fc9a4
chore(release): 0.11.0
2019-03-16 09:50:34 +01:00
Filip Skokan
e936d547ce
fix: use correct salt length for RSASSA-PSS
...
https://tools.ietf.org/html/rfc7518 section 3.5 states that the size of
the salt value is the same size as the hash function output.
This is to accomodate that requirement and achieve interop with other
conform implementations. This also prompted enforcing the proper key
sizes.
2019-03-16 09:48:47 +01:00
Filip Skokan
cc70c5d4ec
fix: all JWA defined RSA operations require key of 2048 or more
...
BREAKING CHANGE: all [JWA](https://tools.ietf.org/html/rfc7518 ) defined
RSA based operations require key size of 2048 bits or more.
2019-03-16 09:44:34 +01:00
Filip Skokan
d3853f0182
refactor: move defineLazyComponents to a private Base key function
2019-03-13 22:40:28 +01:00
Filip Skokan
ea26b752b4
chore(release): 0.10.0
2019-03-12 20:13:00 +01:00
Filip Skokan
be215f48cd
test: check unsupported JWA algorithms
2019-03-11 22:35:00 +01:00
Filip Skokan
d15be00284
test: check unsupported key object import fails
2019-03-11 22:29:07 +01: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
ed7c38be9c
docs: link OKP to github issue
2019-03-11 21:54:36 +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
d6923bdb31
docs: quick readme examples showing protected header
...
[skip ci]
2019-03-11 15:52:36 +01:00
Filip Skokan
6453e1ffc9
refactor: require order and base64url split encode buffer/string
2019-03-06 22:12:43 +01:00
Filip Skokan
3d8b3a5fe8
test: re-enable lint, test with min node, remove BLNS
2019-03-06 21:50:25 +01:00
Filip Skokan
21ba5f3950
chore(release): 0.9.2
2019-03-04 23:08:13 +01:00
Filip Skokan
68548603da
fix: "dir" is only available on keys with correct lengths
2019-03-04 23:04:55 +01:00
Filip Skokan
be3f4e4b7e
fix: do not 'in' operator when importing keys as string
2019-03-04 22:56:25 +01:00
Filip Skokan
d5fc18e4d2
refactor: less relying on KeyObject prototype
2019-03-04 20:04:42 +01:00
Filip Skokan
b9908e8a1e
docs: vertical bar to |
2019-03-04 09:55:19 +01:00
Filip Skokan
61d844c4ce
docs: typos and more differences
2019-03-04 09:52:20 +01:00
Filip Skokan
63818e3e7b
docs: update changelog.md
...
[skip ci]
2019-03-02 12:51:24 +01:00
Filip Skokan
a8b64b4d41
chore(release): 0.9.1
2019-03-02 11:04:07 +01:00
Filip Skokan
1355016884
docs: fix typo
2019-03-02 10:43:43 +01:00
Filip Skokan
e5e02fc287
fix: only import RSA, EC and oct successfully
2019-03-02 10:43:17 +01:00
Filip Skokan
f9707f3bd6
chore: trigger ci
2019-03-01 18:42:38 +01:00
Filip Skokan
4460c4c88f
refactor: key keyObject property is private
2019-02-28 21:08:31 +01:00
Filip Skokan
ca4355be19
chore: include third party license
2019-02-27 22:51:38 +01:00
Filip Skokan
dba1abdaf3
feat: add JWT.sign/verify/decode
2019-02-27 22:38:30 +01:00
Filip Skokan
b656702276
docs: documentation, README, .github files, getting ready to publish
2019-02-26 23:46:58 +01:00
Filip Skokan
8dd95426dc
feat: add JWKS.KeyStore.fromJWKS() and JWK.isKey()
2019-02-26 22:51:25 +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
d08a2d6ad1
docs: update README.md
2019-02-24 18:41:23 +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