Commit Graph

2022 Commits

Author SHA1 Message Date
chesnokovilya
1bd5689d75 Implement ECDH using Web Crypto for supported (NIST) curves (#914) 2019-06-27 19:21:32 +02:00
Daniel Huigens
32b4f2bd27
Fix grunt-saucelabs (#917)
Update Sauce Labs Tunnel
2019-06-26 23:32:21 +02:00
Daniel Huigens
3a7db8ea60 Release new version 2019-06-24 20:17:15 +02:00
Daniel Huigens
6a60d92e8a Update web-stream-tools 2019-06-24 20:09:43 +02:00
Daniel Huigens
17c994865b Release new version 2019-06-21 16:23:53 +02:00
Sam
c7fb8d8fe7 Node detection: base on process instead of window (#911) 2019-06-21 15:43:56 +02:00
Remy
b035f2ea46 Fix nodejs API crypto link (#909) 2019-06-07 14:57:09 +02:00
Daniel Huigens
f00f256f50 Release new version 2019-06-06 16:17:05 +02:00
Daniel Huigens
5a17648922 Fix error message when reformatting a GNU stripped-key with a passphrase 2019-06-06 16:08:22 +02:00
Daniel Huigens
43441bfe0d openpgp.reformatKey: Fix key preferences for signing subkeys 2019-05-23 17:37:20 +02:00
Daniel Huigens
72e3b491d7 Release new version 2019-05-16 16:23:36 +02:00
Daniel Huigens
5987e99c5b
Merge pull request #901 from wiktor-k/notations
Expose all signature notations
2019-05-16 13:31:47 +02:00
Wiktor Kwapisiewicz
82799390de
Fix signatures with critical notations
Previously the signature parsing function ignored critical bit on
notations.

This change checks for notations that are marked "critical" but are not
on the known notations list (controlled by config array
`openpgp.config.known_notations`) and triggers parse error if such
a notation have been encountered.

See: #897.
2019-05-16 09:57:58 +02:00
Wiktor Kwapisiewicz
16b12d7f55
Expose all signature notations
Previous implementation used an object to hold notations so if multiple
notations had the same key name only the last one was visible.

After this change notations are exposed as an array of key-value pairs
that can be converted to a map through `new Map(notations)`.

See #897.
2019-05-09 12:12:22 +02:00
Daniel Huigens
54f3eb5870 Release new version 2019-05-06 13:17:19 +02:00
Daniel Huigens
ee01883a52
Merge pull request #894 from twiss/dont-throw-verification-errors-workers
Fix one-pass signature verification when using a Worker
2019-05-05 00:01:14 +02:00
Daniel Huigens
e3bcce275e
Merge pull request #865 from twiss/gnu-stripped-keys
Support GNU export-secret-subkeys extension
2019-05-05 00:00:38 +02:00
Daniel Huigens
df8364930b Fix one-pass signature verification when using a Worker 2019-05-03 18:40:31 +02:00
Daniel Huigens
1090464a70 Throw more informative error when trying to use a key with missing params
E.g. when trying to sign with a GPG stripped key without a valid signing
subkey.
2019-05-03 14:29:43 +02:00
Daniel Huigens
19d14b521b Add test for signing with GNU stripped key 2019-05-03 14:07:10 +02:00
Daniel Huigens
bc756d0ed4 Make key.isDecrypted() and key.encrypt() consistent for gnu-dummy keys 2019-05-03 12:39:28 +02:00
Daniel Huigens
10e10effb6 Support GNU export-secret-subkeys extension 2019-05-03 12:39:28 +02:00
Daniel Huigens
dff2dcd9a7 Release new version 2019-05-02 14:01:48 +02:00
Daniel Huigens
39bb4dde92
Merge pull request #893 from twiss/tweetnacl
Use tweetnacl's 25519 implementation
2019-05-02 12:57:18 +02:00
Daniel Huigens
6689f93465 Fix flaky test in Edge 2019-05-02 12:55:08 +02:00
Daniel Huigens
f322aaf715 CI: Require Chrome instead of Firefox to succeed
Sauce Labs seems to be having issues with Firefox.
2019-05-02 12:08:08 +02:00
Daniel Huigens
34e6eacb2f Don't attempt to use workers if they fail to load 2019-05-02 12:08:08 +02:00
Daniel Huigens
ecc8ae2a09 Don't include package.json 2019-05-02 12:08:08 +02:00
Daniel Huigens
ffa8344809 Only include tweetnacl functions we need 2019-05-02 12:08:08 +02:00
Daniel Huigens
caa712c337 Fix using local dependencies 2019-05-02 12:08:08 +02:00
Daniel Huigens
e637e75891 Clean up ECDH API 2019-05-02 12:08:08 +02:00
Daniel Huigens
ca0322bbea Use tweetnacl's X25519 implementation 2019-05-02 12:08:08 +02:00
Daniel Huigens
be1b4df140 Use tweetnacl's Ed25519 implementation 2019-05-02 12:08:08 +02:00
Si Feng
d2c38693f5 Put comment before email when generating UIDs (#892) 2019-05-01 13:12:52 +02:00
Daniel Huigens
cc4a9119a3
Add Node 12 to CI (#889) 2019-04-29 15:58:59 +02:00
Daniel Huigens
d5e87dc6f4
Move non-external dependencies to devDependencies (#888)
They are not needed to use the dist file.
2019-04-29 13:45:58 +02:00
Daniel Huigens
7fb2901ede
Fix detached signing of messages created from streams (#887) 2019-04-29 13:45:09 +02:00
Thomas Oberndörfer
038d8466fe Add date parameter to user.verifyAllCertifications and user.verify methods (#871)
Also, in user.verifyCertificate, fix certificate.isExpired check for keys with future creation date.
2019-03-08 17:33:36 +01:00
Sanjana Rajan
1ac84484bd Release new version 2019-03-04 06:32:51 -08:00
Daniel Huigens
a9599fea42
Work around go crypto bug in ECDH messages (#869) 2019-03-04 13:53:19 +01:00
Sanjana Rajan
10d3bca6d3 Release new version 2019-02-28 10:39:10 -08:00
Thomas Oberndörfer
b1be7d1202 Fix merging multiple subkey binding signatures (#868) 2019-02-28 10:34:46 -08:00
Sanjana Rajan
b9abf80d5a Release new version 2019-02-25 13:33:56 -08:00
Daniel Huigens
76ce33d96b Use ES6 build of web-streams-polyfill in non-compat builds 2019-02-25 20:56:33 +01:00
Daniel Huigens
ab0892bd64 Update web-streams-polyfill
Fixes a memory leak in Node.js (see
https://github.com/MattiasBuelens/web-streams-polyfill/pull/8).
2019-02-25 20:56:33 +01:00
Stephen Simpson
e17ad669a1 Expand git hashes in dependencies
Expanded the git hashes as pnpm cannot install via short hashes.
2019-02-25 20:55:59 +01:00
Daniel Huigens
a291a803fb Fix reading indeterminate-length packets in IE11
Broken in 5dcaf85.
2019-02-25 04:41:58 +01:00
Daniel Huigens
cd6eadd6e0 Fix reading empty partial body part (again)
Broken in 5dcaf85.
2019-02-25 04:34:28 +01:00
Daniel Huigens
5dcaf85f5a Optimize reading large messages with lots of tiny partial body parts (#864)
* Fix pako decompression

* Optimize base64-decoding

* Don't stream-parse packets when not stream-reading data
2019-02-21 08:33:55 -08:00
Daniel Huigens
54fc1dde3d Throw error before decrypting in non-MDC packets 2019-02-12 11:49:38 +01:00