martinpaljak / GlobalPlatformPro

🌐 🔐 Manage applets and keys on JavaCard-s like a pro (via command line or from your Java project)
https://javacard.pro/globalplatform
GNU Lesser General Public License v3.0
673 stars 210 forks source link

Implement --store-p1 command line parameter #308

Open icedevml opened 1 year 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.