Commit Graph

1746 Commits

Author SHA1 Message Date
Daniel Huigens
77055f6dfe Don't zero-copy transfer buffers in Safari 11.1 and Chrome < 56
See https://bugs.webkit.org/show_bug.cgi?id=184254
and https://bugs.chromium.org/p/chromium/issues/detail?id=334408.
2019-01-15 20:16:59 +01:00
Sanjana Rajan
b904aef3a7 Release new version 2019-01-15 02:51:28 -08:00
Sanjana Rajan
a87d03a7bd
Merge pull request #838 from twiss/worker-buffer-transfer
Transfer buffers in workers
2019-01-15 01:24:00 -08:00
Sanjana Rajan
e3cae6c34f
Merge pull request #837 from benhc123/patch-3
Added link to license for informational purposes
2019-01-15 01:20:27 -08:00
Sanjana Rajan
df72a3e826
Merge pull request #840 from mmso/fix/minification
Upgrade to terser-js
2019-01-15 01:18:30 -08:00
mmso
9ce5b7ca0c
Upgrade to terser-js 2019-01-15 10:10:49 +01:00
Daniel Huigens
fe69cb882d Zero-copy transfer buffers when passing streams to workers 2019-01-09 15:18:59 +01:00
Daniel Huigens
625c6ea4b3 Zero-copy transfer buffers from the worker to the main thread 2019-01-09 15:18:56 +01:00
Daniel Huigens
c73b4536be Fix error handling in worker delegation 2019-01-09 15:06:15 +01:00
Ben Holden-Crowther
53237392f2
Added link to license for informational purposes 2019-01-09 12:03:49 +00:00
Sanjana Rajan
1fc0b254bf
Merge pull request #835 from benhc123/patch-2
Removed broken links
2019-01-08 16:02:40 -08:00
Ben Holden-Crowther
e52504b0fd
Removed broken links
Removed broken links in readme
2019-01-05 21:30:21 +00:00
Sanjana Rajan
92ba73402a Release new version 2019-01-03 07:03:26 -08:00
Sanjana Rajan
ffeb43ef04
Merge pull request #831 from twiss/web-crypto-cfb
Web Crypto CFB encryption, revision 2
2019-01-03 06:56:40 -08:00
Sanjana Rajan
37bc379663
Merge pull request #828 from tomholub/patch-1
Fix various JSDoc typos etc
2019-01-03 06:55:42 -08:00
Sanjana Rajan
b94031416d
Merge pull request #834 from benhc123/patch-1
Grammar improvement
2019-01-03 06:55:00 -08:00
Ben Holden-Crowther
fe3c9a0602
grammar improvement
built-in vs builtin
2019-01-03 14:24:47 +00:00
Sanjana Rajan
9b599c86b2
Merge pull request #827 from estelendur/double_is_readonly
Double is readonly
2019-01-02 15:15:22 -08:00
Esty Thomas
4458ea77f8
Revert "Adds dist changes derived from previous commit."
This reverts commit 6cd5152b16.
2019-01-02 18:01:22 -05:00
Sanjana Rajan
83623b3d32 Release new version 2019-01-02 14:46:49 -08:00
Daniel Huigens
1e5935dff3 Require recent Firefox on Sauce Labs to pass
We want at least one browser to pass. Firefox usually passes, so use
it to gauge whether the browsers pass.
2019-01-02 15:44:47 +01:00
Sanjana Rajan
4ce2dd28e1 update CFB tests 2019-01-02 15:44:45 +01:00
Daniel Huigens
31931c9b0d Simplify MDC verification 2019-01-02 15:13:00 +01:00
Daniel Huigens
3f1734ae7a Move CFB optimizations into cfb.js
So that uses of CFB other than sym_encrypted_integrity_protected.js
can benefit from them.

