Commit Graph

344 Commits

Author SHA1 Message Date
Tankred Hase
8860161c67 Merge branch 'another-signature-fix' of github.com:Robert-Nelson/openpgpjs into new_line 2013-12-05 22:08:48 +01:00
Robert Nelson
f07702e867 More consistency changes 2013-12-05 12:29:52 -08:00
Robert Nelson
e965b6771b Cleanup canonical message handling for signatures 2013-12-05 12:21:23 -08:00
Tankred Hase
caaedc16bf reconstruct bug in signature verification 2013-12-05 17:27:56 +01:00
Tankred Hase
8c16abbfee bugfix for only call showMessage if it was defined 2013-12-05 12:37:55 +01:00
Tankred Hase
fecad8b8c0 only call showMessage if it was defined 2013-12-05 12:33:03 +01:00
Tankred Hase
af29686442 Merge pull request #130 from Robert-Nelson/signature-fix
Signature fix
2013-12-05 02:53:43 -08:00
Tankred Hase
d43b6df378 Merge pull request #132 from Robert-Nelson/build-status-fix
Build status fix
2013-12-05 01:48:42 -08:00
Robert Nelson
2e100068f1 Put the query string on the right url 2013-12-04 21:07:44 -08:00
Robert Nelson
0ebe4fd516 Only report build status for master and devel 2013-12-04 21:05:07 -08:00
Robert Nelson
aa377b7cc9 Add verification of V3 signatures 2013-12-04 20:38:52 -08:00
Robert Nelson
835a05853e Change message to match others 2013-12-04 19:39:15 -08:00
Robert Nelson
f8d8d471a9 Add test of verification of a clearsign message generated by gpg 2013-12-04 19:33:44 -08:00
Robert Nelson
e9b8b0efb9 Incorporate integration test changes from signature branch 2013-12-04 18:11:14 -08:00
Robert Nelson
8110782633 Fix checksum failure debug message 2013-12-04 15:42:56 -08:00
Thomas Oberndörfer
f6176ed484 Move key generation to Key class 2013-12-04 16:45:14 +01:00
Thomas Oberndörfer
7e711510cc Implement cleartext signed messages 2013-12-02 20:11:21 +01:00
Thomas Oberndörfer
be96de5188 Move methods of Key and Message class to prototype. Clean up openpgp.js file. 2013-12-02 14:54:05 +01:00
Thomas Oberndörfer
89eb5dff2a Rename attribute for data of armored message from .openpgp to .data 2013-12-02 11:27:14 +01:00
Robert Nelson
63db9246c6 Enhance debugging output and fix escaped dashes. 2013-12-01 17:46:56 -08:00
Robert Nelson
e1908496c7 Add verification for version 3 signatures 2013-11-30 22:29:28 -08:00
Robert Nelson
84f6483cba Fix signing with version 3 keys 2013-11-30 21:17:04 -08:00
Robert Nelson
1f4911450b Resolve two more situations
Handle messages with strings of dashes.

