Filip Skokan
2dbd3ed43a
feat: add OKP Key and EdDSA sign/verify support
...
BREAKING CHANGE: node.js minimal version is now v12.0.0 due to its
added EdDSA support (crypto.sign, crypto.verify and eddsa key objects)
resolves #12
2019-04-23 14:30:49 +02:00
Filip Skokan
d51cfb5a7e
chore(release): 0.12.0
2019-04-07 14:13:27 +02:00
Filip Skokan
e21fea106b
revert: add EC P-256K JWK and ES256K sign/verify support
...
BREAKING CHANGE: removing ES256K alg and EC P-256K crv support until the
IETF WG decides on what the final names will be.
2019-04-07 14:13:10 +02:00
Filip Skokan
9e763ac296
chore(release): 0.11.5
2019-04-04 11:10:27 +02:00
Filip Skokan
65db7e0ddd
feat: add key.thumbprint always returning the JWK Thumbprint (RFC7638)
2019-04-04 11:04:06 +02:00
Filip Skokan
2dd7053a4a
feat: add key.secret<boolean> and key.type<string> for completeness
2019-04-01 20:26:47 +02:00
Filip Skokan
70b944634a
ci: update .travis.yml to avoid stages and include nightly
2019-03-29 22:50:45 +01:00
Filip Skokan
293198177a
ci: change how codecov comments on PRs
2019-03-29 09:33:06 +01:00
Filip Skokan
e296204929
ci: change how codecov reports states
2019-03-29 09:29:33 +01:00
Filip Skokan
264444b642
chore(release): 0.11.4
2019-03-28 23:45:50 +01:00
Filip Skokan
946d9df1ca
fix: remove unintended exposure of private material via enumerables
2019-03-28 23:45:20 +01:00
Filip Skokan
988bbafdd6
refactor: skip validating jws disjoint when header's missing
2019-03-28 23:32:02 +01:00
Filip Skokan
2ad22792ff
refactor: use exported KeyObject when available
2019-03-28 20:51:00 +01:00
Filip Skokan
764b86309c
fix: properly restrict EC curves in generate(Sync)
2019-03-28 09:42:27 +01:00
Filip Skokan
3854431380
docs: cleanup docs/readme.md
...
[skip ci]
2019-03-27 15:12:21 +01:00
Filip Skokan
fb7ae33ce2
chore: remove done todos
...
[skip ci]
2019-03-27 11:17:59 +01:00
Filip Skokan
a47b5a71b6
chore(release): 0.11.3
2019-03-27 11:15:15 +01:00
Filip Skokan
cfa4222e6c
fix: throw on unsupported EC curves
2019-03-27 11:13:01 +01:00
Filip Skokan
ce03ea6d9a
chore: add secp256k1 to package.json keywords
2019-03-27 10:40:18 +01:00
Filip Skokan
2e33e1cc2b
feat: add EC P-256K JWK and ES256K sign/verify support
2019-03-27 10:35:02 +01:00
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