Commit Graph

156 Commits

Author SHA1 Message Date
Stephen Paul Weber
741fec24a6 These coefficients go in the other order 2016-07-26 20:09:15 -05:00
Stephen Paul Weber
4531815ef2 The code in fact expects an array of OR'd bytes
As the spec specifies.

Closes #32
2016-07-26 19:21:57 -05:00
Stephen Paul Weber
46ec5079e8 Only env can matrix 2016-07-26 19:10:18 -05:00
Stephen Paul Weber
02fbcbf7e6 nightly not working, can't find docs on the deprecation yet 2016-07-26 18:59:02 -05:00
Stephen Paul Weber
6d9ed34224 Less strict phpseclib requirement
Still test against 2.0.0 as well as latest
2016-07-26 18:58:16 -05:00
Stephen Paul Weber
de41f143e6 Throw exception if using CAST5 without mcrypt 2016-07-26 18:44:49 -05:00
Stephen Paul Weber
859efcbee3 Merge pull request #28 from DanielRuf/patch-2
use $cipher->key_length
2016-03-15 08:23:47 -04:00
Stephen Paul Weber
15baf1db70 Merge pull request #29 from DanielRuf/patch-3
added more PHP versions to the travis file
2016-03-15 08:23:18 -04:00
Daniel Ruf
a87e6ac0c9 added more PHP versions to the travis file
5.3 and 5.4 could be possibly removed. Nightly builds and HHVM should be ok.
2016-03-15 09:31:57 +01:00
Daniel Ruf
08ae2c57d1 use $cipher->key_length
starting with phpseclib 2.0.1, `key_size` was renamed to `key_length`
2016-03-14 12:10:17 +01:00
Stephen Paul Weber
cefaef242d Update normalise and example for clearsigning
Trailing whitespace must be removed when generating the signature and
must not be included in output.
2016-02-24 11:07:10 -05:00
Stephen Paul Weber
6340379ffe Merge pull request #24 from DanielRuf/patch-1
fixed keygen example for the phpseclib 2.0 branch
2016-02-24 10:27:45 -05:00
Daniel Ruf
bcc9c920a0 fixed keygen example for the phpseclib 2.0 branch
Starting with phpseclib 2.0, it is fully namespaced and we have to use the fully qualified name.
2016-02-23 20:33:23 +01:00
Stephen Paul Weber
57ab2811c4 Merge pull request #22 from meitar/new-consumer
Link to new project that uses OpenPGP.php as library.
2016-02-20 21:16:43 -05:00
Meitar Moscovitz
b260774147 Link to new project that uses OpenPGP.php as library. 2016-02-20 17:17:53 -07:00
Stephen Paul Weber
a1fe3a6e58 Merge pull request #16 from sivig/phpseclib-2
use phpseclib 2.0
2015-11-30 14:49:15 -05:00
Vitaliy Solovey
ff4bd67e6b use phpseclib 2.0 2015-11-20 11:39:37 +02:00
Stephen Paul Weber
d37e91efda Example to serialize public key message 2015-11-16 10:40:44 -05:00
Stephen Paul Weber
f4fabd04e7 Merge pull request #9 from adecaneda/Partial-body-lengths
Support for Partial body lengths
2015-08-14 13:15:15 -05:00
adecaneda
cc52cb9dab Missing parameter in parse_old_format 2015-08-05 11:35:23 +02:00
adecaneda
4281c8fa97 Missing parameter 2015-08-05 11:18:28 +02:00
adecaneda
01a1f00edb Inclued partial body lengths
Partial body lengths based on https://github.com/toofishes/python-pgpdump/blob/master/pgpdump/packet.py
2015-08-05 10:54:57 +02:00
Stephen Paul Weber
4fe3c5db72 Merge pull request #8 from adecaneda/adecaneda-patch-1
Typo in variable $p->encrypted_data
2015-07-31 19:28:07 -05:00
adecaneda
9bffda3ef2 Update openpgp_crypt_rsa.php
Typo in variable $p->encrypted_data
2015-07-31 11:12:17 +02:00
Stephen Paul Weber
5291a06b97 Merge pull request #7 from Hoffstadt/patch-1
Changed require Crypt/RSA.php to require_once
2015-07-06 10:02:16 -05:00
Stephen Paul Weber
055b5c5459 Add clearsign example 2015-07-04 16:14:42 -05:00
Hoffstadt
cb4fe9c632 Changed require Crypt/RSA.php to require_once
This change allows the lib usage with an autoloader.
2015-06-18 13:32:51 +02:00
Stephen Paul Weber
4756c82118 Merge pull request #4 from vstm/composer-simple
Add composer.json
2015-03-16 15:04:34 -05:00
Stefan Vetsch
9d6d736a5d Add newline before end-of-file (PSR-2) 2015-03-15 21:55:40 +01:00
Stefan Vetsch
2fb1666bb5 Use composer to load dependencies 2015-03-14 19:36:35 +01:00
Stefan Vetsch
3835a48db8 Not needed at this point 2015-03-14 17:41:25 +01:00
Stefan Vetsch
ec8df93d19 Don't make a scene if there is no autoload.php (if someone isn't using composer). 2015-03-14 17:17:28 +01:00
Stefan Vetsch
6287ba89d0 Make use of the classmap, the current class/file structure does not allow for PSR-0 autoloading. 2015-03-14 13:22:14 +01:00
Stefan Vetsch
ae21dd0f56 Make autoload work for phpunit tests 2015-03-14 10:59:21 +01:00
Stefan Vetsch
68514c11c2 Add simple composer.json 2015-03-14 10:50:06 +01:00
Stephen Paul Weber
d6568d4925 Initial doxygen setup 2014-06-28 14:26:12 -05:00
Stephen Paul Weber
0262b038f1 Fix sign_key_userid 2014-06-28 12:27:25 -05:00
Stephen Paul Weber
775aa96118 Remove debug code 2014-06-28 11:38:14 -05:00
Stephen Paul Weber
d2913ccb8a Add support for CAST5 using mcrypt 2013-09-14 13:17:30 -05:00
Stephen Paul Weber
e1181bd25e Support for AES and 3DES are now optional 2013-09-14 11:45:49 -05:00
Stephen Paul Weber
6075d057d0 Use require_once in examples. 2013-09-14 11:41:46 -05:00
Stephen Paul Weber
82ed7d85bd Rename symmetric encrypt/decrypt class
I'm going to make this one more generic than one library, and have it
support ciphers based on what libraries are available, so this more
generic name is appropriate.
2013-09-14 11:36:58 -05:00
Stephen Paul Weber
7ae4d539f2 Better errors for unsupported ciphers. 2013-09-14 11:28:35 -05:00
Stephen Paul Weber
e78424131e Any secret key
Spews warnings, but that's fine for now
2013-06-24 14:34:00 -05:00
Stephen Paul Weber
e27f9e236f Full example of decrypting a message 2013-06-24 11:22:01 -05:00
Stephen Paul Weber
26860d3b98 Always an MPI for RSA 2013-06-24 11:21:26 -05:00
Stephen Paul Weber
c341d7f09e Fix byte encoding of some packets 2013-06-24 11:21:10 -05:00
Stephen Paul Weber
58d1b5cee0 Clean up encryptDecrypt example 2013-06-24 11:20:46 -05:00
Stephen Paul Weber
05b757ab6c No index anymore 2013-02-24 18:11:22 -05:00
Stephen Paul Weber
3afd401688 Whitespace and proper padAmount 2013-02-24 18:11:11 -05:00