Commit Graph
233 Commits
Author SHA1 Message Date
Harsh ShandilyaandGitHub 6b3368acb2 Update SplitUserIdTest.java 2021-05-02 19:23:02 +05:30
Harsh Shandilya 6408bac245 OpenKeychain: add a test for TLD-less email
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-05-02 19:04:20 +05:30
Dominik Schürmann 903cce6b20 fix SecurityTokenUtilsTest 2021-03-16 19:50:29 +01:00
Dominik Schürmann 56254aedb7 improve and simplify key formats 2021-03-16 17:07:56 +01:00
Christian Hagau a0a5b63c54 Add a test for S2K KDF for security tokens 2021-01-29 00:00:00 +00:00
Vincent Breitmoser 5eaa7518e8 drop broken secure wifi transfer feature
This feature depended on the unsupported TLS-PSK implementation shipped
with Android's conscrypt implementation. It abused a duck typing
mechanism that allowed using TLS-PSK despite its unsupported status, but
this silently broke somewhere along the way.
2021-01-29 12:10:35 +01:00
Vincent Breitmoser d8fdea9d17 fix unit tests, update robolectric 2020-05-30 19:13:39 +02:00
Vincent Breitmoser 5172002f0e migrate to androidx 2020-05-30 15:47:09 +02:00
Eero Häkkinen e901322ea3 Add query parameter to WKD URLs
This change adds the l=LOCAL-PART query parameter to WKD URLs as
specified in RFC Draft: draft-koch-openpgp-webkey-service-09 section 3.1
since version 07.
2020-02-18 01:08:27 +02:00
Anders Lindén ff4c6684e1 Adding support for WKD Advanced method
This change extends the WKD support with Advanced mode stated in
RFC Draft: draft-koch-openpgp-webkey-service-08 section 3.1
2019-09-28 22:26:43 +02:00
Dominik Schürmann dd82374b17 update USB identifier to reflect YubiKey 5 series 2019-02-11 15:46:14 +01:00
Dominik SchürmannandGitHub 86db169bf8 Merge pull request #2415 from open-keychain/fix-secret-keys
fix secret key export compatibility with gnupg
2018-10-30 17:26:55 +01:00
Dominik SchürmannandGitHub 894bac6c8d Merge pull request #2404 from Secalot/master
Add Secalot hardware token support.
2018-10-30 15:45:58 +01:00
Vincent Breitmoser 871621de73 add unit tests for key creation and s2k 2018-10-30 14:58:19 +01:00
Matvey Mukha 01b2f6e95b Add reset support for Secalot. 2018-10-29 23:48:03 +01:00
Vincent Breitmoser abf331ddce add unit test for encryption key selection 2018-10-22 21:02:31 +02:00
Vincent Breitmoser 7e5a153a04 fix AuthenticationOperationTest 2018-10-02 16:43:28 +02:00
Vincent BreitmoserandGitHub ded1203ec8 Merge pull request #2400 from open-keychain/test_auth_key_selection
Add a test for authentication subkey selection
2018-10-02 16:13:02 +02:00
Vincent BreitmoserandGitHub 9bd53e48f8 Merge pull request #2397 from open-keychain/effective-authkey
Use specialized query exclusively to select authentication key
2018-10-02 16:11:34 +02:00
Christian Hagau 047a409164 Add a test for authentication subkey selection with a keyring created as
such:
- add 3 auth subkeys
- revoke the 1st & 3rd subkey
- add an encryption subkey
2018-10-02 00:00:00 +00:00
Vincent Breitmoser 400db49e75 Use specialized query exclusively to select authentication key 2018-10-01 21:36:01 +02:00
Christian Hagau 2e50e117ed Use static passphrases in tests 2018-08-07 00:00:00 +00:00
Vincent Breitmoser 48383211c3 clean up remnants of KeychainContract 2018-07-27 10:54:36 +02:00
Vincent Breitmoser acb9544195 return KeychainExternalProvider as MatrixCursor 2018-07-13 16:27:12 +02:00
Vincent Breitmoser eb34f900e4 clean up package structure 2018-07-04 13:59:21 +02:00
Vincent Breitmoser 1635c261b8 ditch CachedPublicKeyRing, and some cleanup 2018-07-02 14:50:11 +02:00
Vincent Breitmoser 31830a8c86 extract database access from CachedPublicKeyRing 2018-07-02 14:50:11 +02:00
Vincent Breitmoser 4416ddf11c Get rid of more places where URIs are used for loading 2018-07-02 14:50:11 +02:00
Vincent Breitmoser 4cdc57c690 clean up KeychainDatabase a bit 2018-07-02 14:50:11 +02:00
Vincent Breitmoser c8481d0247 use Enum for verification status of certificates 2018-07-02 14:50:11 +02:00
Vincent Breitmoser 2a5b93d9c5 fix unit tests 2018-07-02 14:50:11 +02:00
Vincent Breitmoser 1556db897f introduce AbstractDao, fix import of keys (missing delete in KeychainProvider) 2018-07-02 14:50:11 +02:00
Vincent Breitmoser e144a402b5 extract autocrypt_peers from KeychainProvider into AutocryptPeerDao 2018-07-02 14:50:11 +02:00
Vincent Breitmoser bae90f1b23 extract UpdatedKeys access from KeychainProvider into KeyMetadataDao 2018-07-02 14:50:11 +02:00
Vincent Breitmoser d133b732e5 use SQLDelight, remove ApiApps access from KeychainProvider 2018-07-02 14:50:11 +02:00
Vincent Breitmoser 59c9f52e85 Store secret keys in private storage instead of database 2018-07-02 14:50:11 +02:00
Vincent Breitmoser f22c761376 fix unit tests, add shadow for WorkerManager 2018-07-02 14:50:11 +02:00
Vincent Breitmoser 8adf4a8a64 move notification of key changes into DAOs 2018-06-14 16:52:43 +02:00
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 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 8edd084212 allow setting custom headers in autocrypt setup message 2018-05-03 15:27:04 +02:00
Christian Hagau ba03969f7c Handle EdDSA & DSA SSH signatures separately in SshSignatureConverter 2018-05-01 00:00:00 +00:00
Vincent BreitmoserandGitHub 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
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 8ad2d56f1c Add option to BackupOperation to export only secret keys 2018-04-16 22:14:38 +02:00
Vincent Breitmoser ba9d714c1b Add Numeric9x4PassphraseUtils 2018-04-13 19:37:33 +02:00
Vincent Breitmoser 52c8824969 token: send expected result size as Le
This is a different take on 1c8cc99c68,
sending the expected result size. It's not what the spec says, but it's
what GnuPG does, so it should achieve good compatibility.
2018-03-22 17:28:44 +01:00
Vincent Breitmoser 1e7ed06698 usb: respect automatic PPS feature flag
If the feature flag is set, don't do PPS negotiation. Closes #2219
2018-03-22 16:46:46 +01:00
Vincent Breitmoser 03cbc36e23 some fixes for last updated times 2018-03-13 00:12:30 +01:00