Work around IE bug with split().
2013-11-30 12:29:47 -08:00
Thomas Oberndörfer
c2a79368dc Add verify method to message class and other improvements. Implement openpgp.decryptAndVerifyMessage. Allow parsing of unhashed signature subpackets. 2013-11-30 17:29:20 +01:00
Robert Nelson
f59fa54ecf Fix ascii dearmor and signature verification bugs 2013-11-29 19:29:57 -08:00
Robert Nelson
b4676d2ad8 Merge branch 'misc-fixes' into signature-fix 2013-11-29 18:34:36 -08:00
Robert Nelson
8b854a2ad1 Fix warnings from 'make minify' + other bugs 2013-11-29 17:08:17 -08:00
Robert Nelson
e4e69749a6 Don't use array indexing on strings it is nonstandard and doesn't work on IE 2013-11-29 16:10:56 -08:00
Thomas Oberndörfer
b0ea97ec28 Make packet tests run. Rename test files, move signature tests to general folder.
Split keyring tests in own file. Add tests for V3 signatures and fix verification.
2013-11-26 18:30:17 +01:00
Thomas Oberndörfer
66c428da7e Fix key generation: use primary key for subkey binding signature. On signing all signature subpacket data
is written to the hashed subpacket data section. This allows to set e.g. key flags on certification signatures.
2013-11-26 10:35:41 +01:00
Thomas Oberndörfer
22ad0d3505 Implement signAndEncryptMessage function. Fix packet_one_pass_signature.write(). 2013-11-19 16:30:41 +01:00
Thomas Oberndörfer
93376b6e13 Add decryptKeyPacket to key class. Used to decrypt specific key
packets and replacing the unlock mechanism. Decrypt method of packet_secret_key
returns boolean to indicate successful decryption. Add config to util class
and cleanup comments. Update tests.
2013-11-19 13:50:14 +01:00
Thomas Oberndörfer
097e602fd0 Fix grunt-browserify dependency 2013-11-18 10:07:18 +01:00
Thomas Oberndörfer
c051eacf36 Introduce unlock method for keys: passphrase is set as attribute of key and used
to decrypt required secret key packets on demand. Directly access config module in armor.js.
Key method getPrivateKeyPacket returns key packets by ID (optionally decrypted).
Message method decrypt returns new message with packetlist of decrypted message.
Add CRLF conversion to literal data packet. Packetlist: make filterByTag variadic,
add findPacket method. Keep state isDecrypted in secret key packet, don't decrypt
if already decrypted. Add mapToHex method to keyid. Simplify emailRegEx.
2013-11-16 22:08:42 +01:00
Sean Colyer
40701e09ab Merge pull request #121 from toberndo/devel
devel branch: work on key and message class
2013-10-31 19:28:37 -07:00
Thomas Oberndörfer
1be6b8b858 Remove keyring from openpgp namespace. Optimize keyid initialization. 2013-10-24 12:19:46 +02:00
Tankred Hase
9914bc461b reactive travis.yml but do nothing in npm test until devel branch is ready for testing 2013-10-23 18:42:49 +02:00
Tankred Hase
f6811d4727 remove travis.yml on devel branch since Integration tests dont yet work here 2013-10-23 18:30:24 +02:00
Tankred Hase
1cd7b542a0 Update README.md
Remove duplicate title
2013-10-23 15:19:19 +02:00
Tankred Hase
f73f9eccd3 Update README.md
Add travis badge to readme
2013-10-23 15:17:55 +02:00
Tankred Hase
a3ab946d6a Merge pull request #120 from whiteout-io/mocha
Add travis CI job and mocha tests in phantomjs
2013-10-23 06:10:19 -07:00
Tankred Hase
b951cddd6d add mocha tests for travis CI integration tests on code commit
squash all commits to single commit
2013-10-23 13:25:00 +02:00
Thomas Oberndörfer
b544343c63 Further clean up in message and key class. Make tests run. 2013-10-22 20:15:05 +02:00
Thomas Oberndörfer
b1c9eb71d2 Refactoring message and key class. Implement decryptMessage. 2013-10-21 20:51:46 +02:00
seancolyer
91070f9750 Changing main api to be more key dependent 2013-10-18 21:46:38 -04:00
seancolyer
7cfa0ab705 Cleanup, creating armor enums 2013-10-18 21:18:38 -04:00
Sean Colyer
8b9d60ba15 Merge pull request #118 from toberndo/devel
devel branch: First draft of encrypt message function
2013-10-18 17:11:14 -07:00
Thomas Oberndörfer
646e370df7 First draft of encrypt message function 2013-10-18 20:21:58 +02:00
seancolyer
8baaa7f511 Fixing the signature to work properly with "hashed" subpackets. 2013-10-17 23:03:13 -04:00
seancolyer
4872b8c720 Work towards signature. There seems to be an issue with generating the
dates of signature packets, gpg is unable to read the results. We used
to do this correctly, so need to figure out exactly what's different..
2013-10-15 22:46:32 -04:00