Commit Graph

172 Commits

Author SHA1 Message Date
Vincent Breitmoser
56f2a3137b get rid of RuntimeException control flow in UncachedKeyRing.fromStream 2015-01-02 02:05:12 +01:00
Vincent Breitmoser
b52fb90380 fix and test for bad certificate version numbers (#1012)
closes #1012
2015-01-02 01:58:16 +01:00
Vincent Breitmoser
704fc2dd45 tests: for export, check that a token local cert actually exists before export 2015-01-02 01:11:43 +01:00
Vincent Breitmoser
57e3266fa5 tests: add test for key export 2015-01-02 00:15:08 +01:00
Vincent Breitmoser
1c1ae769ef small improvements regarding pin tests and logging 2015-01-01 21:13:07 +01:00
Vincent Breitmoser
9f7b2472cf tests: be less verbose about inserting keyrings for encrypt/decrypt 2015-01-01 20:21:52 +01:00
Vincent Breitmoser
5e9d8ca8c6 tests: add multi key encryption/decryption test, new way for fake passphrase cache 2015-01-01 20:21:32 +01:00
Vincent Breitmoser
bf537c4a81 fix unit tests (canonicalize after create) 2015-01-01 18:24:09 +01:00
Vincent Breitmoser
22ea1defa8 add test case for PIN unlock 2014-12-30 13:07:36 +01:00
Vincent Breitmoser
7524881a01 fix unit tests for ChangeUnlockParcel 2014-12-30 12:02:37 +01:00
Vincent Breitmoser
576e6fd0cc introduce new ChangeUnlockParcel packet for extended passphrase changing capabilities 2014-12-29 23:12:11 +01:00
Dominik Schürmann
bf4762ef6f Cleanup UncachedKeyringTest 2014-12-29 13:32:28 +01:00
Dominik Schürmann
d8e6e51452 Fix test for future creation timestamps to account for loosen timestamp check 2014-12-28 21:44:48 +01:00
Dominik Schürmann
9df7147c8b Fix jacoco 2014-12-04 19:58:08 +01:00
Dominik Schürmann
8f5295f2d1 Update to com.novoda:gradle-android-test-plugin:0.10.0, no snapshot version anymore, jacoco disabled for now 2014-12-04 19:42:30 +01:00
Vincent Breitmoser
108b35cb50 add description of symantec test case 2014-10-26 00:41:36 +02:00
Vincent Breitmoser
8b778809bf add test case for symantec secret keys (#974) 2014-10-26 00:34:16 +02:00
Vincent Breitmoser
7af0219857 fix test for new PgpDecryptVerify 2014-10-14 16:35:48 +02:00
Vincent Breitmoser
ee4d911baf make PgpEncryptSign and PgpDecryptVerify subclasses of BaseOperation 2014-10-13 15:02:42 +02:00
Vincent Breitmoser
fe981e5498 move around package structure a bit 2014-10-10 19:59:25 +02:00
Vincent Breitmoser
c30c36fb2a add unit test for duplicate user ids (fix later!!) 2014-10-04 11:49:46 +02:00
Vincent Breitmoser
5d6c2d90c2 fix unit test for ParcelableFileCache 2014-10-03 04:31:09 +02:00
Vincent Breitmoser
a91468565f use iterator interface exclusively in ParcelableFileCache 2014-10-03 03:29:23 +02:00
Vincent Breitmoser
b6916a9b40 add test case for stripped master key, correct signing subkey should still be selected 2014-10-02 19:26:39 +02:00
Vincent Breitmoser
801fe4d816 add test class for Iso7816TLV class 2014-09-29 21:28:26 +02:00
Vincent Breitmoser
c34a159cae fix method visibility for tests 2014-09-28 15:17:09 +02:00
Vincent Breitmoser
8131daa638 move can.*() methods to CanonicalizedPublicKey, where they belong 2014-09-28 14:50:52 +02:00
Vincent Breitmoser
bf9a708e84 fix test case for new PassphraeCacheInterface 2014-09-23 16:16:16 +02:00
Vincent Breitmoser
675e8e2015 add test case to make sure s2k IVs are different per subkey 2014-09-23 14:53:44 +02:00
Vincent Breitmoser
3759d74ac8 add test case for duplicate keys in keyring (#870) 2014-09-23 01:32:36 +02:00
Vincent Breitmoser
3f39cf92c6 stronger divert-to-card test case 2014-09-22 16:27:26 +02:00
Vincent Breitmoser
a3e7406b3d fix encrypt/decrypt classes 2014-09-17 14:32:14 +02:00
Vincent Breitmoser
9dc22ef510 start work on encrypt/decrypt test classes 2014-09-15 17:21:58 +02:00
Vincent Breitmoser
1f9bbff58d minor fix for passphrase test 2014-09-15 14:17:39 +02:00
Vincent Breitmoser
36ef8a9a62 work on OperationResultParcel 2014-09-14 01:14:58 +02:00
Dominik Schürmann
be199b844c Cleanup tests 2014-09-13 22:02:01 +02:00
Vincent Breitmoser
f8677a5f16 Merge branch 'result-parcels' 2014-09-13 21:32:17 +02:00
Dominik Schürmann
143cd2bd13 Test for badly encoded user ids 2014-09-13 20:46:44 +02:00
Dominik Schürmann
0f88d5b024 Fix tests 2014-09-13 19:41:38 +02:00
Dominik Schürmann
7475aae5e1 Add key with bad user id encoding 2014-09-13 19:35:18 +02:00
Vincent Breitmoser
4c636a1471 introduce OperationResultParcel for PgpDecryptVerify operations (WIP) 2014-09-13 17:54:10 +02:00
Vincent Breitmoser
19252380f1 promote all result parcels to top level classes in their own package 2014-09-13 14:36:23 +02:00
Vincent Breitmoser
8f6b7e27f1 editKey: add test case for previous commit 2014-09-11 22:49:39 +02:00
Vincent Breitmoser
8e665d829e merge: adapt testcase to previous commit 2014-09-11 22:48:22 +02:00
Dominik Schürmann
72ccc48d16 Fix test 2014-09-09 09:40:15 +02:00
Dominik Schürmann
dc39b58609 Fix test 2014-09-08 11:41:26 +02:00
Dominik Schürmann
cf8978b86d Revert "Fix test"
This reverts commit f392d95ac3.
2014-09-08 11:40:56 +02:00
Dominik Schürmann
f392d95ac3 Fix test 2014-09-08 11:40:06 +02:00
Vincent Breitmoser
05e9eefda9 ditch public divert-to-card test keyring 2014-09-03 03:09:42 +02:00
Vincent Breitmoser
598a5e7439 implement test case for mailvelope keyring with no key flags 2014-09-03 03:05:18 +02:00
Vincent Breitmoser
6e219d245f fix tests for changed key flag semantics 2014-09-03 02:55:35 +02:00
Vincent Breitmoser
e9b14585f5 add getSecretKeyType method to CachedPublicKeyRing 2014-09-03 02:43:06 +02:00
Dominik Schürmann
e2d51b86f5 If no key flags subpacket is present allow all key flags, fixes mailvelope keys 2014-09-02 17:16:04 +02:00
Vincent Breitmoser
84d16bd1f7 add test for divert-to-card 2014-09-02 12:36:04 +02:00
Dominik Schürmann
b547258df6 Add testkey for gnupg generated divert-to-card key with Yubikey NEO 2014-09-02 11:25:05 +02:00
Vincent Breitmoser
56f760e3f8 ditch NullProgressable 2014-08-30 18:32:29 +02:00
Dominik Schürmann
b193965e58 Merge pull request #796 from open-keychain/develop
ECC support
2014-08-28 10:46:58 +02:00
Vincent Breitmoser
783dae8804 add ecc support 2014-08-24 16:08:37 +02:00
Vincent Breitmoser
9f9c31868d tests: fix non-deterministic testMasterModify 2014-08-23 12:13:28 +02:00
Vincent Breitmoser
63ca81d871 Copyright (C) 2014 Vincent Breitmoser 2014-08-21 00:02:27 +02:00
Dominik Schürmann
6ffdafc0e6 Add license headers 2014-08-19 10:01:39 +02:00
Vincent Breitmoser
aa625d4fbf parametrize FileImportCache for filename 2014-08-17 00:49:14 +02:00
Vincent Breitmoser
c00343d516 modify*Key: improve handling of passphrase modification (add tests, too) 2014-08-16 21:04:43 +02:00
Vincent Breitmoser
e38f6a2a46 use correct algorithm for signatures (actually fix heterogeneous subkeys) 2014-08-16 19:45:14 +02:00
Vincent Breitmoser
2497722b48 fix travis tests (more), minor comment edits 2014-08-16 07:12:37 +02:00
Vincent Breitmoser
7c7ba21714 tests: add test for master key revocation 2014-08-16 07:06:07 +02:00
Vincent Breitmoser
6e84c72801 tests: more expected error types 2014-08-16 06:53:50 +02:00
Vincent Breitmoser
de0d95432e typed expected failures and a couple minor things 2014-08-16 06:53:50 +02:00
Vincent Breitmoser
a943bebfdf support for master key modifications, among other stuff 2014-08-16 06:53:50 +02:00
Vincent Breitmoser
1fa77d57d2 modifySecretKey: err out on "use previous" expiry date for (sub)key creation 2014-08-16 06:53:50 +02:00
Vincent Breitmoser
c54fe21f44 modifySecretKey: err out on revocation of nonexistent user id 2014-08-16 06:53:50 +02:00
Vincent Breitmoser
0708b573fc test: even nicer code 2014-08-16 06:53:50 +02:00
Vincent Breitmoser
621978a7f5 explicitly add BouncyCastleProvider (fixes travis?) 2014-08-14 19:13:18 +02:00
Vincent Breitmoser
48935557e8 support changing expiry of subkeys to none 2014-08-14 19:12:29 +02:00
Vincent Breitmoser
9c03889390 tests: add ProviderHelperSaveTest, with long key id collision test 2014-08-14 17:10:40 +02:00
Vincent Breitmoser
d2b9e95c80 tests: cleaner code in PgpKeyOperationTest 2014-08-14 16:28:03 +02:00
Dominik Schürmann
a20e019d5e Fix tests 2014-08-13 19:49:11 +02:00
Dominik Schürmann
32d63828c7 Fix tests 2014-08-13 19:36:22 +02:00
Dominik Schürmann
28b48506f6 Fix tests 2014-08-13 19:11:33 +02:00
Vincent Breitmoser
f555447011 fix dumb mistake in modifySecretKey 2014-08-01 17:46:04 +02:00
Vincent Breitmoser
c0edaf9a5e make FileImportCache generic, iterable, and add unit test 2014-08-01 16:59:48 +02:00
Vincent Breitmoser
11e5261f07 move classes around a bit 2014-08-01 16:50:33 +02:00
Vincent Breitmoser
a3c2eaf1e9 tests: adapt to new EditKeyResult return value 2014-07-31 19:27:25 +02:00
Vincent Breitmoser
b156a057e8 rename Wrapped*Key* to Canonicalized*Key* 2014-07-31 17:09:30 +02:00
Vincent Breitmoser
13bfa3b487 test: add tons of tests and fuzzing for UncachedKeyRing.canonicalize 2014-07-26 22:15:49 +02:00
Vincent Breitmoser
cf6e4254c7 test: add misc UncachedKeyRing tests 2014-07-26 15:51:21 +02:00
Vincent Breitmoser
1c00227c41 test: small code cleanup 2014-07-26 14:16:44 +02:00
Vincent Breitmoser
d849b6d8a8 test: don't need commutativity parameter here after all 2014-07-26 04:38:30 +02:00
Vincent Breitmoser
eab4c4ba8e test: (almost) full coverage for UncachedKeyRing.merge 2014-07-26 04:35:38 +02:00
Vincent Breitmoser
a1c163e993 tests: add a couple of UncachedKeyRing.merge tests 2014-07-26 03:48:13 +02:00
Vincent Breitmoser
ab2b90342e test and fix: adding an empty user id should fail 2014-07-26 03:47:29 +02:00
Vincent Breitmoser
f560bc9317 forgot to move test classpath out of root project 2014-07-21 03:59:28 +02:00
Vincent Breitmoser
299570f1b9 test: start with UncachedKeyRing.canonicalize tests 2014-07-19 02:12:04 +02:00
Vincent Breitmoser
19dc49153d use jacoco for test coverage 2014-07-19 01:31:34 +02:00
Dominik Schürmann
306bea5ee9 Removed OpenPGP-haskell submodule 2014-07-18 09:39:36 +02:00
Dominik Schürmann
3d74a9c11c Add OpenPGP-Haskell test files directly 2014-07-18 09:34:54 +02:00
Vincent Breitmoser
bdde6a3bd8 test: use random string as passphrase 2014-07-13 16:38:27 +02:00
Vincent Breitmoser
50c91b0799 test: add UncachedKeyringTest, stub 2014-07-13 16:27:45 +02:00
Vincent Breitmoser
3479850ccc test: work on KeyringTestingHelper methods 2014-07-13 16:26:26 +02:00
Vincent Breitmoser
ed0aec57bf test: more tests for different revocation cases 2014-07-12 02:02:03 +02:00