Commit Graph

3977 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
6f987f2920 improve broken status bar layouting 2022-12-22 16:48:52 +01:00
Vincent Breitmoser
8e4b248acf create all pending intents with FLAG_IMMUTABLE 2022-12-22 14:47:04 +01:00
Vincent Breitmoser
53a976be2f remove PackageUninstallReceiver, it doesn't work anyways 2022-12-22 14:16:44 +01:00
mimi89999
f4bbc17751 Add automatic theme 2021-09-20 20:02:53 +02:00
Dominik Schürmann
f8724d3f42 integrate EdDSAAuthenticationSigner into default signer using enablePreHash parameter 2021-04-29 17:51:39 +02:00
Dominik Schürmann
a9b28dd11c improve card decrypt with constants 2021-04-21 14:48:14 +02:00
Dominik Schürmann
28c23f84bf improve variable names in ECDH card decrypt 2021-04-21 14:36:55 +02:00
dangfan
ec5d5e399f add more documentation of decryptSessionKeyEcdh 2021-04-21 19:09:35 +08:00
dangfan
9ea9bd96bb fix the compatibility of compressed and uncompressed format in ECDH 2021-04-21 09:25:59 +08:00
Dominik Schürmann
38157242e1 HKP parsing: make \r optional in pubkey lines 2021-04-18 10:24:37 +02:00
Stelian Pop
20caa22f05 Fix parsing of EOL in keyserver answer 2021-04-16 11:36:25 +02:00
Christian Hagau
178e7856b2 Don't explicitly clear PIN when verifying admin PIN.
The PIN is cleared anyway when the Passphrase object holding the PIN is
freed.
2021-04-02 00:00:00 +00:00
David Hedberg
f45254cf07 Only skip hashing when creating an EDDSA authentication signature 2021-03-27 11:38:14 +01:00
Dominik Schürmann
56254aedb7 improve and simplify key formats 2021-03-16 17:07:56 +01:00
Dominik Schürmann
c899e5ef2d Merge branch 'master' of https://github.com/dhedberg/open-keychain into dhedberg-master 2021-03-16 15:47:24 +01:00
Dominik Schürmann
0b49e7f91f fix build error introduced by x25519 decryption support 2021-03-16 15:25:24 +01:00
Dominik Schürmann
7e5738bd5c Merge pull request #2630 from canokeys/fix_ecdh_kek_error
Fix ECDH decryption error using NIST curves
2021-03-16 15:13:23 +01:00
Dominik Schürmann
fb0651eda1 fix algorithm id for ECDSA auth keys on security keys 2021-03-16 15:12:22 +01:00
Dominik Schürmann
af64735cbf disable IDEA, simply arguments in PgpSecurityConstants 2021-03-16 14:54:15 +01:00
Dominik Schürmann
94987a9010 rename whitelists to secure lists 2021-02-26 15:11:54 +01:00
Dominik Schürmann
0ec0c34cb9 move toBytes into RSAKeyFormat 2021-02-23 18:18:43 +01:00
Dominik Schürmann
2a0625e615 fix yubikey curve OID bug by reworking ASN1 parsing 2021-02-23 18:10:15 +01:00
David Hedberg
6d4f37b154 Don't hash the data to sign when using EDDSA 2021-02-20 19:43:04 +01:00
David Hedberg
3fb4771602 Activate ssh encoding of public keys for ed25519 2021-02-20 19:39:28 +01:00