| USAGE |
put-keyset [-m|--mode modify|replace|add][-r|--replace-keySet key-set] key-set.. |
| DESCRIPTION |
Put one complete key set version (keys at index 1,2 and 3) via a
Global Platform STORE DATA command.
|
| PARAMETER |
| Name | Description | Required |
--+-- -m -----+--+- modify --+->
! ! ! !
+-- --mode -+ +- replace -+
! !
+- add -----+
|
PutKey operation mode. Defines whether the key set to which the keys
belong to is to be modified, replaced or added. |
No |
--+-- -r ---------------+- key-set ->
! !
+-- --replace-keyset -+
|
Defines the key set to be replaced. Only applicable if the operation
mode is set to 'replace'. key-set is the Key set to be replaced. |
No |
| key-set.. |
List of key sets to be put onto the card. Key 1,2 and 3 must be present in this key set. |
Yes |
|
| EXAMPLE |
cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> set-key 10/1/DES-ECB/505152535455565758595a5b5c5d5e5f 10/2/DES-ECB/505152535455565758595a5b5c5d5e5f 10/3/DES-ECB/505152535455565758595a5b5c5d5e5f
cm> print-key
255/1/DES-ECB/404142434445464748494A4B4C4D4E4F
255/2/DES-ECB/404142434445464748494A4B4C4D4E4F
255/3/DES-ECB/404142434445464748494A4B4C4D4E4F
10/1/DES-ECB/505152535455565758595A5B5C5D5E5F
10/2/DES-ECB/505152535455565758595A5B5C5D5E5F
10/3/DES-ECB/505152535455565758595A5B5C5D5E5F
cm> put-keyset 10
=> 80 D8 00 81 43 0A 80 10 13 F5 67 38 72 99 BA 1F ....C.....g8r...
A1 79 EA AF 18 C8 CD E4 03 A4 B7 D6 80 10 13 F5 .y..............
67 38 72 99 BA 1F A1 79 EA AF 18 C8 CD E4 03 A4 g8r....y........
B7 D6 80 10 13 F5 67 38 72 99 BA 1F A1 79 EA AF ......g8r....y..
18 C8 CD E4 03 A4 B7 D6 00 .........
(16 msec)
<= 0A A4 B7 D6 A4 B7 D6 A4 B7 D6 90 00 ............
Status: No Error
|
| CONDITIONS |
A secure channel must be established (refer to the auth command)
|