NLWeaveKeyIds

#include <src/device-manager/cocoa/NLWeaveKeyIds.h>

WeaveKeyId 功能的 C++ 實作包裝函式。

摘要

繼承

沿用來源: NSObject

公開的靜態函式

convertToCurrentAppKeyId:(UInt32 keyId)
virtual UInt32
將應用程式群組金鑰 ID 轉換為應用程式目前的金鑰 ID。
convertToStaticAppKeyId:(UInt32 keyId)
virtual UInt32
describeKey:(UInt32 keyId)
virtual NSString *
getAppGroupLocalNumber:(UInt32 keyId)
virtual UInt8
取得用於衍生指定應用程式金鑰的應用程式群組本機編號。
getAppGroupMasterKeyId:(UInt32 keyId)
virtual UInt32
取得用於衍生指定應用程式金鑰的應用程式群組主金鑰 ID。
getEpochKeyId:(UInt32 keyId)
virtual UInt32
取得用於取得指定應用程式金鑰的應用程式群組週期金鑰 ID。
getEpochKeyNumber:(UInt32 keyId)
virtual UInt8
取得用於取得指定應用程式金鑰的應用程式群組週期金鑰。
getRootKeyId:(UInt32 keyId)
virtual UInt32
取得用於衍生指定應用程式金鑰的應用程式群組根金鑰 ID。
getRootKeyNumber:(UInt32 keyId)
virtual UInt8
取得用於衍生指定應用程式金鑰的應用程式群組根金鑰號碼。
getType:(UInt32 keyId)
virtual UInt32
取得指定金鑰 ID 的 Weave 金鑰類型。
incorporatesAppGroupMasterKey:(UInt32 keyId)
virtual BOOL
incorporatesEpochKey:(UInt32 keyId)
virtual BOOL
判斷指定的應用程式群組金鑰 ID 是否包含 Epoch 紀元金鑰。
incorporatesRootKey:(UInt32 keyId)
virtual BOOL
isAppEpochKey:(UInt32 keyId)
virtual BOOL
判斷指定的金鑰 ID 是否為應用程式週期金鑰類型。
isAppGroupMasterKey:(UInt32 keyId)
virtual BOOL
判斷指定的金鑰 ID 是否為應用程式群組主金鑰類型。
isAppRootKey:(UInt32 keyId)
virtual BOOL
判斷指定的金鑰 ID 是否為應用程式根金鑰類型。
isAppRotatingKey:(UInt32 keyId)
virtual BOOL
判斷指定的金鑰 ID 是否為應用程式輪替類型。
isAppStaticKey:(UInt32 keyId)
virtual BOOL
判斷指定的金鑰 ID 是否為應用程式靜態類型。
isGeneralKey:(UInt32 keyId)
virtual BOOL
判斷指定的金鑰 ID 是否為一般類型。
isSessionKey:(UInt32 keyId)
virtual BOOL
判斷指定的金鑰 ID 是否為工作階段類型。
isValidKeyId:(UInt32 keyId)
virtual BOOL
makeAppGroupMasterKeyId:(UInt32 appGroupMasterKeyLocalId)
virtual UInt32
為指定應用程式群組本機號碼建構應用程式群組主金鑰 ID。
makeAppIntermediateKeyId:epochKeyId:useCurrentEpochKey:(UInt32 rootKeyId, UInt32 epochKeyId, BOOL useCurrentEpochKey)
virtual UInt32
makeAppKeyId:rootKeyId:epochKeyId:appGroupMasterKeyId:useCurrentEpochKey:(UInt32 keyType, UInt32 rootKeyId, UInt32 epochKeyId, UInt32 appGroupMasterKeyId, BOOL useCurrentEpochKey)
virtual UInt32
makeAppRotatingKeyId:epochKeyId:appGroupMasterKeyId:useCurrentEpochKey:(UInt32 rootKeyId, UInt32 epochKeyId, UInt32 appGroupMasterKeyId, BOOL useCurrentEpochKey)
virtual UInt32
makeAppStaticKeyId:appGroupMasterKeyId:(UInt32 rootKeyId, UInt32 appGroupMasterKeyId)
virtual UInt32
makeEpochKeyId:(UInt8 epochKeyNumber)
virtual UInt32
根據指定的 Epoch 紀元金鑰號碼,建構應用程式群組根金鑰 ID。
makeGeneralKeyId:(UInt16 generalKeyNumber)
virtual UInt16
建立給定一般金鑰號碼的一般金鑰 ID。
makeRootKeyId:(UInt8 epochKeyNumber)
virtual UInt32
根據指定的根金鑰號碼建構應用程式群組根金鑰 ID。
makeSessionKeyId:(UInt16 sessionKeyNumber)
virtual UInt16
依據指定的工作階段金鑰號碼建構工作階段金鑰 ID。
updateEpochKeyId:epochKeyId:(UInt32 keyId, UInt32 epochKeyId)
virtual UInt32
usesCurrentEpochKey:(UInt32 keyId)
virtual BOOL

