Commit Graph

584 Commits

Author SHA1 Message Date
Tankred Hase
7c2cf89589 Fix decoding of JWK. Webcrypto works. 2014-09-30 21:57:46 +02:00
Tankred Hase
85d2199971 Activate web crypto api (still fails tests)
* Remove api support for safari
* Fix error handling
2014-09-30 19:31:12 +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
d6963f2017 map JWK parameters to local BigInteger 2014-09-30 18:20:26 +02:00
Tankred Hase
15edf09972 Add RSA keygen example using WebCrypto Api 2014-09-30 18:20:26 +02:00
Tankred Hase
bbe174828f Upgrade license to LGPL version 3.0 or later. 2014-09-30 18:16:58 +02:00
Tankred Hase
6636d83aa9 Merge pull request #253 from toberndo/fix_getPrimaryUser
Fix sorting of primary users
2014-09-13 15:35:47 +02:00
Thomas Oberndörfer
dabd96e5df Merge pull request #252 from omeid/master
Add bower support.
2014-09-03 16:45:29 +02:00
Thomas Oberndörfer
069b97d16f Fix sorting of primary users 2014-09-03 14:38:31 +02:00
omeid
3779739a63 Add bower support 2014-09-02 01:26:25 +10:00
Tankred Hase
58322c299d Use svg in travis badge 2014-08-05 13:38:25 +02:00
Tankred Hase
42cf0e5bf6 Merge pull request #249 from adhintz/master
add grunt-cli to devDependencies
2014-08-05 12:20:55 +02:00
Drew Hintz
e13302e35e add grunt-cli to devDependencies by running npm install --save-dev grunt-cli 2014-08-05 07:35:20 +00:00
Tankred Hase
132bd054de bump version 2014-07-30 17:09:34 +02:00
Tankred Hase
7a0fa12dc6 Merge pull request #248 from openpgpjs/clearPrivateMPIs
Key generation: do not clear private MPIs for keys without passphrase.
2014-07-30 17:02:53 +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
inovari
91ccbeed80 Bugfix in packet_length calculation
One of the bitshifts used to construct tmplen (lines 230-231) was inconsistent with the other expressions:

(input[mypos2++].charCodeAt() << 8)

causing following error:

TypeError: Cannot call method 'charCodeAt' of undefined
    at Object.module.exports.read (/home/scott/dev/keystone/fetch/node_modules/openpgp/src/packet/packet.js:231:16)

Corrected to 

(input.charCodeAt(mypos2++) << 8)
2014-07-16 15:37:06 -04:00
Tankred Hase
8a27866225 release version 2014-07-07 12:25:28 +02:00
Tankred Hase
e885fb1433 Use same signature array structure in verify for ClearSignedMessages as Message 2014-07-07 12:02:13 +02:00
Tankred Hase
571ed67624 Merge pull request #241 from openpgpjs/detached-signature
Implement content verification using detached signatures
2014-07-03 15:30:38 +02:00
Tankred Hase
de3ba18400 Implement content verification using detached signatures 2014-07-03 14:57:52 +02:00
Tankred Hase
74959b83b6 New release 2014-07-02 15:15:03 +02:00
Tankred Hase
f5f16b841e Merge pull request #239 from openpgpjs/empty-signatures
Iterate over signature not keys to allow empty signatures array in case ...
2014-07-02 15:14:15 +02:00
Tankred Hase
396199f631 Iterate over signature not keys to allow empty signatures array in case the message has no signatures. 2014-07-02 12:52:14 +02:00
Tankred Hase
5f24b461e7 bump version 2014-07-01 16:33:52 +02:00
Tankred Hase
2cbc232b0f new release 2014-07-01 16:28:58 +02:00
Tankred Hase
38ad1dc914 Merge pull request #238 from openpgpjs/no-passphrase
No passphrase
2014-07-01 16:27:43 +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
62debad52d Allow removal of passphrase protection by calling encrypt with an empty passphrase 2014-07-01 15:02:09 +02:00
Tankred Hase
3ffe8699e2 bump version for dev 2014-06-30 19:30:02 +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
Tankred Hase
dbbb207211 bump version 2014-06-28 16:56:25 +02:00
Tankred Hase
ee02ca71cf bump version 2014-06-28 16:52:18 +02:00
Tankred Hase
c3c8955571 Update README.md 2014-06-28 16:49:41 +02:00
Tankred Hase
f0e4128324 Merge pull request #237 from alessioalex/master
Update README.md to add decryption example
2014-06-28 16:46:07 +02:00
Tankred Hase
68a5739354 Merge pull request #232 from msjoinder/single_public_key
API accepts a single public key or an array
2014-06-28 16:44:32 +02:00
Alexandru Vlăduţu
6d548dff8d Update README.md to add decryption example
Update README.md to add decryption example
2014-06-25 14:30:32 +03:00
Msjoinder
016490656f update function documentation 2014-06-22 20:43:29 +00:00
Tankred Hase
2dbe7e30b0 Merge pull request #229 from cdwiegand/master
fix JSON.parse(null)
2014-06-13 14:19:51 +02:00
Tankred Hase
89a1d26cc7 bump version to dev 2014-06-13 12:00:33 +02:00
Tankred Hase
dd9e5c2a35 bump version 2014-06-13 11:59:26 +02:00
Msjoinder
74ef7455f5 use .length to test 2014-06-07 15:09:55 -05:00
Msjoinder
4bca02e635 include other key arrays 2014-06-07 14:36:04 -05:00
Msjoinder
1fd2c0f6f4 API accepts single public key string instead of array 2014-06-07 14:11:53 -05:00
Chris Wiegand
47cf9b6980 fix JSON.parse(null)
if window.localStorage.config is null then JSON.parse returns an error about "u" not being valid (the word "undefined" is not valid JSON apparently :). So I test for null-ness first.
2014-06-03 21:55:16 -06:00
Tankred Hase
896e90c1ee Merge pull request #223 from toberndo/unify_verify_interface
Allow private keys for verify methods in Cleartext and Message class.
2014-05-17 09:20:32 +02:00
Tankred Hase
bca6670908 Remove node 0.8 job from travis.yml, only test against 0.10 2014-05-17 09:13:54 +02:00
Tankred Hase
3cffa77f72 Merge pull request #225 from toberndo/split_armor
Redefine Regex for blank line after armor header
2014-05-17 09:08:59 +02:00
Thomas Oberndörfer
172855a8e9 Redefine Regex for blank line after armor header. This fixes an issue with truncated blank lines at the beginning of cleartext signed messages. 2014-05-16 19:08:29 +02:00
Thomas Oberndörfer
7a7c181ee6 Allow private keys for verify methods in Cleartext and Message class. Refactor getKeyPacket methods in Key class. 2014-05-14 11:32:09 +02:00