Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99c277021c | ||
|
|
6b493118c5 | ||
|
|
535630f2ae | ||
|
|
7088d3acbf | ||
|
|
9470bc3314 |
@@ -0,0 +1,11 @@
|
||||
# smartcard-cap-installer-test
|
||||
|
||||
This is an android application that implements the basic APDU commands and secure channel to be able to install our [hardware wallet cap](https://github.com/status-im/hardware-wallet)
|
||||
to a smartcard via NFC.
|
||||
|
||||
The Purpose of it is to be able to start testing smartcards and NFC connection with different cards and readers.
|
||||
This can help with UX/UI design while we implement the final solution in `status-react` and `status-go`.
|
||||
|
||||
[Download APK](https://github.com/status-im/smartcard-cap-installer-test/releases/download/0.0.1/app-debug.apk)
|
||||
|
||||

|
||||
Binary file not shown.
@@ -57,8 +57,7 @@ public class PerfTest {
|
||||
static final byte DERIVE_P1_SOURCE_MASTER = (byte) 0x00;
|
||||
static final byte DERIVE_P1_SOURCE_PARENT = (byte) 0x40;
|
||||
static final byte DERIVE_P1_SOURCE_CURRENT = (byte) 0x80;
|
||||
static final byte EXPORT_KEY_P1_WHISPER = 0x01;
|
||||
static final byte EXPORT_KEY_P1_DATABASE = 0x02;
|
||||
static final byte EXPORT_KEY_P1_HIGH = 0x01;
|
||||
static final byte SIGN_P1_DATA = 0x00;
|
||||
static final byte SIGN_P1_PRECOMPUTED_HASH = 0x01;
|
||||
static final byte GET_STATUS_P1_APPLICATION = 0x00;
|
||||
@@ -127,10 +126,10 @@ public class PerfTest {
|
||||
cmdSet.verifyPIN("000000").checkOK();
|
||||
APDUResponse resp = cmdSet.deriveKey(new byte[] { (byte) 0xC0, 0x00, 0x00, 0x00}, DERIVE_P1_SOURCE_PARENT, true, false).checkOK();
|
||||
cmdSet.deriveKey(derivePublicKey(resp.getData()), DERIVE_P1_SOURCE_CURRENT, true, true).checkOK();
|
||||
cmdSet.exportKey(EXPORT_KEY_P1_WHISPER, false).checkOK();
|
||||
cmdSet.exportKey(EXPORT_KEY_P1_HIGH, false).checkOK();
|
||||
resp = cmdSet.deriveKey(new byte[] { (byte) 0xC0, 0x00, 0x00, 0x01}, DERIVE_P1_SOURCE_PARENT, true, false).checkOK();
|
||||
cmdSet.deriveKey(derivePublicKey(resp.getData()), DERIVE_P1_SOURCE_CURRENT, true, true).checkOK();
|
||||
cmdSet.exportKey(EXPORT_KEY_P1_DATABASE, false).checkOK();
|
||||
cmdSet.exportKey(EXPORT_KEY_P1_HIGH, false).checkOK();
|
||||
loginTime = System.currentTimeMillis() - time;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.7 MiB |
Reference in New Issue
Block a user