公開的靜態函式

ConversionToCurrentAppKeyId:

virtual UInt32 convertToCurrentAppKeyId:(
  UInt32 keyId
)

將應用程式群組金鑰 ID 轉換為應用程式目前的金鑰 ID。

詳細說明
參數
[in] keyId
應用程式金鑰 ID。
傳回
應用程式目前的金鑰 ID。

ConversionToStaticAppKeyId:

virtual UInt32 convertToStaticAppKeyId:(
  UInt32 keyId
)

descriptionKey:

virtual NSString * describeKey:(
  UInt32 keyId
)

getAppGroupLocalNumber:

virtual UInt8 getAppGroupLocalNumber:(
  UInt32 keyId
)

取得用於衍生指定應用程式金鑰的應用程式群組本機編號。

詳細說明
參數
[in] keyId
Weave 應用程式群組金鑰 ID。
傳回
應用程式群組本機號碼

getAppGroupMasterKeyId:

virtual UInt32 getAppGroupMasterKeyId:(
  UInt32 keyId
)

取得用於衍生指定應用程式金鑰的應用程式群組主金鑰 ID。

詳細說明
參數
[in] keyId
Weave 應用程式群組金鑰 ID。
傳回
應用程式群組主金鑰 ID。

getEpochKeyId:

virtual UInt32 getEpochKeyId:(
  UInt32 keyId
)

取得用於取得指定應用程式金鑰的應用程式群組週期金鑰 ID。

詳細說明
參數
[in] keyId
Weave 應用程式群組金鑰 ID。
傳回
Epoch 紀元金鑰 ID。

getEpochKeyNumber:

virtual UInt8 getEpochKeyNumber:(
  UInt32 keyId
)

取得用於取得指定應用程式金鑰的應用程式群組週期金鑰。

詳細說明
參數
[in] keyId
Weave 應用程式群組金鑰 ID。
傳回
Epoch 紀元金鑰號碼。

getRootKeyId:

virtual UInt32 getRootKeyId:(
  UInt32 keyId
)

取得用於衍生指定應用程式金鑰的應用程式群組根金鑰 ID。

詳細說明
參數
[in] keyId
Weave 應用程式群組金鑰 ID。
傳回
根金鑰 ID。

getRootKeyNumber:

virtual UInt8 getRootKeyNumber:(
  UInt32 keyId
)

取得用於衍生指定應用程式金鑰的應用程式群組根金鑰號碼。

詳細說明
參數
[in] keyId
Weave 應用程式群組金鑰 ID。
傳回
根金鑰號碼。

getType:

virtual UInt32 getType:(
  UInt32 keyId
)

取得指定金鑰 ID 的 Weave 金鑰類型。

詳細說明
參數
[in] keyId
Weave 金鑰 ID。
傳回
金鑰 ID 的類型

includesAppGroupMasterKey:

virtual BOOL incorporatesAppGroupMasterKey:(
  UInt32 keyId
)

includesEpochKey:

virtual BOOL incorporatesEpochKey:(
  UInt32 keyId
)

判斷指定的應用程式群組金鑰 ID 是否包含 Epoch 紀元金鑰。

詳細說明
參數
[in] keyId
Weave 應用程式群組金鑰 ID。
傳回
如果 keyId 包含 Epoch 紀元鍵,則傳回 true。

includesRootKey:

virtual BOOL incorporatesRootKey:(
  UInt32 keyId
)

isAppEpochKey:

virtual BOOL isAppEpochKey:(
  UInt32 keyId
)

判斷指定的金鑰 ID 是否為應用程式週期金鑰類型。

詳細說明
參數
[in] keyId
Weave 金鑰 ID。
傳回
如果應用程式週期金鑰類型的 keyId 為 true,則傳回 true。

isAppGroupMasterKey:

virtual BOOL isAppGroupMasterKey:(
  UInt32 keyId
)

判斷指定的金鑰 ID 是否為應用程式群組主金鑰類型。

詳細說明
參數
[in] keyId
Weave 金鑰 ID。
傳回
如果應用程式群組主金鑰類型的 keyId,則為 true。

isAppRootKey:

virtual BOOL isAppRootKey:(
  UInt32 keyId
)

判斷指定的金鑰 ID 是否為應用程式根金鑰類型。

詳細說明
參數
[in] keyId
Weave 金鑰 ID。
傳回
如果應用程式根金鑰類型的 keyId,傳回 true。

