larabr
a7640bce52
Use AEAD protection by default ( #1062 )
2021-02-09 19:25:20 +01:00
Daniel Huigens
ec720cc096
Remove browsers that always fail from Browserstack tests
2021-02-09 19:25:20 +01:00
Daniel Huigens
2bc24f354b
Return only one key in key.read[Armored], add readAll[Armored]
2021-02-09 19:25:20 +01:00
Daniel Huigens
3817cca3c6
Throw on unarmored messages with garbage data appended
2021-02-09 19:25:20 +01:00
Daniel Huigens
76a8f11780
Don't mutate key in openpgp.encryptKey/decryptKey
2021-02-09 19:25:20 +01:00
Daniel Huigens
9394fec1f4
Throw in openpgp.initWorker if worker failed to load
2021-02-09 19:25:20 +01:00
Daniel Huigens
29f29f6c6e
Unit tests: Fix autoscroll with skipped tests
2021-02-09 19:25:20 +01:00
Daniel Huigens
35c13212dd
Remove unnecessary calls to convertStreams()
2021-02-09 19:25:20 +01:00
Daniel Huigens
ef7c38860b
Don't unnecessarily return objects in top-level functions
...
openpgp.encrypt, sign, encryptSessionKey, encryptKey and decryptKey now
return their result directly without wrapping it in a "result" object.
Also, remove the `detached` and `returnSessionKey` options of
openpgp.encrypt.
2021-02-09 19:25:20 +01:00
Daniel Huigens
be7b174df4
Add openpgp.generateSessionKey
2021-02-09 19:25:20 +01:00
Daniel Huigens
a9a9a90ae2
Skip test for OpenPGP.js inside an application worker in old Edge
...
Old Edge doesn't support crypto.getRandomValues inside a Worker.
2021-02-09 19:25:20 +01:00
Daniel Huigens
3a84442b5f
Don't use native streams in old Edge
2021-02-09 19:25:20 +01:00
Daniel Huigens
2fffc76060
Don't overwrite Web Streams Polyfill to globals
...
Instead, use the ponyfill that's now included in web-stream-tools.
Also, convert back to native ReadableStream when we used the ponyfill.
2021-02-09 19:25:20 +01:00
Daniel Huigens
430145a8b1
Update web-stream-tools
...
Fixes reading Node streams in some cases.
2021-02-09 19:25:20 +01:00
Daniel Huigens
37d30c5003
Return strings in Node streams where appropriate
2021-02-09 19:25:20 +01:00
Daniel Huigens
95eb43a3c2
Return data
instead of message
in encryptSessionKey
...
Add `armor=true/false` parameter to decide whether `data` is an armored
String or an unarmored Uint8Array.
2021-02-09 19:25:20 +01:00
Daniel Huigens
08d6b276e3
Return data as string in openpgp.verify by default
...
Add format='utf8'/'binary' param to openpgp.verify in order to be able
to return binary data instead.
2021-02-09 19:25:20 +01:00
Daniel Huigens
7225251af8
Return Uint8Array(Stream) instead of object when armor = false
2021-02-09 19:25:20 +01:00
Daniel Huigens
1f237e6a9c
Release new version
2021-01-24 16:47:40 +01:00
larabr
38ec5314d4
Fix ElGamal param range and PKCS1 decoding ( #1169 )
...
* Fix ElGamal sampling range
* Stricter PKCS1 decoding
2021-01-20 14:09:52 +01:00
Daniel Huigens
d5373ef361
Update tweetnacl-js
2021-01-20 14:09:10 +01:00
Daniel Huigens
21f4ba46f8
Release new version
2020-12-07 20:31:43 +01:00
Yarmo Mackenbach
a4b56c944a
WKD: Fix "TypeError: fetch is not a function" in Node.js environment ( #1181 )
2020-11-17 10:03:25 +01:00
larabr
08fc7b32ca
Fix and test dummy key conversion ( #1172 )
...
Keys converted using makeDummy() were not serialised correctly as they were
treated as unencrypted keys.
2020-11-10 17:32:44 +01:00
Chen Longhao
929b016948
Fix documentation of the HKP keyId option ( #1151 )
2020-09-09 12:26:03 +02:00
Daniel Huigens
aa89893773
Release new version
2020-08-28 16:42:25 +02:00
larabr
2eab8a1ebc
Add config option to allow insecure decryption with RSA signing keys ( #1148 )
2020-08-28 16:09:56 +02:00
larabr
cc1bdcbae8
Allow decryption with revoked keys ( #1135 )
...
However, when decrypting session keys, check that the public key
algorithm matches that of the decryption key.
2020-08-18 15:49:27 +02:00
Wiktor Kwapisiewicz
2e26509723
Add test case for unknown binary notations ( #1140 )
2020-08-18 13:37:36 +02:00
Wiktor Kwapisiewicz
0712e8af2d
Support non-human-readable notation values ( #983 )
...
This change adds support for binary (non-human-readable) values in
signature notations through `rawNotations` property on signature objects.
Human-readable notations will additionally appear in `notations` object
where the value of the notation will be deserialized into a string.
Additionally the check for human-readable flag was modified to check the
existence of the flag instead of comparison with the whole value.
2020-08-18 11:07:58 +02:00
larabr
25bf080871
Add SecretKey.prototype.makeDummy ( #1131 )
2020-08-03 15:52:50 +02:00
larabr
e29de76dc1
Use correct algorithm in ECC validation tests
2020-07-23 19:21:34 +02:00
Daniel Huigens
34b0928cca
Release new version
2020-07-21 15:21:20 +02:00
larabr
14f244a80f
Fix decryption tests
2020-07-17 15:14:21 +02:00
Yarmo Mackenbach
de360e200c
Handle CORS errors during WKD lookup ( #1125 )
...
Also, throw an error instead of returning null when the server returned
an error status.
2020-07-17 14:22:54 +02:00
larabr
8783caa828
Fix key validation tests
2020-07-16 22:56:06 +02:00
Yarmo Mackenbach
5801169432
Refactor WKD lookup code ( #1123 )
...
* Replace chained then by await
* Improve fetch fallback flow
2020-07-15 15:12:55 +02:00
Daniel Huigens
20c468cbd7
Release new version
2020-07-14 18:22:46 +02:00
Daniel Huigens
3218f7b7f8
Don't zero-copy transfer buffers from the worker by default
2020-07-14 18:15:08 +02:00
Daniel Huigens
1c41c72520
Release new version
2020-07-13 20:24:55 +02:00
Yarmo Mackenbach
4af9b51915
Add support for advanced WKD lookup ( #1115 )
2020-07-13 20:08:30 +02:00
larabr
00c5f38689
Cipher-specific key validation ( #1116 )
...
Also, check binding signatures for decryption keys.
Also, do not always fallback on Web Crypto ECC errors.
2020-07-13 19:57:33 +02:00
cpupower
6988fdfee1
Fix stream-encrypting+signing a message using the Worker ( #1112 )
...
- Include fromStream property when cloning a Message
- Restore fromStream property in packetlistCloneToMessage
2020-06-25 12:53:27 +02:00
larabr
35b0012f2f
Pass around KDF params as object ( #1104 )
2020-06-03 14:16:54 +02:00
Matthew Shaylor
320efc2435
Fix keyId types in JSDoc comments ( #1100 )
2020-05-18 12:22:31 +02:00
Roman Zechmeister
1b91d428f0
Also create issuer fingerprint subpacket for v4 keys ( #1097 )
...
Do not limit creation of signatures with issuer fingerprint subpacket to v5 keys.
2020-05-11 21:45:04 +02:00
Daniel Huigens
2c6cbc4cb2
Release new version
2020-04-22 19:28:01 +02:00
Daniel Huigens
5d71ae8691
Fix normalizing \n after \r\n
...
Broken in c4a7455
.
2020-04-22 19:09:50 +02:00
Daniel Huigens
35b4380909
Release new version
2020-04-21 16:05:49 +02:00
Ilya Chesnokov
674e0217fc
Support compressed data packets with algorithm=uncompressed ( #1085 )
2020-04-21 16:00:38 +02:00