Skip to content

Commit

Permalink
use 8 byte ids
Browse files Browse the repository at this point in the history
  • Loading branch information
StarGate01 committed Jan 17, 2024
1 parent 7c6216d commit 54a355c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion applets/apex-ndef
2 changes: 1 addition & 1 deletion applets/apex-spark
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
JPype1
parameterized
pyasn1
requests
(buildPythonPackage rec {
pname = "uhid";
version = "0.0.1";
Expand Down
4 changes: 2 additions & 2 deletions scripts/test/apex-ndef.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ setup() {
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 &
JCSIM_PID="$!"
sleep 2
CUID='f860203a257128'
CUID='fff860203a257128'
KEY='4173f37fbec4f93f3c66bb9fbf7284bf'
SALT='ead73d4e5aeb64b0ddb26b470bb85856'
opensc-tool -r 'Virtual PCD 00 00' -s "80 b8 00 00 33 07 D2760000850101 00 29 0800 $CUID $KEY $SALT FF"
opensc-tool -r 'Virtual PCD 00 00' -s "80 b8 00 00 34 07 D2760000850101 00 2A 0800 $CUID $KEY $SALT FF"
}

teardown() {
Expand Down
3 changes: 2 additions & 1 deletion scripts/test/apex-spark.bats
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ setup() {
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 &
JCSIM_PID="$!"
sleep 2
CUID='fff860203a257128'
KEY='20f780716ba49ae163bd638486c71723'
opensc-tool -r 'Virtual PCD 00 00' -s "80 b8 00 00 1F 0C A000000846737061726B3201 00 10 $KEY FF"
opensc-tool -r 'Virtual PCD 00 00' -s "80 b8 00 00 27 0C A000000846737061726B3201 00 18 $CUID $KEY FF"
}

teardown() {
Expand Down

0 comments on commit 54a355c

Please sign in to comment.