isAppRotatingKey:

virtual BOOL isAppRotatingKey:(
  UInt32 keyId
)

判斷指定的金鑰 ID 是否為應用程式輪替類型。

詳細說明
參數
[in] keyId
Weave 金鑰 ID。
傳回
如果應用程式旋轉類型的 keyId 為 true,則傳回 true。

isAppStaticKey:

virtual BOOL isAppStaticKey:(
  UInt32 keyId
)

判斷指定的金鑰 ID 是否為應用程式靜態類型。

詳細說明
參數
[in] keyId
Weave 金鑰 ID。
傳回
如果應用程式靜態類型的 keyId,傳回 true。

isGeneralKey:

virtual BOOL isGeneralKey:(
  UInt32 keyId
)

判斷指定的金鑰 ID 是否為一般類型。

詳細說明
參數
[in] keyId
Weave 金鑰 ID。
傳回
如果 keyId 具有「General」類型,則傳回 true。

isSessionKey:

virtual BOOL isSessionKey:(
  UInt32 keyId
)

判斷指定的金鑰 ID 是否為工作階段類型。

詳細說明
參數
[in] keyId
Weave 金鑰 ID。
傳回
如果工作階段類型的 keyId,則為 true。

isValidKeyId:

virtual BOOL isValidKeyId:(
  UInt32 keyId
)

makeAppGroupMasterKeyId:

virtual UInt32 makeAppGroupMasterKeyId:(
  UInt32 appGroupMasterKeyLocalId
)

為指定應用程式群組本機號碼建構應用程式群組主金鑰 ID。

詳細說明
參數
[in] appGroupMasterKeyLocalId
應用程式群組本機號碼。
傳回
應用程式群組主金鑰 ID。

makeAppIntermediateKeyId:epochKeyId:useCurrentEpochKey:

virtual UInt32 makeAppIntermediateKeyId:epochKeyId:useCurrentEpochKey:(
  UInt32 rootKeyId,
  UInt32 epochKeyId,
  BOOL useCurrentEpochKey
)

makeAppKeyId:rootKeyId:epochKeyId:appGroupMasterKeyId:useCurrentEpochKey:

virtual UInt32 makeAppKeyId:rootKeyId:epochKeyId:appGroupMasterKeyId:useCurrentEpochKey:(
  UInt32 keyType,
  UInt32 rootKeyId,
  UInt32 epochKeyId,
  UInt32 appGroupMasterKeyId,
  BOOL useCurrentEpochKey
)

makeAppRotatingKeyId:epochKeyId:appGroupMasterKeyId:useCurrentEpochKey:

virtual UInt32 makeAppRotatingKeyId:epochKeyId:appGroupMasterKeyId:useCurrentEpochKey:(
  UInt32 rootKeyId,
  UInt32 epochKeyId,
  UInt32 appGroupMasterKeyId,
  BOOL useCurrentEpochKey
)

makeAppStaticKeyId:appGroupMasterKeyId:

virtual UInt32 makeAppStaticKeyId:appGroupMasterKeyId:(
  UInt32 rootKeyId,
  UInt32 appGroupMasterKeyId
)

makeEpochKeyId:

virtual UInt32 makeEpochKeyId:(
  UInt8 epochKeyNumber
)

根據指定的 Epoch 紀元金鑰號碼,建構應用程式群組根金鑰 ID。

詳細說明
參數
[in] epochKeyNumber
Epoch 紀元金鑰號碼。
傳回
Epoch 紀元金鑰 ID。

makeGeneralKeyId:

virtual UInt16 makeGeneralKeyId:(
  UInt16 generalKeyNumber
)

建立給定一般金鑰號碼的一般金鑰 ID。

詳細說明
參數
[in] generalKeyNumber
一般金鑰號碼。
傳回
一般金鑰 ID。

makeRootKeyId:

virtual UInt32 makeRootKeyId:(
  UInt8 epochKeyNumber
)

根據指定的根金鑰號碼建構應用程式群組根金鑰 ID。

詳細說明
參數
[in] epochKeyNumber
根金鑰號碼。
傳回
根金鑰 ID。

makeSessionKeyId:

virtual UInt16 makeSessionKeyId:(
  UInt16 sessionKeyNumber
)

依據指定的工作階段金鑰號碼建構工作階段金鑰 ID。

詳細說明
參數
[in] sessionKeyNumber
工作階段金鑰號碼。
傳回
工作階段金鑰 ID。

updateEpochKeyId:epochKeyId:

virtual UInt32 updateEpochKeyId:epochKeyId:(
  UInt32 keyId,
  UInt32 epochKeyId
)

useCurrentEpochKey:

virtual BOOL usesCurrentEpochKey:(
  UInt32 keyId
)