This format allows for parametrization of the APDU's command data, which can be read from fields and concatenated, for example: Code Block |
---|
title | Command data composed of NEW_PUK and NEW_PIN field values, no return data |
---|
| DYN[]:002C0001;NEW_PUK+NEW_PIN |
If a field has an empty or null value, it will resolve to an empty byte array, otherwise the field value will be parsed as hex string. Note |
---|
The DYN format automatically sets the appropriate length for the input data, so do not add the input length byte(s) manually. |
The expected result length is given as a decimal value, for example: Code Block |
---|
title | No command data, expect 255 bytes of return data, write to field OUTPUT |
---|
| DYN[OUTPUT]:00CA0188;;255 |
You can have just the header plus field(s) and/or result length, for example: DYN format | Description |
---|
DYN[]:00AABBCC | Header without command-data, expect no result data, no data output field | DYN[]:00AABBCC;; | Same as above | DYN[]:00AABBCC;;0
| Same as above | DYN[]:00AABBCC;FIELD_A | Header and command-data from FIELD_A, expect no result data | DYN[]:00AABBCC;FIELD_A; | Same as above | DYN[]:00AABBCC;FIELD_A;0 | Same as above | DYN[MY_RESULT]:00AABBCC;FIELD_A+FIELD_B;300 | Header and command-data from FIELD_A concatenated with FIELD_B, expect 300 bytes result data, stored to MY_RESULT | DYN[OUTPUT]:00AABBCC;;13 | Header without command-data, expect 13 bytes result data, stored to OUTPUT |
PRIME 3.10.2 extends the DYN format to include fixed hex values in the command-data as well, for example: DYN format | Description |
---|
DYN[]:00AABBCC;0xF00D+FIELD_A+0xC0FFEE;0 | Header and command-data F00D concatenated with FIELD_A concatenated with C0FFEE, PRIME 3.10.2 only! |
|