Skip to content

Commit

Permalink
.github/test-isoapplet.sh - add debugging to test isoApplet tests
Browse files Browse the repository at this point in the history
 On branch X25519-improvements-2
 Changes to be committed:
	modified:   ../../.github/test-isoapplet.sh
  • Loading branch information
dengert committed Oct 31, 2024
1 parent 277cced commit 5d1a18f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/test-isoapplet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ $VALGRIND pkcs11-tool --verify -m ECDSA-SHA1 -d 3 -i /tmp/data.bin --signature-f
# import, sign & verify using another secp256r1 key
openssl ecparam -name secp256r1 -genkey -noout -out /tmp/ECprivKey.pem
openssl ec -in /tmp/ECprivKey.pem -pubout -out /tmp/ECpubKey.pem

openssl asn1parse -i -d inform DER -in /tmp/ECprivKey.pem
openssl asn1parse -i -d inform DER -in /tmp/ECpubKey.pem

$VALGRIND pkcs11-tool -l -p 123456 -w /tmp/ECprivKey.pem -y privkey -d 4
OPENSC_DEBUG=9 \
$VALGRIND pkcs11-tool -l -p 123456 -w /tmp/ECpubKey.pem -y pubkey -d 4
$VALGRIND pkcs11-tool -l -p 123456 -s -m ECDSA-SHA1 -d 4 -i /tmp/data.bin -o /tmp/data.sig
$VALGRIND pkcs11-tool --verify -m ECDSA-SHA1 -d 4 -i /tmp/data.bin --signature-file /tmp/data.sig
Expand Down

0 comments on commit 5d1a18f

Please sign in to comment.