Tankred Hase
31df9c07da
Allow either privateKey, session key or password for message.decrypt()
2016-02-06 22:58:43 +07:00
Tankred Hase
83fcbaa633
Decode utf8 text only for correct format in Literal.getText()
2016-02-06 22:58:43 +07:00
Tankred Hase
2754bfef54
Cleanup public api
2016-02-06 22:58:38 +07:00
Tankred Hase
8777289b77
Cleanup config
2016-02-06 19:11:58 +07:00
Tankred Hase
8d82a18c19
Fix bug in message.decryptSessionKey where it would return this (msg obj)
...
Cleanup message code
2016-02-06 15:03:04 +07:00
Tankred Hase
55110c3409
Remove sessionKeyAlgorithm parameter from message.decrypt()
...
See: 2010456a19 (commitcomment-12397926)
2016-02-06 14:33:10 +07:00
Tankred Hase
c4bc9b2fe0
Use global this in src/worker/worker.js and add to linting
2016-02-06 14:28:05 +07:00
Tankred Hase
d40c3e81d9
Cleanup code of src/packet/literal.js
2016-02-06 14:22:19 +07:00
Tankred Hase
9da63d56b3
Cleanup style inconsistencies in cfb.js and random.js
2016-02-06 13:36:19 +07:00
Tankred Hase
1997e445f9
Use ES6 destructuring and default parameters in public api
2016-02-05 17:23:17 +07:00
Tankred Hase
c75a39e9b8
Remove 'self' from .jshintrc
2016-02-05 17:09:22 +07:00
Tankred Hase
f87d8d0433
Fix parsing packets from tag in web worker
2016-02-05 15:39:11 +07:00
Tankred Hase
8728db2b08
Finish refactoring src/**/*.js to use import & export
2016-02-05 15:23:11 +07:00
Tankred Hase
70ac662073
Refactor src/packet/*.js to use import & export
2016-02-05 14:44:22 +07:00
Tankred Hase
9ebe31a4ec
Refactor src/worker/*.js to use import and export
2016-02-05 13:20:05 +07:00
Tankred Hase
444128829a
Refactor src/keyring/*.js to use import & export
2016-02-05 13:16:42 +07:00
Tankred Hase
acabca9585
Fix config path in hkp.js
2016-02-05 12:45:45 +07:00
Tankred Hase
1157cd2ac8
Move src/hkp/hkp.js -> src/hkp.js
...
Delete src/hkp/index.js
2016-02-05 12:45:40 +07:00
Tankred Hase
8559cd2bff
Refactor src/encoding/*.js and src/hkp/*.js to use import
2016-02-05 12:40:30 +07:00
Tankred Hase
509d6c67ee
Refactor src/type/*.js to use import
2016-02-05 10:37:15 +07:00
Tankred Hase
dea42df209
Refactor src/crypto/**/*.js to use import & export
2016-02-05 10:36:09 +07:00
Tankred Hase
3aed324d51
Refactor src/crypto/hash/*.js to use import & export
2016-02-05 09:30:24 +07:00
Tankred Hase
19a97bf117
Refactor src/crypto/cipher/*.js to use import & export
2016-02-05 09:09:04 +07:00
Tankred Hase
60b23169ac
Refactor src/config/*.js to use import
2016-02-05 09:09:04 +07:00
Tankred Hase
f06e5aea55
Refactor src/*.js to use import
2016-02-05 09:09:04 +07:00
Tankred Hase
185d575ba3
Refactor src/index.js to re-export ES6 module
2016-02-05 09:09:04 +07:00
Tankred Hase
8d383a1b7c
Update npm dependencies and shrinkwrap
2016-02-05 09:03:53 +07:00
Tankred Hase
01b0cd8387
Enable ES6 support by using babelify transform in browserify build
...
* Add babelify as dev dependency
* Add babelify transform to browserify build
* Enable es6 support for jshint
* Ignore minified js files in babel transform
2016-02-05 00:47:07 +07:00
Tankred Hase
d725abd5b6
Remove debuggind comments from util
2016-02-04 22:06:48 +07:00
Tankred Hase
0b69697699
Update npm dependencies and shrinkwrap
2016-02-04 22:00:33 +07:00
Tankred Hase
bcfc8ef7f7
Use npm published asmcrypto-lite module
2016-02-04 21:47:40 +07:00
Tankred Hase
3bf421206b
Further cleanup of sym_encrypted_integrity_protected.js
2016-02-04 16:41:40 +07:00
Tankred Hase
261db8035d
Remove redundant message.symEncrypt/symDecrypt
2016-02-04 16:41:39 +07:00
Tankred Hase
c840fabc7d
Further cleanup of hash module
2016-02-04 16:41:39 +07:00
Tankred Hase
d67efe22eb
Only log errors when config.debug is true
2016-02-04 16:41:38 +07:00
Tankred Hase
316a37a1cd
Cleanup hash index.js
2016-02-04 16:41:38 +07:00
Tankred Hase
642f754169
Add more files to linting, make strict mode optional for each file
2016-02-04 16:41:37 +07:00
Tankred Hase
b8f353abe8
Include rusha via npm
2016-02-04 10:05:19 +07:00
Tankred Hase
cfe058596f
Include asmCrypto via npm
2016-02-04 09:42:49 +07:00
Tankred Hase
edd51d6052
Ignore buffer node module in test bundle
2016-02-04 00:39:17 +07:00
Tankred Hase
90a7457b71
Refactor most src files to strict mode, delint
2016-02-04 00:37:00 +07:00
Tankred Hase
346aa8f11a
Cleanup node.js api detection
2016-02-03 20:24:54 +07:00
Tankred Hase
3919441bbc
Fix unit test using strict mode for random.js
2016-02-03 20:24:54 +07:00
Tankred Hase
2f74acc94f
Cleanup src/crypto/index.js
2016-02-03 20:24:54 +07:00
Tankred Hase
68d298c948
Fix node.js detection
2016-02-03 20:24:54 +07:00
Tankred Hase
00ea3918c5
Cleanup and linting on all *.js
2016-02-03 20:24:54 +07:00
Tankred Hase
4d325ca65c
Cleanup RSA and util code
2016-02-03 20:24:54 +07:00
Tankred Hase
55bd9757e7
Refactor config.useWebCrypto to config.useNative
2016-02-03 20:24:54 +07:00
Tankred Hase
5358c6f9fe
[TODO] Check why code coverage fails
2016-02-03 20:24:54 +07:00
Tankred Hase
2aa8b143bd
Ignore MDC error in unit test for symmetrically encrypted packet
2016-02-03 20:24:54 +07:00