Commit Graph

650 Commits

Author SHA1 Message Date
Vincent Breitmoser
b7b7be0e7a service: use new constants, check for address instead of full user id 2016-06-07 14:54:26 +02:00
Vincent Breitmoser
cb11c0ec84 make OpenPgpSignatureResult immutable 2016-06-02 16:04:45 +02:00
Vincent Breitmoser
88b0903bf5 service: support sender address status and list of confirmed user ids to OpenPgpSignatureResult 2016-06-02 15:32:45 +02:00
Dominik Schürmann
24b92172be Fix license header 2016-05-25 15:18:53 +03:00
Alex Fong
7b02161ce7 Slight changes for consistency 2016-05-16 00:59:57 +08:00
Alex Fong
614f46a630 Shifted duplicate method implementations from KeyRing to openpgp-api submodule 2016-05-15 23:26:09 +08:00
Dominik Schürmann
317f46990f Fix license header 2016-05-12 15:10:44 +03:00
Vincent Breitmoser
48758cdec5 update progress handling in PgpDecryptVerifyOperation
- less progress messages overall
- report progress again based on input stream position, if filesize is known
- limit progress messages to one every 200ms while decrypting
- also fixed a bug in DecryptListFragment, the recycler view now reuses
  old views as intended instead of crossfading all the time.
2016-05-11 16:17:01 +02:00
Andrea Torlaschi
c942d8b2ff PgpSignEncryptOperation refactoring 2016-05-10 23:38:11 +02:00
Alex Fong
01c2e1429b Edited comments 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
dfcde9242d Removed unrequired code, standardized terms used. 2016-05-05 07:57:01 +08:00
Alex Fong
b490be9c1c Refactored code to use functions already present in code, reduced liberties taken when modifying functions.
Todo:
Fix indentation for error messages
2016-05-05 07:56:26 +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
5805cd4d0a Fix createUserId 2016-04-29 23:52:01 +02:00
Dominik Schürmann
adeb1bd3f8 Merge pull request #1819 from 007durgesh219/Issue#1817
Fix Crash when no encryption subkey is available, Issue #1817
2016-04-29 23:19:15 +02:00
Dominik Schürmann
fad63cc76f Use StringBuilder.append() according to lint 2016-04-29 22:37:52 +02: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
Dominik Schürmann
0e67b49e1a Merge pull request #1831 from fiaxh/key_creation_flexible
Handle user input on key creation more generously
2016-04-29 21:36:53 +02:00
Vincent Breitmoser
8e4d68c55a api: allow caching of sessionKey in OpenPgpDecryptResult 2016-04-29 15:46:17 +02:00
Nikita Mikhailov
163aef4c6b Update obsolete Nfc class prefixes 2016-04-16 11:13:51 +06:00
fiaxh
249b8d7d78 Handle user input on key creation more generously
Allow empty name and do not regex-check email
fixes #1825
2016-04-15 01:21:15 +02:00
Durgesh
8f88efe13f Fix Crash when no encryption subkey is available, Issue #1817
Signed-off-by: Durgesh <007durgesh219@gmail.com>
2016-04-14 11:05:55 +05:30
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
Durgesh
8b8b91e247 Fix K-9 stable: OpenPGP: Unknown compression algorithm #1752
Signed-off-by: Durgesh <007durgesh219@gmail.com>
2016-03-06 18:39:30 +05:30
Vincent Breitmoser
03e695c650 ditch isLikelyText flag, set mimeType to text/plain in that case 2016-02-23 15:01:22 +01:00
Vincent Breitmoser
b9abf43153 move CharsetVerifier to utils package 2016-02-23 14:14:12 +01:00
Vincent Breitmoser
a0c90f0ad5 documentation and cleanup 2016-02-22 23:38:02 +01:00
Vincent Breitmoser
19930bdd5c decryptVerify: use CharsetVerifier to guess whether data is binary or not 2016-02-22 21:59:57 +01:00
Vincent Breitmoser
daf243082c externalize CharsetVerifier, add looksLikeText to OpenPgpMetadata object 2016-02-22 21:58:31 +01:00
Dominik Schürmann
a2ea509f06 Backup format v2: redesign restore dialog 2016-02-10 18:48:27 +01:00
Dominik Schürmann
713f3076f4 Backup format v2: redesigned backup code fragment with masked edit text 2016-02-10 18:48:27 +01:00
Vincent Breitmoser
da6dfb57a0 Merge branch 'master' into performance 2016-02-10 17:36:02 +01:00
Vincent Breitmoser
01b165ea88 performance: add license headers and some documentation 2016-02-10 17:08:00 +01:00
Dominik Schürmann
79db5c0ebe Replace spongycastle with bouncycastle 2016-02-09 00:24:46 +01:00
Vincent Breitmoser
3bf6a00250 performance: use more canonical hashCode implementation 2016-02-05 16:10:47 +01:00
Vincent Breitmoser
b1ea126142 performance: avoid expensive getSecretKeyType call, use cached where possible 2016-02-05 16:10:47 +01:00
Vincent Breitmoser
e3b8cea04d performance: cache session keys per compatible S2K configuration 2016-02-05 16:10:47 +01:00
Vincent Breitmoser
48dd3d09e6 import: handle FileNotFoundException (fixes #1688) 2016-02-01 15:24:48 +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:
50c98c7ed6/g10/getkey.c (L1668-L1674)
Subkey signatures:
50c98c7ed6/g10/getkey.c (L1990-L1997)
2016-01-15 15:28:40 -08:00
Dominik Schürmann
f691ef2a26 Error out when editing a stripped key 2016-01-11 08:13:51 +01:00
Dominik Schürmann
0fd5b45df9 Use more generic 'Security Token' where possible, add sutitle to create key what tokens are supported 2016-01-10 17:17:57 +01:00
Dominik Schürmann
b84c9a8fb6 Update spongycastle to 1.53 2015-12-22 13:31:55 +01:00
Vincent Breitmoser
e32c1a9ced api: add micalg result extra to detached signature api call 2015-12-17 01:08:23 +01:00
Vincent Breitmoser
c4599798f9 fix delete file securely method and use for delete original file 2015-11-15 23:25:39 +01:00
Vincent Breitmoser
529b9518c1 decrypt: skip all encountered marker packets (fix #1582) 2015-11-15 01:01:09 +01:00
Vincent Breitmoser
712e526ab5 Merge commit '816dce0334e8b8d9da3cb00d31d26033b17040a3' 2015-11-13 17:00:09 +01:00
Vincent Breitmoser
2d7dada888 decrypt: skip unavailable and unsuitable keys 2015-11-13 16:58:26 +01:00
Vincent Breitmoser
5c47570e90 import: apply fixPgpMessage to text for import from clipboard 2015-11-06 12:09:27 +01:00