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
Vincent Breitmoser
1ed2cae2b0
Extract OpenPGP card operation logic from SecurityTokenConnection class
2018-01-12 15:55:29 +01:00
Vincent Breitmoser
04037ed0b4
Minor cleanup and better logging in SecurityTokenConnection
2018-01-10 17:48:58 +01:00
Vincent Breitmoser
9031173b8a
fix misleading variable name
2018-01-10 17:48:58 +01:00
Dominik Schürmann
3cc43e9f69
Adapt copyright headers according to CLA
2017-12-15 16:03:36 +01:00
Vincent Breitmoser
9487806c08
respect experimental setting for untested usb devices
2017-11-28 15:10:04 +01:00
Vincent Breitmoser
0d099116d5
add experimental setting to allow untested usb devices
2017-11-28 15:08:13 +01:00
Vincent Breitmoser
71d2d66ee2
Use different approach for whitelisting usb security tokens
2017-11-28 15:08:12 +01:00
Vincent Breitmoser
1f7c7f49d4
remove check for unsupported usb devices
2017-11-22 16:19:26 +01:00
Vincent Breitmoser
8c2c131be6
refresh connection capabilities after token reset
2017-11-22 15:11:54 +01:00
Vincent Breitmoser
21d533902e
handle unavailable pins better for SecurityTokenConnection
2017-11-22 14:57:36 +01:00
Dominik Schürmann
9c1915423a
Support Nitrokey Start and Storage
2017-11-06 14:11:32 +01:00
Dominik Schürmann
106dbdf4a9
Simplify SecurityTokenInfo.Version using AutoValue
2017-11-05 23:13:18 +01:00
Dominik Schürmann
221eb194d9
Merge SUPPORTED_PUT_KEY and SUPPORTED_RESET
2017-11-05 22:59:11 +01:00
Dominik Schürmann
da186ca49f
Reset PW3 validation directly in modifyPw3Pin
2017-11-05 19:10:59 +01:00