Commit Graph

4956 Commits

Author SHA1 Message Date
Vincent Breitmoser
3e3d09ae6d Fix encoding of DSA signatures from security tokens
See https://github.com/open-keychain/open-keychain/issues/2108

Closes #2746
Closes #2497
2024-02-21 17:25:06 +01:00
Vincent Breitmoser
90f859749e Add special handling for expected ECC import format for Nitrokey 3 2024-02-20 15:50:55 +01:00
Vincent Breitmoser
c9e86b00ed Version 6.0.2 2024-02-18 23:05:42 +01:00
Vincent Breitmoser
834abecac0 Drop facebook publickey pattern
This is no longer supported anyways on Android 12+, since we don't have
the URI verified
2024-02-18 14:51:40 +01:00
Vincent Breitmoser
bcac9d3204 Add test for multiple signing candidates case 2024-02-18 14:49:00 +01:00
Vincent Breitmoser
5cc2d88ab9 Fix selection of signing or auth subkey if there are multiple candidates
Fixes #2879
2024-02-18 14:11:59 +01:00
Vincent Breitmoser
3d70875726 Version 6.0.1 2024-02-16 10:44:15 +01:00
Vasyl Gello
4ebf335821 Show passphrase fragment for all textable types
PR #2864 removed the code unconditionally displaying passphrase dialog
and the codepath inside onCreate has become the only one that can display
the fragment. However, the if-clause does not consider new types other
than PASSPHRASE that emerged with development of OKC.

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2024-02-15 15:06:32 +02:00
Vasyl Gello
c846e65d7c Fix theme reversal
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2024-02-15 14:58:53 +02:00
Heinrich Kießling
f008f27843 Fix Issue #2881: avoid NullPointerException in selectUserIdStatusByEmailLike
after upgrade of sqlitedb library sqldelight in commit 5d84bd8387 the method getUidStatusByEmailLike may suddenly raise a NullPointerException. This fix attempts to restore the prior behavior or simply returning null.
2024-02-12 12:19:04 +01:00
Vincent Breitmoser
f099b86950 Version 6.0.0 2024-02-02 00:02:09 +01:00
Stuart Longland
0fcd77d61d CcidTransceiver: Adjust line lengths
100 characters with exceptions made for CLI commands, URIs and imports.
Some of this is existing code, but for the sake of consistency, we'll
wrap all at 100 characters.

Function arguments: when this happens, if we put the closing `)` on its
own line (like `}` in code blocks), it visually stands out better for
indicating where the function call ends.
2024-02-01 23:55:10 +01:00
Stuart Longland
fec3f85fad CcidTransceiver: Poke device again if we get zero-sized packet. 2024-02-01 23:55:10 +01:00
Stuart Longland
19cd6967c0 T1ShortApduProtocol: Implement CCID chaining
Code credit: @sosthene-nitrokey
https://github.com/open-keychain/open-keychain/pull/2842#issuecomment-1637598171
2024-02-01 23:55:10 +01:00
Stuart Longland
1ee192f098 CcidTransceiver: Expose Level Param
The `PC_TO_RDR_XFR_BLOCK` structure has a fields which is used in
multi-block transfers:
- `levelParam`: Indicates if APDU begins or ends in this command

Some constants for `levelParam` are defined.
2024-02-01 23:55:10 +01:00
Stuart Longland
99fed989ad UsbTransport: Recognise NitroKey 3 family USB ID
https://raw.githubusercontent.com/Nitrokey/libnitrokey/master/data/41-nitrokey.rules lists the following USB VID/PID:

