Device / CryptoKey / Entry Value

Key entry which contains a key and its according CryptoAlgorithm with KeyAccessRights used by the crypto manager.

Properties

Format

Name Type/Size Description
api-composite -
AccessRights.KeySettings Bit mask (8 bits) Accessrights for Keys. By default all operations are allowed. But with this bitmask this key can be locked for some operations.
IsVersion Boolean (bit 0x80) -
IsDivInfo Boolean (bit 0x40) -
RFU Integer (bit mask area 0x38) Zero padding
DenyFormat Boolean (bit 0x04) -
DenyWrite Boolean (bit 0x02) -
DenyRead Boolean (bit 0x01) -
Optional field, condition: IsVersion
AccessRights.Version Integer (8 bits) Key version.
Optional field, condition: IsDivInfo
AccessRights.DiversificationMode Enumeration (8 bits) Values:
  • NoDiversification (0x00)
  • ModeAv2 (0x02)
    Key diversification according to NXP AN10922.
AccessRights.DivIdx Integer (8 bits) Index for data converter rule located in Project.DiversificationData: range 0..0x7F
Algorithm Enumeration (8 bits) This byte defines the crypto algorithm that shall be used when working with the key that is following. The CryptoAlgorithm furhtermore implies the length of the following key
Values:
  • DES (0x01)
    Keylength: 8 byte
  • TripleDES (0x02)
    Keylength: 16 byte
  • ThreeKeyTripleDES (0x03)
    Keylength: 24 byte
  • AES (0x04)
    Keylength: 16 byte
  • MifareClassic (0x05)
    Keylength: 6 byte
Key ASCII string (until end of frame) This is the key that shall be used for authentication. (length depends on crypto algorithm)