Commit Graph

648 Commits

Author SHA1 Message Date
Matthew Shaylor
37ce176d42 If you attempt to store an empty keylist then delete the storage key 2016-01-07 15:35:47 +01:00
Artem Chudinov
068d38d832 Use RegExp.prototype.test instead of String.prototype.match where it is OK
There is no sense in using String.prototype.match if the retrieved matched results
are not used.

By the way, if a bit of performance (especially RAM usage) is preferred over
unification, then, obviously, conditions like
if (/SIGNED MESSAGE/.test(header[1])) {
can be changed to
if (header[1].indexOf('SIGNED MESSAGE') !== -1) {
2016-01-07 15:35:47 +01:00
Artem Chudinov
30926e4738 message.js: Don't use variable signingKeyPacket out of scope 2016-01-07 15:35:47 +01:00
Artem Chudinov
3e2f34ac62 Add missing semicolons 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
Thomas Oberndörfer
2ee347154c Symmetrically encrypted packet: raise error if MDC is missing for modern cipher. 2016-01-07 15:35:47 +01:00
evilaliv3
9589fa0b52 Apply mixed code review thanks to webstorm inspector 2016-01-07 14:46:55 +01:00
Tankred Hase
85efb463cf Check http status when uploading key 2015-12-27 16:27:55 +07:00
Tankred Hase
2fe10749a1 Release new version 2015-12-19 15:25:50 +07:00
Tankred Hase
450fddaf8e Call encodeURIComponent on hkp query parameters 2015-12-19 15:23:00 +07:00
evilaliv3
b60bea547b Re-add node_js 4.2 (LTS) under unit testing but marked with allow_failures flag 2015-12-12 10:00:14 +01:00
Tankred Hase
e159fd77b4 Add example for key upload to readme 2015-12-12 12:17:08 +07:00
Tankred Hase
5b937a6712 Release new version 2015-12-12 10:57:23 +07:00
Tankred Hase
bcde9bfa1a Add HKP lookup example to README 2015-12-12 10:39:38 +07:00
Tankred Hase
f46696a915 Remove node v4.2 from travis build
I decided to remove node v4.2 from the travis build. It turns out it's too slow and break the build more often than it actually provides value.
2015-12-11 16:41:57 +07:00
Tankred Hase
6634abf326 Add basic HKP lookup and upload support 2015-12-11 13:12:34 +07:00
evilaliv3
2d262d8095 Add node_modules directory to travisCI cache 2015-12-07 01:26:40 +01:00
evilaliv3
8b2c66eeb2 Properly set the BUILD_ID in grunt saucelabs script 2015-12-02 14:47:24 +01:00
evilaliv3
727cb9f237 Fix allow_failures usage in .travis.yml 2015-11-30 17:35:41 +01:00
evilaliv3
ff086355dd Fix syntax error in travis.sh 2015-11-30 15:17:33 +01:00
Mithgol
0e8cedae46 put sudo: false in .travis.yml 2015-11-30 15:12:31 +01:00
evilaliv3
831c0a14d5 Allow travisCI to fast_finish the build result as soon as unit tests are completed 2015-11-30 02:24:42 +01:00
evilaliv3
46d2b6e66d Reduce duration unit testing implementing their parallelization
Starting from two pull requests by @tanx and @Mithgol this commit implement the following:
- add testing of node version 4.2 LTS;
- move testing to the new TravisCI environment that is expected to be more fast;
- parallelize tests making possible to end first and to test more lasting less;
- make possible for browsertests to fail without impacting on the overall result.
2015-11-30 02:13:39 +01:00
evilaliv3
e02bc7c2f5 Update README.md with openpgpjs repository badges 2015-11-28 18:49:47 +01:00
evilaliv3
641f4c8098 Improve unit testing by means of Coveralls and Saucelabs 2015-11-28 12:53:03 +01:00
Thomas Oberndörfer
0958a9ec02 Release new version 2015-10-05 09:35:19 +02:00
Thomas Oberndörfer
668a9bbe70 Throw exception on unsupported S2K type. 2015-10-03 15:57:03 +02:00
Alex
c266c01b80 Merge pull request #354 from gmontalvoriv/master
added mailock project link
2015-09-23 09:47:26 +02:00
Gabriel Montalvo
2e10231d09 added mailock project link 2015-09-22 19:22:22 -04:00
Giovanni Pellerano
42554146e3 Merge pull request #347 from arzeth/master
Fix running in Node.js (and io.js) with enforced strict mode
2015-08-19 21:17:08 +02:00
Artem Chudinov
9de55b49f3 s2k.js,async_proxy.js: Initialize variable data properly
It fixes error when running the example code (in Node.js with enforced strict
mode) from README.md:

[ReferenceError: data is not defined]
Error: Error generating keypair using js fallback!
    at /tmp/fff/node_modules/openpgp/src/openpgp.js:266:13
    at process._tickDomainCallback (node.js:399:9)
2015-08-19 22:32:06 +05:00
Artem Chudinov
1ee96a3f40 md5.js: Remove an unused variable to support enforced strict mode
The problem was:
arzeth /tmp/test % npm install openpgp
openpgp@1.2.0 node_modules/openpgp
├── node-localstorage@0.3.6
├── es6-promise@1.0.0
└── zlibjs@0.2.0

arzeth /tmp/test % node --version
v3.0.0

arzeth /tmp/test % node
> var openpgp = require('openpgp');
undefined
>

arzeth /tmp/test % node --use_strict
> var openpgp = require('openpgp');
ReferenceError: txt is not defined
    at md51 (/tmp/test/node_modules/openpgp/src/crypto/hash/md5.js:135:7)
    at md5 (/tmp/test/node_modules/openpgp/src/crypto/hash/md5.js:198:14)
    at Object.<anonymous> (/tmp/test/node_modules/openpgp/src/crypto/hash/md5.js:211:5)
    at Module._compile (module.js:430:26)
    at Object.Module._extensions..js (module.js:448:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/tmp/test/node_modules/openpgp/src/crypto/hash/index.js:10:8)
2015-08-19 22:15:21 +05:00
Tankred Hase
6faa98fab8 Add remark about security audits 2015-07-27 11:48:58 +02:00
Tankred Hase
e2e04b04ea Release new version 2015-06-12 16:41:00 +02:00
Tankred Hase
58cac452db Merge pull request #329 from 1and1/master
Optimized memory footprint for encrypting and decrypting
2015-06-11 10:18:55 +02:00
Peter Breitling
07e4278a3a Optimized memory footprint for encrypting and decrypting 2015-06-10 21:12:55 +02:00
Tankred Hase
ac8d991bc3 Release new version 2015-06-09 16:50:39 +02:00
Tankred Hase
a12d2ee27e Merge pull request #296 from bartbutler/ie11_keygen
Support for crypto API keygen in IE11 on Windows 7 and 8
2015-06-09 15:43:40 +02:00
Bart Butler
51dbbe2090 tanx update 2 2015-05-22 12:03:59 -07:00
Bart Butler
2a89baa837 tanx updates 2015-05-22 12:02:23 -07:00
Alex
291b9f2cd2 Update README.md 2015-05-16 21:04:33 +02:00
Tankred Hase
85133393e3 Use 2048 bit keysize in tests in case of webcrypto support 2015-05-13 14:06:48 +02:00
Thomas Oberndörfer
60c2593649 Merge pull request #309 from openpgpjs/symmetric_key_message_encryption
Implement Symmetric-Key Message Encryption using a passphrase
2015-04-23 16:43:32 +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
Tankred Hase
05cd04f060 Release new version 2015-04-01 12:29:09 +02:00
Tankred Hase
957d346968 Revert "Upate ES6 promise polyfill"
This reverts commit 7bd9642818.
2015-04-01 12:20:26 +02:00
Tankred Hase
2b833c110e Update README.md 2015-03-18 13:53:25 +01:00
Tankred Hase
262ae2b092 Update README.md 2015-03-18 13:52:16 +01:00
Tankred Hase
d11d138313 Release new version 2015-03-15 11:19:09 +01:00
Tankred Hase
7bd9642818 Upate ES6 promise polyfill 2015-03-15 11:08:14 +01:00