Skip to content

Commit 54a355c

Browse files
committed
use 8 byte ids
1 parent 7c6216d commit 54a355c

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

applets/apex-ndef

applets/apex-spark

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
JPype1
3333
parameterized
3434
pyasn1
35+
requests
3536
(buildPythonPackage rec {
3637
pname = "uhid";
3738
version = "0.0.1";

scripts/test/apex-ndef.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ setup() {
1616
java -cp /app/tools/jcardsim/target/jcardsim-3.0.5-SNAPSHOT.jar:./target com.licel.jcardsim.remote.VSmartCard /app/src/scripts/test/res/apex-ndef.jcardsim.cfg > /dev/null &
1717
JCSIM_PID="$!"
1818
sleep 2
19-
CUID='f860203a257128'
19+
CUID='fff860203a257128'
2020
KEY='4173f37fbec4f93f3c66bb9fbf7284bf'
2121
SALT='ead73d4e5aeb64b0ddb26b470bb85856'
22-
opensc-tool -r 'Virtual PCD 00 00' -s "80 b8 00 00 33 07 D2760000850101 00 29 0800 $CUID $KEY $SALT FF"
22+
opensc-tool -r 'Virtual PCD 00 00' -s "80 b8 00 00 34 07 D2760000850101 00 2A 0800 $CUID $KEY $SALT FF"
2323
}
2424

2525
teardown() {

scripts/test/apex-spark.bats

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ setup() {
1515
java -cp /app/tools/jcardsim/target/jcardsim-3.0.5-SNAPSHOT.jar:./target com.licel.jcardsim.remote.VSmartCard /app/src/scripts/test/res/apex-spark.jcardsim.cfg > /dev/null &
1616
JCSIM_PID="$!"
1717
sleep 2
18+
CUID='fff860203a257128'
1819
KEY='20f780716ba49ae163bd638486c71723'
19-
opensc-tool -r 'Virtual PCD 00 00' -s "80 b8 00 00 1F 0C A000000846737061726B3201 00 10 $KEY FF"
20+
opensc-tool -r 'Virtual PCD 00 00' -s "80 b8 00 00 27 0C A000000846737061726B3201 00 18 $CUID $KEY FF"
2021
}
2122

2223
teardown() {

0 commit comments

Comments
 (0)