Commit Graph

164 Commits

Author SHA1 Message Date
Vincent Breitmoser
4b2813ea58 Merge pull request #2627 from canokeys/fix_import_rsa_length
Computes the lengths in the template dynamically
2021-02-03 22:52:45 +01:00
Christian Hagau
c2bab8807e Add support for KDF for security tokens 2021-01-29 00:00:00 +00:00
Christian Hagau
6f41c8d5c7 Add KDF to Extended Capabilities 2021-01-29 00:00:00 +00:00
Christian Hagau
d234f6a66d Add KdfCalculator class 2021-01-29 00:00:00 +00:00
Christian Hagau
d3c51b26e8 Add KdfParameters class 2021-01-29 00:00:00 +00:00
dangfan
ea70f7307e Computes the lengths in the template dynamically according to the mod length when importing RSA keys 2020-12-18 23:06:03 +08:00
Vincent Breitmoser
4a4093854d use upstream bouncycastle provider 2020-05-30 19:13:39 +02:00
Vincent Breitmoser
5172002f0e migrate to androidx 2020-05-30 15:47:09 +02:00
Vincent Breitmoser
864fbc95ea re-merge libkeychain 2020-05-30 15:47:09 +02:00
Dominik Schürmann
dd82374b17 update USB identifier to reflect YubiKey 5 series 2019-02-11 15:46:14 +01:00
Vincent Breitmoser
365cebdc72 extract sweetspot activity into separate module 2018-11-20 16:33:12 +01:00
Vincent Breitmoser
e36aab6a97 update sweetspot data 2018-11-20 16:19:43 +01:00
Matvey Mukha
01b2f6e95b Add reset support for Secalot. 2018-10-29 23:48:03 +01:00
Matvey Mukha
29b59b7404 Add Secalot hardware token support. 2018-10-19 22:00:51 +02:00
Vincent Breitmoser
a3021bbd83 Clean up security token transport if connection procedure failed 2018-07-15 12:29:06 +02:00
Vincent Breitmoser
a4e2e2f4af Request missing permission when rescanning USB devices 2018-07-12 18:34:17 +02:00
Vincent Breitmoser
a0f48b8353 log elapsed time for secure messaging setup 2018-06-12 11:06:54 +02:00
Vincent Breitmoser
0c0c095ad8 add Ledger Nano S to supported devices 2018-06-07 14:34:09 +02:00
Vincent Breitmoser
122a8d97f8 refresh connection capabilities even if connection was already established
This is relevant for he Ledger Nano S, which may change "key slots"
interactively.
2018-06-07 14:34:09 +02:00
Vincent Breitmoser
35e7fece0d Add trivial short apdu protocol for T=0 2018-06-07 14:34:09 +02:00
Vincent Breitmoser
d00e27ad2e Attempt to fix change of key attributes during smartcard key creation 2018-05-23 15:45:43 +02:00
Vincent Breitmoser
9a86d45bc1 token: send Ne only on last in a chain 2018-03-24 14:14:30 +01: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
716a1ff32f Merge pull request #2293 from open-keychain/token-brainpool
allow other curves than NIST on security tokens
2018-03-10 14:48:42 +01:00
Vincent Breitmoser
95eeb91fc7 allow other curves than NIST on security tokens 2018-03-10 13:48:58 +01:00
Dominik Schürmann
6541cc57b5 Use Constants.DEBUG instead of BuildConfig.DEBUG to allow debugging of release builds 2018-02-26 14:39:54 +01:00
Vincent Breitmoser
656903a1d8 add support for cv25519 on security tokens (currently only gnuk) 2018-02-20 01:04:47 +01:00
Vincent Breitmoser
56af349cf4 add support for EdDSA on security tokens (currently only gnuk) 2018-02-20 01:04:47 +01:00
Vincent Breitmoser
b3a5b7e04a fix incorrect length in copyOfRange 2018-02-08 10:21:53 +01:00
Vincent Breitmoser
5d40822ea5 make sure CommandApdu consistently copies input data 2018-02-08 10:21:53 +01:00
Vincent Breitmoser
34f65d4f53 Check for right flag for establishing Scp11bSM 2018-01-30 11:21:43 +01:00
Vincent Breitmoser
1c8cc99c68 Don't send NE value for decryption
This is slightly more compliant to spec. OpenPGP-Applet implementations
I've looked at don't seem to care, but for some reason this still
improves compatibility. See
https://github.com/open-keychain/open-keychain/issues/2049
2018-01-24 12:02:11 +01:00
Vincent Breitmoser
bccc20ea32 Reduce max apdu length, for compatibility 2018-01-24 12:02:11 +01:00
Vincent Breitmoser
e57c111010 extract getRsaOperationPayload method 2018-01-24 12:02:11 +01:00
Vincent Breitmoser
54eb1efa13 Upgrade to gradle 4.4.1 2018-01-24 01:32:10 +01:00
Dominik Schürmann
289e34bb74 Merge pull request #2255 from open-keychain/timber
Timber
2018-01-22 11:11:17 +01:00
Vincent Breitmoser
29a740a902 suppress AutoValue mutable byte array warnings 2018-01-22 01:47:22 +01:00
Vincent Breitmoser
22c65f2ab8 Use Timber instead of Android.Log 2018-01-20 21:32:37 +01:00
Vincent Breitmoser
d956485463 add license headers 2018-01-14 04:07:19 +01:00
Vincent Breitmoser
442845f1fe Split up ResetAndWipeTokenOp a bit, and add test 2018-01-13 16:28:26 +01:00
Vincent Breitmoser
0d2cbd0654 rename methods that do io to "read*" instead of "get*" 2018-01-13 15:32:36 +01:00
Vincent Breitmoser
abf5e5d170 refactor OpenPgpCapabilities to use AutoValue 2018-01-13 15:32:36 +01:00
Vincent Breitmoser
401b90a493 rename UseCases to TokenOps, and move to operations package 2018-01-12 18:50:45 +01:00
Vincent Breitmoser
c00eb7b7f3 Further refactor SecurityTokenConnection 2018-01-12 17:00:32 +01:00
Vincent Breitmoser
626c08bbbe extract ModifyPinUseCase 2018-01-12 16:53:18 +01:00
Vincent Breitmoser
47319d22b9 extract GenerateKeyUseCase 2018-01-12 16:00:52 +01:00
Vincent Breitmoser
4cbdad7cb8 extract ResetAndWipeUseCase 2018-01-12 15:55:47 +01:00
Vincent Breitmoser
bb2b37cff6 SecurityTokenConnection code style 2018-01-12 15:55:47 +01:00
Vincent Breitmoser
139735f0e1 refactor decryptSessionKey 2018-01-12 15:55:46 +01:00