298 Commits

Author SHA1 Message Date
Bart Butler
0becccd1c8 deal with empty encrypted data correctly 2017-12-22 13:26:53 -08:00
Bart Butler
20c1dc06a1 do not echo data back to caller for detached signing 2017-12-05 11:44:01 -08:00
Sanjana Rajan
658f69e708 returnSessionKey flag in encrypt function 2017-12-02 11:04:29 -08:00
Sanjana Rajan
bc77d3e291 wording 2017-12-01 21:30:19 -08:00
Sanjana Rajan
d308b7bd6f allow sessionKey param in top level encrypt 2017-12-01 21:25:43 -08:00
Bart Butler
234c76ef74 webCrypto in webkit needs 2048 bits minimum for keygen 2017-11-28 11:26:52 -08:00
Bart Butler
058a0ec3b2 do not use arrow syntax for tests (old node/browser versions) 2017-11-28 10:18:26 -08:00
Sanjana Rajan
e016f92722 fix assert is not defined issue 2017-11-27 22:17:13 -08:00
Sanjana Rajan
1499c67675 don't use done inside promises 2017-11-27 22:17:13 -08:00
Bart Butler
d15b1f97c4 remove stack trace concatenation (non-standard), modify error message only 2017-11-27 19:06:25 -08:00
Bart Butler
5dce095b50 Error object cannot be used with structured clone, pass stack 2017-11-27 15:44:04 -08:00
Bart Butler
f1dc989260 Merge pull request #606 from FlowCrypt/issue_602_reformatkey_error
reformatKey: Key not decrypted error + test | #602
2017-11-27 13:22:17 -08:00
Bart Butler
a7726ff4d3 Merge pull request #605 from FlowCrypt/issue_598_armor_headers
improve armor header validation + tests | #598
2017-11-27 13:21:42 -08:00
Justin Chase
cf6db68163 Added a test to verify error message 2017-11-25 12:24:53 -06:00
Tom James Holub
cc3b64a583 reformatKey: Key not decrypted error | #602 2017-11-25 12:24:44 +08:00
Tom James Holub
513316917d improve armor header validation + tests | #598 2017-11-25 10:57:41 +08:00
Justin Chase
136bd71d71 Minor whitespace changes 2017-11-24 19:56:15 -06:00
Justin Chase
42fffbe039 Remove lambda in test 2017-11-24 17:54:44 -06:00
Justin Chase
c80708269c Added a test verifying innerError 2017-11-24 16:12:37 -06:00
Kelly Martin
4f2ec8425e Replace expired subkeys with three other subkeys,
One is an expired key for encryption, one is a non-expiring key for
only signatures, and one is a non-expiring key for encryption.
2017-09-15 11:35:37 -05:00
Thomas Oberndörfer
9d726e6424 Set keyExpirationTime for subkey binding signature 2017-08-30 16:09:53 +02:00
Patrick Brunschwig
7a2abb4d9c fixed broken Testcase for improperly formatted Armor Header 2017-08-19 22:07:36 +02:00
Bart Butler
a2cac61242 Correct misspelling 2017-07-22 09:38:44 -07:00
Tom James Holub
f6d19ed304 util.readNumber: overflow test added | #497 2017-07-22 09:27:36 -07:00
Tom James Holub
5136c24602 test added: find a valid subkey binding signature among many invalid ones | #527 2017-07-21 21:39:48 -07:00
Tom James Holub
8343343ea1 added missing checksum test with traling armor newline 2017-07-21 15:37:25 -07:00
Tom James Holub
3b27f56e89 tests extended - armor checksum validation | #563 2017-07-21 10:15:49 -07:00
Sanjana Rajan
e8ca36a430 remove console logs 2017-07-13 12:07:12 +02:00
Sanjana Rajan
4d5a69ad2d use message obj when signing uint8 array 2017-07-08 13:25:24 +02:00
Sanjana Rajan
89de3b78d0 more tests 2017-07-04 21:08:48 -07:00
Sanjana Rajan
9c88f70f21 add tests 2017-07-04 17:03:56 -07:00
Sanjana Rajan
0918f5a782 add tolerant mode which suppresses errors in reading non-data packets 2017-04-05 07:54:08 -07:00
Sanjana Rajan
b5d3c5bbbd signatureInput -> signature 2017-03-23 13:01:12 -07:00
Sanjana Rajan
6f36d65b22 improve test 2017-03-23 12:04:32 -07:00
Sanjana Rajan
37d5b1b7e0 upper level tests 2017-03-22 17:14:57 -07:00
Sanjana Rajan
73ab650366 initialize publicKeys to empty array, test case where signed message is decrypted without public keys to verify 2017-03-15 17:44:43 -07:00
Bart Butler
23195c2c98 remove useless test 2017-03-14 19:13:17 -07:00
Bart Butler
4a68712379 small test bugfix 2017-03-14 18:49:05 -07:00
Sanjana Rajan
1a6743fd59 return signature object inside verification object 2017-03-10 10:38:59 -08:00
Sanjana Rajan
5743fd9cfc added detached sig tests for high level openpgpjs functions 2017-03-07 13:59:18 -08:00
Sanjana Rajan
079ab96cc8 more tests 2017-03-07 13:59:17 -08:00
Sanjana Rajan
f09fe925ff add tests 2017-03-07 13:59:17 -08:00
Bart Butler
a7d31ef55f Merge pull request #417 from zartdinov/master
Added ability to sign and verify public keys
2017-03-05 12:24:37 -08:00
Bart Butler
09accc8cc5 fix key test 2017-02-27 11:06:36 -08:00
Aydar Zartdinov
81383752f7 Base functionality moved to User.prototype 2017-02-15 21:08:17 +03:00
Aydar Zartdinov
f6e3c37c52 Reverted top level api changes 2017-02-15 21:04:50 +03:00
Aydar Zartdinov
e56e7b3b3e Added ability to sign and verify public keys 2017-02-15 21:04:50 +03:00
Bart Butler
faf8207808 tests cannot use ES6 features 2017-02-13 22:25:46 -08:00
Sanjana Rajan
b3a5219d96 add test with reformatted key signing and encryption 2017-01-31 15:07:51 -08:00
Sanjana Rajan
38e5a455ea add some reformatting key tests 2017-01-31 14:16:34 -08:00