Bart Butler
2a9a1b4846
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
f666e400fa
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
589fbb19d6
Added a test to verify error message
2017-11-25 12:24:53 -06:00
Tom James Holub
d0d0874268
reformatKey: Key not decrypted error | #602
2017-11-25 12:24:44 +08:00
Tom James Holub
4495df0f42
improve armor header validation + tests | #598
2017-11-25 10:57:41 +08:00
Justin Chase
15e39a51b0
Minor whitespace changes
2017-11-24 19:56:15 -06:00
Justin Chase
f4cf6d7382
Remove lambda in test
2017-11-24 17:54:44 -06:00
Justin Chase
bf6c2b9319
Added a test verifying innerError
2017-11-24 16:12:37 -06:00
Kelly Martin
c413d09069
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
e3eb298ab7
Set keyExpirationTime for subkey binding signature
2017-08-30 16:09:53 +02:00
Patrick Brunschwig
79c8a83cea
fixed broken Testcase for improperly formatted Armor Header
2017-08-19 22:07:36 +02:00
Bart Butler
265fa62601
Correct misspelling
2017-07-22 09:38:44 -07:00
Tom James Holub
bcf4a114a7
util.readNumber: overflow test added | #497
2017-07-22 09:27:36 -07:00
Tom James Holub
812e8ffe31
test added: find a valid subkey binding signature among many invalid ones | #527
2017-07-21 21:39:48 -07:00
Tom James Holub
10896c2cbf
added missing checksum test with traling armor newline
2017-07-21 15:37:25 -07:00
Tom James Holub
80742bdfbe
tests extended - armor checksum validation | #563
2017-07-21 10:15:49 -07:00
Sanjana Rajan
a896003fda
remove console logs
2017-07-13 12:07:12 +02:00
Sanjana Rajan
95c5e3af01
use message obj when signing uint8 array
2017-07-08 13:25:24 +02:00
Sanjana Rajan
cc831cde4a
more tests
2017-07-04 21:08:48 -07:00
Sanjana Rajan
697eab19cd
add tests
2017-07-04 17:03:56 -07:00
Sanjana Rajan
b51b8ad341
add tolerant mode which suppresses errors in reading non-data packets
2017-04-05 07:54:08 -07:00
nauadratti
f56d557036
Add a test for punycode encoded domains
2017-03-30 19:29:50 +00:00
Sanjana Rajan
16c6d2f162
signatureInput -> signature
2017-03-23 13:01:12 -07:00
Sanjana Rajan
484d5aa1ab
improve test
2017-03-23 12:04:32 -07:00
Sanjana Rajan
0f967331c6
upper level tests
2017-03-22 17:14:57 -07:00
Sanjana Rajan
e4621fc688
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
3522bcf2fe
remove useless test
2017-03-14 19:13:17 -07:00
Bart Butler
875e475221
small test bugfix
2017-03-14 18:49:05 -07:00
Sanjana Rajan
4ec07672a7
return signature object inside verification object
2017-03-10 10:38:59 -08:00
Sanjana Rajan
7bf697769d
added detached sig tests for high level openpgpjs functions
2017-03-07 13:59:18 -08:00
Sanjana Rajan
4ed7f25836
more tests
2017-03-07 13:59:17 -08:00
Sanjana Rajan
7b58cd9200
add tests
2017-03-07 13:59:17 -08:00
Bart Butler
ebc37f3a7d
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
ea90304649
fix key test
2017-02-27 11:06:36 -08:00
Aydar Zartdinov
3fa4c0c760
Base functionality moved to User.prototype
2017-02-15 21:08:17 +03:00
Aydar Zartdinov
715f98bb38
Reverted top level api changes
2017-02-15 21:04:50 +03:00
Aydar Zartdinov
5140a946e5
Added ability to sign and verify public keys
2017-02-15 21:04:50 +03:00
Bart Butler
3d32898250
tests cannot use ES6 features
2017-02-13 22:25:46 -08:00
Sanjana Rajan
37b26cf3ef
add test with reformatted key signing and encryption
2017-01-31 15:07:51 -08:00
Sanjana Rajan
1c361cd4e1
add some reformatting key tests
2017-01-31 14:16:34 -08:00
David Janes
c223b88829
implement keyExpirationTime
2017-01-24 16:54:52 -05:00
Tankred Hase
490d8e4e90
Bugfix: drop unsupported packets in packetlist.read()
...
add unit test for RSA key with ECC subkey
2016-06-07 18:21:31 +02:00
evilaliv3
a5fdc36062
Cleanup API for key.decrypt and align unit tests
2016-04-27 16:06:52 +02:00
evilaliv3
61470ad068
Apply edits as suggested in review of pull #446
2016-04-25 18:35:50 +02:00
evilaliv3
afc2c95238
Implement feature #443
2016-04-25 00:54:16 +02:00
Tankred Hase
e3b146b9d9
Fix Keyid.fromId()
2016-04-11 12:11:35 +02:00
Tankred Hase
843fba0d40
Use underscore instead of camelcase in config
...
zeroCopy —> zero_copy
useNative —> use_native
Remove unnecessary tests from build
2016-03-24 21:02:29 +08:00
Tankred Hase
2dce233d10
Fix: activate native tests under node.js
2016-03-24 13:34:12 +08:00
Tankred Hase
da3fbf8965
Test CFB, GCM, worker, asm.js, native cases
2016-03-24 13:25:35 +08:00
Tankred Hase
8b46a117ab
Prefer aes128 over aes192 (no WebCrypto support)
2016-03-24 10:53:30 +08:00
Tankred Hase
ddedb5cb42
Cleanup public api
2016-03-23 21:36:48 +08:00
Tankred Hase
453a9cee07
Use web worker for encrypt/decrypt if no native gcm
2016-03-23 21:17:36 +08:00
Tankred Hase
26bf7b62c7
Prevent native crypto for worker tests.
2016-03-23 19:15:04 +08:00
Tankred Hase
963648c6ea
Fix unit tests for browsers
2016-03-23 15:39:51 +08:00
Tankred Hase
8f8218e9de
Cleanup and test AEAD protected packet
2016-03-22 17:45:19 +08:00
Tankred Hase
a8fd179843
Fix key and signature tests
2016-02-10 15:41:04 +07:00
Tankred Hase
707b3919e1
Move most test high lvl api test code to test/openpgp.js, cleanup
2016-02-10 15:07:05 +07:00
Tankred Hase
25131e0df9
Added unit tests for util.getTransferables
2016-02-10 12:52:13 +07:00
Tankred Hase
6547b4ef68
Test encrypt/decryptSessionKey and finalize api, review docs
2016-02-10 12:52:13 +07:00
Tankred Hase
128a95ace4
rearrange test order and fix web worker detection
2016-02-10 06:38:35 +07:00
Tankred Hase
9d37a83a79
Api tests work under node.js
2016-02-09 19:14:43 +07:00
Tankred Hase
7d97bcec58
Implement openpgp.decryptKey
2016-02-09 19:04:31 +07:00
Tankred Hase
860ffbe278
Fix redundant deactivation of transferable objects in test
2016-02-09 17:14:00 +07:00
Tankred Hase
ab68d4b997
Support transferable objects in web worker for zero copy support
2016-02-09 17:01:48 +07:00
Tankred Hase
206f1f9c0f
Add 'armor' parameter to sign api
2016-02-09 12:57:23 +07:00
Tankred Hase
c0cc0ee991
Use 'armor' param in encrypt api instead of 'packets' to return full message object
2016-02-09 11:32:35 +07:00
Tankred Hase
f5375ef700
Drastically simplify async_proxy with generic delegate function
2016-02-09 08:46:18 +07:00
Tankred Hase
227a412ca0
Run tests both with and without web worker
2016-02-09 07:53:31 +07:00
Tankred Hase
9634440341
Remove redundant old tests from test/general/basic.js
2016-02-09 07:49:51 +07:00
Tankred Hase
b1f6266cc8
Write tests for new api: openpgp.encrypt/decrypt
2016-02-08 23:28:54 +07:00
Tankred Hase
a44e1e5024
Write tests for new api: openpgp.generateKey
2016-02-08 19:32:42 +07:00
Tankred Hase
c7a6a88098
Add type validation util functions
2016-02-08 13:36:21 +07:00
Tankred Hase
261db8035d
Remove redundant message.symEncrypt/symDecrypt
2016-02-04 16:41:39 +07:00
Tankred Hase
2aa8b143bd
Ignore MDC error in unit test for symmetrically encrypted packet
2016-02-03 20:24:54 +07:00
Bart Butler
11038dd946
Add Rusha for fast SHA hashes
2016-02-03 20:24:54 +07:00
Bart Butler
b4916e29a3
binary strings to typed arrays in most places
2016-02-03 20:24:54 +07:00
Bart Butler
b310877c7d
fixes
2016-02-03 20:24:54 +07:00
Bart Butler
60fb6ba18d
direct session key manipulation and encryption/decryption
2016-02-03 20:24:54 +07:00
Bart Butler
2e4e9387a0
Fixes for symmetrically encrypted session keys
2016-02-03 20:24:54 +07:00
Tankred Hase
d707164857
Fix unit tests on Safari, Closes openpgpjs/openpgpjs#399
2016-02-03 19:33:08 +07:00
Tankred Hase
1ba1427f58
Skip performance test
2016-02-01 08:23:17 +07:00
Tankred Hase
dec7881f93
Don't inject fetch polyfill in hkp module anymore
2016-01-29 20:03:11 +07:00
Tankred Hase
f729efa873
Use dist/openpgp instead of src/index because of future ES6 transpilation under node
2016-01-23 07:05:59 +07:00
evilaliv3
af4a9ba6ad
Revert few of the changes done in a4598f3bd4
2016-01-22 23:47:11 +01:00
Thomas Oberndörfer
a968f60f0b
Keyring: support plain email addresses (without name) as user IDs.
2016-01-07 15:35:47 +01:00
Nick Doiron
ef566b6a3c
Specify a filename in encrypt fromBinary [ Closes #284 ]
2016-01-07 15:35:47 +01:00
Thomas Oberndörfer
6f8a3abdfa
Support multiple user IDs for key generation
2016-01-07 15:35:47 +01:00
Matthew Shaylor
37ce176d42
If you attempt to store an empty keylist then delete the storage key
2016-01-07 15:35:47 +01:00
Thomas Oberndörfer
d0297e1b81
Test cases for MDC error
2016-01-07 15:35:47 +01:00
Tankred Hase
6634abf326
Add basic HKP lookup and upload support
2015-12-11 13:12:34 +07:00
Tankred Hase
85133393e3
Use 2048 bit keysize in tests in case of webcrypto support
2015-05-13 14:06:48 +02:00
Tankred Hase
4d6a34faa1
Implement Symmetric-Key Message Encryption using a passphrase
...
See https://tools.ietf.org/html/rfc4880#section-3.7.2.2
2015-04-22 01:41:00 +02:00
Thomas Oberndörfer
90d9edd497
Add unit tests for checkEmail method in keyring
2015-03-05 14:40:59 +01:00
Andreas Fischer
b00ce34e90
Typo: Unknow -> Unknown
2014-11-17 12:31:04 +01:00
Tankred Hase
7f2573c77d
Refactor complete public api to use promises
2014-10-01 19:12:39 +02:00
Tankred Hase
cbe4a17ccb
Refactor key generation to use callback
...
* TODO: reactive native web crypto in rsa.js:142
* TODO: generate publicExponent Uint8Array from argument E in rsa.js:148
* TODO: signing with generated web crypto key fails with "Could not find valid key packet for signing in key"
2014-09-30 18:22:17 +02:00
Thomas Oberndörfer
060da64aab
Key generation: do not clear private MPIs for keys without passphrase.
2014-07-30 16:36:01 +02:00
Tankred Hase
de3ba18400
Implement content verification using detached signatures
2014-07-03 14:57:52 +02:00
Tankred Hase
8c93688b0e
Warn user with signature null for wrong public key instead of exception.
2014-07-01 16:22:09 +02:00
Tankred Hase
ecb6798441
Throw an error if a wrong public key is used to verify a signature.
2014-06-30 19:26:33 +02:00