SecManContext: {
    coreKeyType: SecManKeyType;
    derivedType: SecManDerivedKeyType;
    eui64: EUI64;
    flags: SecManFlag;
    keyIndex: number;
    multiNetworkIndex: number;
    psaKeyAlgPermission: number;
}

This data structure houses the context when interacting with the Zigbee Security Manager APIs. For example, when importing a key into storage, the various fields of this structure are used to determine which type of key is being stored.

Type declaration

  • coreKeyType: SecManKeyType
  • derivedType: SecManDerivedKeyType
  • eui64: EUI64
  • flags: SecManFlag
  • keyIndex: number

    uint8_t

  • multiNetworkIndex: number

    uint8_t

  • psaKeyAlgPermission: number

    Unused for classic key storage. The algorithm type should be brought in by psa/crypto_types.h. Zigbee Security Manager uses PSA_ALG_ECB_NO_PADDING for keys with AES-ECB encryption, and defines ZB_PSA_ALG as AES-CCM with a 4-byte tag, used as this field's default value otherwise. uint32_t