20a0:42b2: Nitrokey 3A Mini/3A NFC/3C NFC
2024-02-01 23:55:10 +01:00
Stuart Longland
64b4c9fad8 SecurityTokenInfo: Add NITROKEY_3 to TokenType enum 2024-02-01 23:55:10 +01:00
Vincent Breitmoser
0e8f3fa90e Fix behavior for duplicate user ids 2024-01-29 16:42:28 +01:00
Vincent Breitmoser
2391a8c09b Explicitly set provider name for JcePublicKeyKeyEncryptionMethodGenerator 2024-01-29 16:42:28 +01:00
Vincent Breitmoser
40f45521c3 Update robolectric to 4.11.1 2024-01-29 16:42:28 +01:00
Vincent Breitmoser
4dd3391c9f use FileHelper.openOutputStreamSafe to resolve output streams 2024-01-29 16:42:28 +01:00
Vincent Breitmoser
ba9c93d046 consistently use FileHelper.openInputStreamSafe to resolve input streams 2024-01-29 16:42:28 +01:00
Vincent Breitmoser
034eab9df1 Update BouncyCastle to 1.77 2024-01-29 16:42:28 +01:00
Vincent Breitmoser
e69ff0a2ad Drop notification for keyserver update progress
We don't have the notification permission reliably here, and the
notification shows up and is gone so quickly that it provides little
value anyways.
2024-01-29 16:42:28 +01:00
Vincent Breitmoser
3a52071f50 Update AGP to 8.4.2 2024-01-29 16:42:28 +01:00
Vincent Breitmoser
6f3ce7aadb Update to targetSdk 34 2024-01-29 16:42:28 +01:00
Vincent Breitmoser
5d84bd8387 Update AGP to 7.4.2, update SqlDelight to 1.4.2
The adaptations to SqlDelight 1.4.2 leave the type namings *extremely*
messy. But it works and is as semantically equivalent as I could make
it.
2024-01-29 16:42:28 +01:00
segfault-bilibili
0caeca0b66 Make ECC 25519 the default generated key type 2024-01-29 16:41:30 +01:00
Vincent Breitmoser
5615197553 Fix 25519 choice naming 2024-01-29 16:41:29 +01:00
segfault-bilibili
7c97829ca9 enable encrypt for eddsa; fix key usage spinner 2024-01-29 16:41:28 +01:00
segfault-bilibili
5f0646b7e9 fix cv25519 encryption key generation 2024-01-29 16:41:27 +01:00
segfault-bilibili
3288adf5b2 fix typo 2024-01-29 16:41:26 +01:00
Vincent Breitmoser
e13400c6fa Merge pull request #2859 from schorschii/darkmode-transfercode-fix
Fix: transfer code text color in dark mode
2024-01-29 16:04:39 +01:00
Vincent Breitmoser
c3f5528b51 Merge pull request #2860 from schorschii/update-app-icons
Update featured app icons
2024-01-29 16:03:51 +01:00
Konrad Moesch
892dafb190 Remove commented code 2023-12-03 12:36:34 +01:00
Konrad Moesch
e81a184056 modify dialog lifecycle logic to be able to use autofill 2023-12-03 12:20:43 +01:00
Georg Sieber
98cb6b8d82 update app icons 2023-11-12 20:39:56 +01:00
Georg Sieber
fc936ef827 fix transfer code text color in dark mode 2023-11-12 15:44:49 +01:00
Vincent Breitmoser
8d69181b65 Version 5.8.2 2023-01-05 17:09:21 +01:00
Vincent Breitmoser
6e07cc4bd6 Remove donation dialog
Since OpenKeychain is in no longer actively developed, we might as well
drop the donation dialog.
2023-01-05 17:08:34 +01:00
Vincent Breitmoser
0135d44fc6 Version 5.8.0 2022-12-29 22:57:16 +01:00
Vincent Breitmoser
c1861535bc make auto theme the default 2022-12-27 22:33:16 +01:00
Vincent Breitmoser
e803a4064e Merge branch 'auto_theme' 2022-12-27 22:27:00 +01:00
Vincent Breitmoser
cdec29f5a9 fix crash in NfcTransport.isConnected 2022-12-27 22:20:30 +01:00
Vincent Breitmoser
3ebcd6f50a update okhttp, fixes http crashes on newer androids 2022-12-27 22:15:55 +01:00
Vincent Breitmoser
1fd97e3740 bump targetSdkVersion to 31 2022-12-22 16:48:52 +01:00
Vincent Breitmoser
6f987f2920 improve broken status bar layouting 2022-12-22 16:48:52 +01:00
Vincent Breitmoser
a17a6e9131 update parts of toolchain and dependencies 2022-12-22 16:44:53 +01:00
Vincent Breitmoser
8e4b248acf create all pending intents with FLAG_IMMUTABLE 2022-12-22 14:47:04 +01:00
Vincent Breitmoser
84b84760a2 set exported attribute on all activities 2022-12-22 14:17:32 +01:00