Wiktor Kwapisiewicz
222231066e
Show import key dialog when clicking on WKD URL
...
This change extends WKD support for direct Web Key Directory URLs
similarily to Facebook key URLs and HKP URLs.
When a link with scheme `https` and path starting with
`/.well-known/openpgpkey/hu/` is clicked Android will suggest importing
the key with OpenKeychain.
Fixes #2270 .
2018-05-22 22:13:00 +02:00
Wiktor Kwapisiewicz
bc25b345fc
Extract out contruction of Web Key Directory URLs
...
Moves `toWebKeyDirectoryURL` to a separate class adding unit tests
for URL correctness as well as support for spaces at the beginning
and end of the e-mail. Spaces are frequently automatically inserted
by soft keyboards.
2018-05-22 21:32:53 +02:00
Wiktor Kwapisiewicz
759e51e6f4
Add support for NDEF tags with openpgp4fpr URIs
...
This change allows importing keys from NDEF tags that have fingerprint
encoded as an `openpgp4fpr` URI when the application is in background.
After scanning a tag the `Import keys` activity is shown with results of
the search for key fingerprint encoded in the tag.
2018-05-22 09:25:52 +02:00
Vincent Breitmoser
090eb7e6e3
Merge pull request #2314 from wiktor-k/wkd
...
Search for keys in Web Key Directory
2018-05-21 20:46:16 +02:00
Wiktor Kwapisiewicz
fa3b32eddc
Add ability to search for keys using WKD protocol
...
If a search pattern that looks like an email address is found
an additional query using Web Key Directory will be performed.
Implements basic flow described in "Key Discovery" [0] I-D.
Querying SRV records is not supported.
Fixes partially #2270 .
[0]: https://tools.ietf.org/html/draft-koch-openpgp-webkey-service-05#section-3.1
2018-05-12 21:14:56 +02:00
Vincent Breitmoser
225fdbb79a
Merge pull request #2318 from wiktor-k/vcard-key
...
Extend QR scanner to support VCards with KEY field
2018-05-11 17:17:17 +02:00
Wiktor Kwapisiewicz
01aadf6a1f
Extend QR scanner to support VCards with KEY field
...
Currently QR scanner supports only `openpgp4fpr` URIs. VCard specification
allows embedding public key information as an URI in `KEY` field [0]. Two
schemes used with this field - `https` and `data` are either insecure or
not practical [1]. As the value of `KEY` field is a URI one can use
`openpgp4fpr` URI there to have both secure and small links.
This change will extract URI from `KEY` field from a scanned VCard and
process it just like it would be a URI scanned directly. When a `openpgp4fpr`
URI is put there the UI would search and import the key and show the confirm
dialog.
Example VCard with this URI:
BEGIN:VCARD
FN:Test WKD
EMAIL:test-wkd@metacode.biz
KEY:OPENPGP4FPR:74EC8D3DA82A79DAA25DF10C6BA55ED83ABAE1BB
END:VCARD
[0]: https://tools.ietf.org/html/rfc6350#section-6.8.1
[1]: https://www.av8n.com/computer/htm/distributing-keys.htm#sec-fing
2018-05-10 15:22:09 +02:00
Vincent Breitmoser
cb6913f6dd
Simplify backup code fragment
2018-05-08 15:20:36 +02:00
Vincent Breitmoser
8edd084212
allow setting custom headers in autocrypt setup message
2018-05-03 15:27:04 +02:00
Vincent Breitmoser
a63aca623d
make sure all keys are allowed for transfer call
2018-05-03 15:26:27 +02:00
Vincent Breitmoser
be58f2ff4c
Add autocrypt key transfer api method
2018-05-03 15:26:24 +02:00
Dominik Schürmann
5db00cd924
Merge pull request #2301 from open-keychain/api-choose-sign-key
...
New identity chooser dialog for API
2018-05-03 14:58:20 +02:00
Vincent Breitmoser
f8e6e08410
incorporate feedback
2018-05-02 20:02:53 +02:00
Christian Hagau
e849ee3ca8
Add references to SshSignatureConverter
2018-05-01 00:00:00 +00:00
Christian Hagau
ba03969f7c
Handle EdDSA & DSA SSH signatures separately in SshSignatureConverter
2018-05-01 00:00:00 +00:00
Vincent Breitmoser
ff6c4d50e3
Merge pull request #2309 from hagau/ssh_rsa_sha2_auth
...
Use correct signature format identifier when creating SSH signatures for RSA with SHA256 & SHA512
2018-05-01 13:55:54 +02:00
Dominik Schürmann
4151d37d14
Merge pull request #2304 from open-keychain/autocrypt-setup-message
...
Autocrypt setup message format support
2018-04-29 08:47:30 +02:00
Christian Hagau
6b0ac338ca
Use correct signature format identifier when creating SSH signatures for
...
RSA with SHA256 & SHA512
2018-04-27 00:00:00 +00:00
Vincent Breitmoser
d6f8357a76
Slight change to "Use different key" submenu, possibly display Autocrypt Setup Message hint
2018-04-18 16:44:01 +02:00
Vincent Breitmoser
bd7cfb9504
Key selection implies permission to OpenKeychain access
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
50af8b6889
Make api permissive operations idempotent
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
650fb911ff
Slight layout change, keep id on single line
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
ee7706b5e9
Add a way to call legacy getSignKey dialog
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
8858dd5c3b
Return extra values for select sign key call
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
b75cd19a4f
add option to choose from unrelated keys
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
336c43cfde
Actually save key in identity select dialog, and some more design updates
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
b92ff86988
Redesign "select signing key" api dialog
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
23cb3c9426
Use only two subkeys in default configuration
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
69121bfa98
extract KeyInfoInteractor from KeyLoader
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
c9b1690b76
add AsyncTaskLiveData class
2018-04-18 15:34:39 +02:00
Vincent Breitmoser
9ab9127005
Call TemporaryFileProvider.cleanup() in Handler
...
This *might* fix Samsung problems. Let's see if it reduces crash reports.
See also:
https://stackoverflow.com/questions/41474623/sporadic-illegalargumentexception-unknown-url-content
2018-04-18 15:33:08 +02:00
Vincent Breitmoser
8ad2d56f1c
Add option to BackupOperation to export only secret keys
2018-04-16 22:14:38 +02:00
Vincent Breitmoser
45c481c067
add prefixColor attribute to PrefixedEditText
2018-04-16 22:12:28 +02:00
Vincent Breitmoser
9bb19a3ad7
Support import from application/autocrypt-setup type
2018-04-16 16:45:16 +02:00
Vincent Breitmoser
079305c375
Add support for Passphrase-Begin in PassphraseDialog
2018-04-16 16:45:16 +02:00
Vincent Breitmoser
a140797da7
Fix PrefixedEditText in combination with hints
2018-04-13 21:45:48 +02:00
Vincent Breitmoser
f238e1a75e
Use numeric9x4 format in backup fragment
2018-04-13 21:41:30 +02:00
Vincent Breitmoser
ffc28f408e
Drop support for BackupVersion header in PgpSignEncryptOperation
2018-04-13 21:12:21 +02:00
Vincent Breitmoser
4760a21c40
Add passphrase-format and passphrase-begin headers in BackupOperation, if appropriate
2018-04-13 21:12:21 +02:00
Vincent Breitmoser
ded58588ad
Support numeric9x4 passphrase-format during decryption
2018-04-13 21:12:21 +02:00
Vincent Breitmoser
cb56a44f77
Support Passphrase-Format and -Begin headers in PgpSignEncryptOperation
2018-04-13 21:03:53 +02:00
Vincent Breitmoser
ba9d714c1b
Add Numeric9x4PassphraseUtils
2018-04-13 19:37:33 +02:00
Vincent Breitmoser
a1da52420e
Always show creation time for own keys, and show as "just now" for new keys
2018-03-31 00:13:49 +02:00
Vincent Breitmoser
5032453dc2
show email address as name instead of '<no name>'
2018-03-31 00:12:48 +02:00
Vincent Breitmoser
1892baba62
Change upload checkbox name and default in certify dialog, too
2018-03-26 22:02:53 +02:00
Vincent Breitmoser
f96fdd582f
Change wording on keyserver upload and disable by default for new keys
2018-03-26 21:39:04 +02:00
Vincent Breitmoser
b598a4d965
Some small AS cleanups
2018-03-26 21:22:14 +02:00
Vincent Breitmoser
993cb57d92
show "add linked id" button only for secret keys
2018-03-24 18:18:10 +01:00
Vincent Breitmoser
a363a6cacb
remove "Edit Identities" button from identities card
2018-03-24 18:10:35 +01:00
Vincent Breitmoser
9a86d45bc1
token: send Ne only on last in a chain
2018-03-24 14:14:30 +01:00