Commit Graph
160 Commits
Author SHA1 Message Date
Vincent Breitmoser 7caf02a4e6 add test for CRCRLF armored files
This is an incorrect format that has been generated by GPG4USB (any
possibly GPG4WIN) for a long time. We better be compatible :(
2017-04-02 22:18:11 +02:00
Vincent Breitmoser 9cf0b05202 fix unit tests 2017-02-24 18:43:56 +01:00
Vincent Breitmoser 2124a4598a DatabaseInteractor -> KeyRepository 2017-02-24 18:24:11 +01:00
Vincent Breitmoser c7e01926e1 add LocalKeyStorage, don't store public keys larger than 50kb in database 2017-02-24 18:06:47 +01:00
Vincent Breitmoser 2bc05a2cd5 focus all read access for key ring data into DatabaseInteractor methods 2017-02-24 18:04:55 +01:00
Vincent Breitmoser aef6e6614e extract DatabaseReadWriteInteractor 2017-02-24 18:04:54 +01:00
Vincent Breitmoser d577257bd5 rename ProviderHelper -> DatabaseInteractor 2017-02-24 18:04:54 +01:00
Vincent Breitmoser 237a0b1805 add simple tests for KeychainExternalProvider 2017-02-06 21:00:25 +01:00
Dominik SchürmannandGitHub 5935dad9e8 Merge pull request #2024 from open-keychain/build-env
Update build environment
2017-02-02 12:55:47 +01:00
Dominik Schürmann 70678ecd81 Update robolectric config 2017-02-02 11:36:12 +01:00
Dominik Schürmann b831cd5725 Update Robolectric to 3.2.2 2017-02-02 10:57:16 +01:00
Hari 28bf1a37a1 Added ascii armor option to the backup api 2017-01-29 22:14:54 +05:30
Dominik Schürmann 962e570e91 Better handling of User ID corner cases 2017-01-26 22:55:37 +01:00
Vincent Breitmoser 1e280d92c5 add tests for OpenPgpServiceKeyIdExtractor 2017-01-11 17:43:14 +01:00
Dominik Schürmann 63244a113a Code formatting and package re-structuring 2017-01-05 13:56:09 +01:00
Arnaud Fontaine e6fe29a0ff Remove test not useful now 2017-01-04 15:38:29 +01:00
Arnaud Fontaine 6b43379a28 Remove use less files from previous commit 2017-01-04 14:59:57 +01:00
Arnaud Fontaine 4c9ea4e090 Fix unit testPrivateKeyTemplateSimple2048 2017-01-04 14:59:57 +01:00
Arnaud Fontaine 05bfd6bc01 Support of OpenPGP card v3 2017-01-04 13:39:19 +01:00
Dominik SchürmannandGitHub b02f50dd22 Merge pull request #1953 from open-keychain/openpgp-signature-result-v4
Openpgp signature result v4
2016-11-30 16:28:16 +01:00
Vincent Breitmoser 52b1016baa update OpenPgpSignatureResult to use enums 2016-11-21 16:05:42 +01:00
Andrea Torlaschi 706840771a ImportKeys: Fix tests 2016-08-19 22:35:43 +02:00
Dominik Schürmann ac1c20f961 Update build environment to SDK 24 2016-08-15 08:37:23 +02:00
Dominik SchürmannandGitHub de0c02e044 Merge pull request #1868 from nmikhailov/nitrokey
WIP: Security token USB handling improvements
2016-08-15 07:46:27 +02:00
Vincent Breitmoser dab4edb24e inputdataoperation: Only consider data MIME if Content-Type header is present 2016-07-24 15:13:43 +02:00
Nikita Mikhailov 762b40df00 SecurityToken: improve unit tests 2016-07-02 19:45:23 +06:00
Nikita Mikhailov a4ab303ca9 Use mockito in SecurityTokenUtilsTest 2016-07-02 19:45:23 +06:00
Nikita Mikhailov 6e2162202d Add tests for SecurityTokenUtils 2016-07-02 19:45:23 +06:00
Vincent Breitmoser e292ec0d1a rename ExportTest to BackupOperationTest 2016-05-17 21:23:08 +02:00
Vincent Breitmoser 5d5d2c3c36 refactor BackupOperation a bit, make more illegal states explicit 2016-05-17 21:22:50 +02:00
Alex Fong 614f46a630 Shifted duplicate method implementations from KeyRing to openpgp-api submodule 2016-05-15 23:26:09 +08:00
Andrea Torlaschi c942d8b2ff PgpSignEncryptOperation refactoring 2016-05-10 23:38:11 +02:00
Dominik Schürmann 7dd5e22353 Merge branch 'master' into backup-api
Conflicts:
	OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java
	extern/openpgp-api-lib
2016-05-07 12:01:16 +03:00
Alex Fong bc3aa44b22 Refactored to reduce coupling between ChangeUnlockParcel and SaveKeyringParcel 2016-05-05 07:57:20 +08:00
Alex Fong f43edcdd7a Refactoring: Removed PassphraseChangeParcel and placed its functionality into ChangeUnlockParcel. 2016-05-05 07:57:20 +08:00
Alex Fong 525788359c (WIP) Change password when key is stripped #1692
Approach:
Find the first unstripped secret key and use it for passphrase verification
All unstripped keys will have their passphrase changed to new passphrase, if possible.

Current Progress:
Changing the passphrase of keys works fine.
Refactoring to combine "modifySecretKeyring" and newly added method, "modifyKeyRingPassword"
may be possible if given the go-ahead.
2016-05-04 22:36:23 +08:00
Dominik Schürmann 0ef59e36ad Merge pull request #1816 from fiaxh/no_name_choose_email
Correctly handle keys only having an email address
2016-04-29 21:40:00 +02:00
Nikita Mikhailov 28a352a288 OTG: Rename smartcard -> security token 2016-04-15 02:02:11 +06:00
Nikita Mikhailov 38a1c2d3ab OTG: refactor, change nfc prefix to smartcard 2016-04-14 22:48:01 +06:00
fiaxh 6881754062 Better handle user_id sidecases while splitting 2016-04-12 13:30:43 +02:00
Vincent Breitmoser c917262957 get rid of code path for pin and notation data handling 2016-03-23 17:49:26 +01:00
Dominik Schürmann a2dcb579ff Add backup API 2016-03-01 00:22:19 +01:00
Vincent Breitmoser 03e695c650 ditch isLikelyText flag, set mimeType to text/plain in that case 2016-02-23 15:01:22 +01:00
Vincent Breitmoser 8714a5eac4 add test for CharsetVerifier 2016-02-23 14:17:00 +01:00
Vincent Breitmoser daf243082c externalize CharsetVerifier, add looksLikeText to OpenPgpMetadata object 2016-02-22 21:58:31 +01:00
Vincent Breitmoser bdae99c084 mime: try to decode with given charset or utf-8 while file is read 2016-02-22 17:03:24 +01:00
Vincent Breitmoser da6dfb57a0 Merge branch 'master' into performance 2016-02-10 17:36:02 +01:00
Dominik Schürmann 79db5c0ebe Replace spongycastle with bouncycastle 2016-02-09 00:24:46 +01:00
Vincent Breitmoser 6a7652c0d7 performance: fix unit tests 2016-02-05 16:10:47 +01:00
KB Sriram 36bffc3ef5 Always revoke subkeys with a revocation signature.
Unlike UID revocations which are "reversible" by newer UID
self-signatures, a subkey revocation should be "permanent" even if
followed by a newer self-signature.

The RFC is ambiguous on this, but this is the convention used by (e.g.)
GnuPG. The rationale for this behaviour is available as comments within
the GnuPG source.

UID signatures:
https://github.com/mtigas/gnupg/blob/50c98c7ed6b542857ee2f902eca36cda37407737/g10/getkey.c#L1668-L1674
Subkey signatures:
https://github.com/mtigas/gnupg/blob/50c98c7ed6b542857ee2f902eca36cda37407737/g10/getkey.c#L1990-L1997
2016-01-15 15:28:40 -08:00