Commit Graph

1619 Commits

Author SHA1 Message Date
Stanislav Mikhaylov
9f8c93dc04
Multiple public keys example 2018-10-09 10:51:38 +03:00
Stanislav Mikhaylov
ee1bcce275
Multiple public keys code
Update README.md with the code example by @avimar (https://github.com/openpgpjs/openpgpjs/issues/271#issuecomment-274901731). Think that it's too hard to find and missed in documentation.
2018-10-08 18:23:54 +03:00
Sanjana Rajan
a6e3ada438 Release new version 2018-10-04 23:43:46 -07:00
Sanjana Rajan
28ca741561
Merge pull request #778 from twiss/missing-sig-packet
Don't hang when signature packet corresponding to one-pass sig is missing
2018-10-04 23:21:02 -07:00
Daniel Huigens
3751731330 Don't hang when signature packet corresponding to one-pass sig is missing 2018-10-04 22:13:10 +02:00
Sanjana Rajan
150222bee5 Release new version 2018-09-25 16:38:51 -07:00
Sanjana Rajan
a35b4d28e0
Merge pull request #772 from twiss/getLatestValidSignature
Check validity and keyid of signatures before using them
2018-09-22 16:27:07 -07:00
Daniel Huigens
ac6b57781b Make isValid*KeyPacket inner functions 2018-09-22 23:03:10 +02:00
Daniel Huigens
bbcdacef8d Small documentation fixes 2018-09-22 23:03:10 +02:00
Daniel Huigens
b3af56b8a3 Ignore third-party revocation signatures
This check was removed in ec22dab.
2018-09-22 23:03:10 +02:00
Daniel Huigens
a1c47ecdea Indicate an error when parsing a key with an authorized revocation key
Since we will ignore revocation signatures from authorized revocation keys,
it is dangerous to use these keys.
2018-09-22 23:03:10 +02:00
Daniel Huigens
5cf61daa19 Check validity of signatures before using them 2018-09-22 23:03:10 +02:00
Sanjana Rajan
9614e8fc21
Merge pull request #773 from KAYLukas/master
Add missing browserify command
2018-09-20 12:18:03 -07:00
Kay Lukas
7a167fcccb Add missing browserify command 2018-09-20 14:20:47 +02:00
Sanjana Rajan
cccebd0272 Release new version 2018-09-17 13:18:05 -07:00
Sanjana Rajan
528e544d04
Merge pull request #771 from twiss/publish-compat-npm
Publish compat files to npm
2018-09-17 12:56:44 -04:00
Sanjana Rajan
7ad492783a
Merge pull request #769 from twiss/armor-newlines-consistency
Make newlines in armored objects consistent
2018-09-17 12:56:25 -04:00
Daniel Huigens
682548485a Publish compat files to npm 2018-09-14 14:30:58 +02:00
Daniel Huigens
d8840294cf Make newlines in armored objects consistent
- Don't add an extraneous newline at the end of base64-encoded data
  if it is a multiple of 60 characters long.
- Generate \r\n instead of \n in base64-encoded data.
- Generate one newline instead of two after END PGP PUBLIC KEY BLOCK
  for consistency with the other footers.
2018-09-13 14:32:35 +02:00
Sanjana Rajan
585ee3ff44
Merge pull request #766 from twiss/split-saucelabs-tests
Split Sauce Labs JS unit tests into multiple parts for slow browsers
2018-09-11 11:37:50 -07:00
Daniel Huigens
0a5461b8ba Split Sauce Labs JS unit tests into multiple parts for slow browsers
Sauce Labs has a timeout of 5 minutes (including emulator/browser
startup time).
2018-09-10 19:27:13 +02:00
Sanjana Rajan
aab04c2ad2 Release new version 2018-09-03 22:57:08 -07:00
Sanjana Rajan
d43437473f bugfix - when a requested key capability is not present, return null expiration 2018-09-03 21:59:58 -07:00
Sanjana Rajan
e616f8a242
Merge pull request #763 from twiss/decrypt-performance-fix
Decryption performance fix
2018-09-03 15:20:19 -07:00
Daniel Huigens
ca2f6d03b6 Slightly optimize base64 decoding 2018-09-03 18:23:38 +02:00
Daniel Huigens
dc722770d0 Don't process armored message data line per line
This cuts down on the overhead of streaming by reducing the amount
of calls to reader.read() and writer.write().
2018-09-03 18:23:38 +02:00
Sanjana Rajan
b004ddecb2
Merge pull request #699 from twiss/saucelabs-browsers
Update Sauce Labs browsers
2018-08-29 10:46:46 -07:00
Daniel Huigens
8a254b6001 Update Sauce Labs browsers 2018-08-29 17:34:38 +02:00
Daniel Huigens
564c645064 Fix intermittent "Data did not arrive early" test failure 2018-08-24 13:31:44 +02:00
Sanjana Rajan
8681ce8706
Merge pull request #755 from DanielRuf/test/add-nodejs-10
test: add Node.js 10 and remove Node.js 9
2018-08-22 12:44:29 -07:00
Daniel Ruf
aa0f1320ff
tests: force npm install instead of npm ci 2018-08-19 21:18:14 +02:00
Daniel Ruf
d94a3b8735
test: add Node.js 10 and remove Node.js 9 2018-08-17 15:43:12 +02:00
Sanjana Rajan
22c66c13a6 Release new version 2018-08-14 15:37:17 -07:00
Sanjana Rajan
d3236434b8 update release script 2018-08-14 15:34:54 -07:00
Daniel Huigens
7a4df6912b Fix intermittent failures of tests for stream error detection on Node 2018-08-14 21:49:17 +02:00
Sanjana Rajan
6214459dfb
Merge pull request #709 from twiss/stream
WIP: Streaming
2018-08-14 09:23:38 -07:00
Daniel Huigens
e055d86062 Update documentation 2018-08-14 17:50:26 +02:00
Daniel Huigens
6134b0dcaf Update README.md 2018-08-14 17:50:25 +02:00
Daniel Huigens
80453d29ad Update release script 2018-08-14 17:24:41 +02:00
Daniel Huigens
e5a3095894 Fix GCM and EAX in Edge
Web Crypto AES-GCM in Edge seems to require non-empty ADATA and an
explicit tagLength.

AES-CTR doesn't seem to be supported at all, so this disables Web Crypto
for EAX in Edge.
2018-08-14 17:24:41 +02:00
Daniel Huigens
08216bab13 Add npm run build to build both compat and non-compat files 2018-08-14 17:24:41 +02:00
Daniel Huigens
a2044a2833 Fix Sauce Labs Edge 2018-08-14 17:24:41 +02:00
Daniel Huigens
4bdc5e92ab Add --compat option
Without it, the generated build is for recent versions of
Chrome, Firefox, Safari and Edge.

With it, the generated build is for IE11+.
2018-08-14 17:24:41 +02:00
Daniel Huigens
8170682e54 Replace build_debug target with --dev option
The --dev option also works with browsertest and any other targets
that depend on a build.
2018-08-14 17:24:40 +02:00
Daniel Huigens
c705f475b7 Switch back to hash.js SHA512
asmcrypto.js SHA512 is huge (75kB, 7kB gzipped).

This partially reverts fadcc4b5.
2018-08-14 17:24:40 +02:00
Daniel Huigens
d1626a7a51 Disable some tests on Sauce Labs
Since we still run the full test suite on Node.js, this would
only no longer catch bugs which are specific to

- Browser non-draft04 GCM (and don't manifest in draft04 GCM,
  and don't manifest in Node.js non-draft04 GCM)
- Browser OCB (which is not natively implemented in the browser)
- Browser V5 Keys
2018-08-14 17:24:40 +02:00
Daniel Huigens
00a2c0c0c2 Support unicode surrogate code points 2018-08-14 17:24:40 +02:00
Daniel Huigens
a2f53b2ce2 Speed up initial builds 2018-08-14 17:24:40 +02:00
Daniel Huigens
9bf7bbf45e Don't generate a new key for each encryption mode in tests 2018-08-14 17:24:39 +02:00
Daniel Huigens
67b067b1da Remove duplicate tests
Many tests would run for every encryption mode, or for both V4 and V5 keys,
without there being any difference between the different test runs.

`grunt coverage` before and after this commit reports almost identical
statistics, providing some confidence that no code coverage was lost.
2018-08-14 17:24:39 +02:00