Commit graph

34 commits

Author SHA1 Message Date
Filip Skokan
d0a26bdb37 refactor(node,webcrypto): remove unnecessary workaround 2021-04-07 10:33:45 +02:00
Filip Skokan
dab4b2f03e fix(node): check CryptoKey algorithm & usage before exporting KeyObject 2021-04-02 00:01:57 +02:00
Filip Skokan
373b83024c refactor: ecdh re-using existing APIs 2021-04-01 13:34:44 +02:00
Filip Skokan
edb83a846a fix: assert KeyLike input types, change "any" types to "unknown" 2021-03-30 17:53:53 +02:00
Filip Skokan
d3d4acd8be fix(node): crypto.verify callback invocation with a private keyobject 2021-03-26 14:48:34 +01:00
Filip Skokan
ae9a7f4186 feat(node): use libuv threadpool to verify in node >= 15.12.0 2021-03-17 14:11:47 +01:00
Filip Skokan
cf5074e7e1 feat(node): use libuv threadpool to sign in node >= 15.12.0 2021-03-17 14:11:15 +01:00
Filip Skokan
7f3cc44bd0 feat(node): use native JWK export in node >= 15.9.0 2021-03-17 14:10:50 +01:00
Filip Skokan
f0c2a64728 feat(node): use native JWK import in node >= 15.12.0 2021-03-17 14:10:11 +01:00
Filip Skokan
e0adf49e57 fix: swallow invalid signature encoding errors 2021-03-11 14:56:57 +01:00
Filip Skokan
484e04ca8e refactor: use nullish coalescing instead of logical OR 2021-03-03 10:55:22 +01:00
Filip Skokan
433f020246 fix(electron): properly ASN.1 encode [0x00] when converting RSA JWKs 2021-03-03 00:00:39 +01:00
Filip Skokan
a5a6c4dc9f fix(electron): only call (de)cipher.setAAD() when aad is not empty 2021-03-02 23:58:48 +01:00
Filip Skokan
fc584b2efd fix: node runtime json fetch handles connection errors properly 2021-02-10 13:36:29 +01:00
Filip Skokan
e8d41a9335 feat: allow CryptoKey instances in a regular non-webcrypto node runtime 2021-02-04 17:39:28 +01:00
Filip Skokan
bd1b7c4812 refactor(typescript): dont mess with the node types 2021-01-28 16:25:08 +01:00
Filip Skokan
69a7edea0a refactor: explicit new uint8array arg 2021-01-28 16:16:12 +01:00
Filip Skokan
d2a574818a refactor: remove checking for secure context 2021-01-28 16:13:53 +01:00
Filip Skokan
c068e46c68 refactor: src/runtime/node/fetch.ts 2021-01-21 18:16:14 +01:00
Filip Skokan
2e5800535a fix: workaround downstream dependency issues messing with http
ref #154
2021-01-20 17:07:03 +01:00
Filip Skokan
ad88ee2cd5 perf: use KeyObject.prototype asymmetricKeyDetails when available 2021-01-18 13:50:42 +01:00
Filip Skokan
808f06cd08 perf: use 'base64url' encoding when available in Node.js runtime 2021-01-18 13:50:37 +01:00
Filip Skokan
626d91f201 refactor: iv and cek generators are not async 2020-12-17 19:02:07 +01:00
Filip Skokan
6abd2ef962 lint: lint with upgraded deps 2020-12-17 13:42:02 +01:00
Filip Skokan
55e8bfed32 style: use <> type casting syntax 2020-12-16 11:11:34 +01:00
Filip Skokan
175f273819 fix(typescript): ref dom lib via triple-slash to fix some compile issues
closes #126
2020-12-14 16:41:59 +01:00
Filip Skokan
e72af2742e test: add coverage for generate key pair options 2020-12-01 12:12:24 +01:00
Filip Skokan
5f7a0e9055 feat: allow specifying modulusLength when generating RSA Key Pairs
resolves #121
2020-12-01 12:12:24 +01:00
Filip Skokan
29373633bc fix(typescript): refactored how types are published
resolves #119
2020-11-26 18:53:01 +01:00
Filip Skokan
38494a8882 feat: allow http.Agent and https.Agent passed in remote JWK Set 2020-11-22 14:53:25 +01:00
Filip Skokan
ce521d567b refactor: less for in, added type checks, error messages 2020-11-22 12:44:27 +01:00
Filip Skokan
7a8418eadd feat: added "KeyLike to JWK" module
resolves #109
2020-11-22 12:44:27 +01:00
Filip Skokan
8bc4c67fd0 src: runtime declarations 2020-11-15 13:17:21 +01:00
Filip Skokan
357fe0b964 feat: Revised API, No dependencies, Browser Support, Promises
BREAKING CHANGE: Revised, Promise-based API
BREAKING CHANGE: No dependencies
BREAKING CHANGE: Browser support (using [Web Cryptography API](https://www.w3.org/TR/WebCryptoAPI/))
BREAKING CHANGE: Support for verification using a remote JWKS endpoint
BREAKING CHANGE: Experimental Node.js libuv thread pool based runtime (non-blocking 🎉)
2020-11-14 18:26:46 +01:00