martinpaljak / GlobalPlatformPro

🌐 🔐 Manage applets and keys on JavaCard-s like a pro
https://javacard.pro/globalplatform
GNU Lesser General Public License v3.0
713 stars 212 forks source link

Implement --store-p1 command line parameter #308

Closed icedevml closed 3 weeks ago

icedevml commented 1 year ago

Sometimes we need to control the P1 parameter when executing STORE DATA command through CLI. This happens especially if we want to use non-default BER-TLV data format and this needs to be indicated in P1 parameter. Right now there is no way to control P1 value through --store-data CLI command. So my proposition is to add --store-p1 additional parameter which allows to control the P1 value.

I've tested the change and it seems to work correctly.