Access Restricted
This page contains internal documentation that is not publicly available.
Project / LegicKeySettings / Index Value
Each entry corresponds to a slot in the key storage of the LEGIC reader chip (SM4x00/SM6300). The value index is the key storage index.
The first part of the entry (KeyType, KeyDerivation, DivIdx) describes the key stored in this slot. The second part (starting with VcpContext) defines which key of which VCP file in Project/LegicVcp/VcpData is transferred into this slot.
A VCP label is not necessarily unique: VCP files conforming to the LEGIC Orbit Configuration Standard (LOCS) use the same label for keys of different credential types (e.g. label 0x0000 for key K0 of Google Wallet as well as for key K0 of Apple Wallet), and different VCP files may use the same labels. Thus a key is identified by the VCP file (VcpId), its VCP label and, for LOCS, its credential context.
Example for a LOCS VCP file with VcpId 0x1A2B3C4D that contains keys for Google Wallet (credential type 0x0001) and Apple Wallet (credential type 0x0002), both with population index 0:
- Google Wallet, key K0 (label 0x0000): VcpContext = LocsCredential, VcpId = 0x1A2B3C4D, VcpLabel = 0x0000, CredentialType = 0x0001, PopulationIndex = 0
- Apple Wallet, key K0 (label 0x0000): as above, but CredentialType = 0x0002
- Apple Wallet, key K1 (label 0x0100): VcpLabel = 0x0100, CredentialType = 0x0002
Properties
- Value ID: 0x0844/0x00 - 0x7F
Format
| Name | Type/Size | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| KeyType | Enumeration (8 bits) |
Crypto algorithm of the key stored in this slot
Values (6):
|
||||||||
| KeyDerivation | Enumeration (8 bits) |
Key derivation method of the key stored in this slot.
Values (6):
|
||||||||
| DivIdx | Integer (8 bits) |
Reference to diversification data description:
|
||||||||
| VcpContext | Enumeration (8 bits) |
Defines how this slot is assigned to a key of a VCP
file. If this field is missing, the firmware
handles the entry like VcpContext = None.
Values (3):
|
||||||||
Optional field, condition: (VcpContext == VcpContext.Label) or (VcpContext == VcpContext.LocsCredential)
|
||||||||||
Optional field, condition: VcpContext == VcpContext.LocsCredential
|
||||||||||