Also, implement CFB resync mode in terms of normal CFB rather than
separately (and duplicated).
2019-01-02 15:12:53 +01:00
Daniel Huigens
a891e0b4ea Web Crypto CFB encryption 2019-01-02 15:12:48 +01:00
Daniel Huigens
3e12314418 Add old Firefox back to Sauce Labs tests
To test compatibility with Pale Moon 27.
2019-01-02 15:11:26 +01:00
Daniel Huigens
3ed5bb3f31 Add Safari 9 to Sauce Labs tests 2019-01-02 14:12:30 +01:00
Daniel Huigens
5c5da1d86f Fix passing streams to workers in Safari 9
Safari 9 does not expose the MessagePort object in workers
(but does expose it on window, and also exposes MessageChannel
in workers).
2019-01-02 14:07:36 +01:00
Tom J
cf6278ddc9
Promisify hash.digest return value in jsdoc 2018-12-30 16:52:57 +00:00
Tom J
1054ed46d8
Fix util.js jsdoc Uint8Array typos 2018-12-29 11:44:26 +00:00
Esty Thomas
6cd5152b16
Adds dist changes derived from previous commit. 2018-12-27 12:30:43 -05:00
Esty Thomas
08fdb351d1
Renames var to prevent "double is read-only" error
Under some build systems, the function `double` produces an error:
```SyntaxError: "double" is read-only"```
The error goes away if the variable named `double` inside the function
named `double` is renamed. This commit renames it to `double_var` for
simplicity's sake.
2018-12-27 12:27:42 -05:00
Sanjana Rajan
ae1af189ef Release new version 2018-12-23 22:03:40 +01:00
Sanjana Rajan
6cd3eea099
Merge pull request #823 from openpgpjs/revert-820-web-crypto-cfb
Revert "Web Crypto CFB encryption"
2018-12-23 21:32:46 +01:00
Sanjana Rajan
836ad2805a
Revert "Web Crypto CFB encryption" 2018-12-23 18:42:24 +01:00
Sanjana Rajan
6c02b25aa5
Merge pull request #820 from twiss/web-crypto-cfb
Web Crypto CFB encryption
2018-12-23 17:55:25 +01:00
Sanjana Rajan
b105dc9b40
Merge pull request #812 from KAYLukas/fix/non-primary-non-revoked-sub-user
Prefer a non-revoked primary user
2018-12-23 17:52:07 +01:00
Sanjana Rajan
529973f2a2
Merge branch 'master' into fix/non-primary-non-revoked-sub-user 2018-12-23 17:52:01 +01:00
Sanjana Rajan
1bee091f2a
Merge pull request #815 from twiss/userIds
Make fromUserIds/toUserIds params plural, and accept arrays of User IDs
2018-12-23 17:50:46 +01:00
Sanjana Rajan
d8a22d87f6
Merge pull request #818 from openpgpjs/gitter
Add links to Gitter
2018-12-23 17:44:12 +01:00
Daniel Huigens
113c4a5f1e Add CAST5 to always-allowed algorithms
Golang's OpenPGP implementation uses CAST5 as its fallback.
(The spec mandates TripleDES as fallback.)

Fixes #819.
2018-12-22 00:00:47 -05:00
Daniel Huigens
95cc9cecf0 Disable Web Workers on browsers without MessageChannel support
For compatibility with old Firefox / Pale Moon 27
2018-12-21 23:09:41 -05:00
Daniel Huigens
3a2408d0f1 Fix stream.slice() in old Firefox 2018-12-21 17:00:45 -05:00
Daniel Huigens
2c5cb6ad9f Fix armor parsing in edge case where reader.readToEnd() returns new Uint8Array([]) 2018-12-21 17:00:45 -05:00
Daniel Huigens
cfe7ff9bb8 Simplify MDC verification 2018-12-21 13:04:23 -05:00
Daniel Huigens
9691dc9c99 Fix getExpirationTime with capabilities and an expired signing subkey
When the latest subkey with the requested capabilities is expired,
and the primary key has the requested capabilities, return the
primary key expiry instead.

Also, change isExpired/isDataExpired to still return false at the
date returned by getExpirationTime, so that the latter returns the
last date that the key can still be used.
2018-12-21 12:49:22 -05:00
Daniel Huigens
668264aa9a Move CFB optimizations into cfb.js
So that uses of CFB other than sym_encrypted_integrity_protected.js
can benefit from them.

Also, implement CFB resync mode in terms of normal CFB rather than
separately (and duplicated).
2018-12-20 17:50:01 -05:00
Daniel Huigens
3c10c582e2 Web Crypto CFB encryption 2018-12-20 12:27:23 -05:00
Daniel Huigens
937150b5bd Update web-stream-tools
Fix #784
2018-12-20 11:26:39 -05:00
Daniel Huigens
9b7a9d7a41
Add links to Gitter 2018-12-18 15:36:00 -05:00