nl::Weave::Profiles::Security::CASE

這個命名空間包含在 Weave 中,針對 Weave 安全性設定檔中的憑證驗證工作階段建立 (CASE) 通訊協定的所有介面。

摘要

列舉

@224 列舉
@225 列舉
@226 列舉
@227 列舉

函式

EncodeCASECertInfo(uint8_t *buf, uint16_t bufSize, uint16_t & certInfoLen, const uint8_t *entityCert, uint16_t entityCertLen, const uint8_t *intermediateCerts, uint16_t intermediateCertsLen)
對 WeaveCASECertificateInformation TLV 結構進行編碼。
EncodeCASECertInfo(TLVWriter & writer, const uint8_t *entityCert, uint16_t entityCertLen, const uint8_t *intermediateCerts, uint16_t intermediateCertsLen)
對 WeaveCASECertificateInformation TLV 結構進行編碼。

類別

nl::Weave::Profiles::Security::CASE::BeginSessionContext

保留與 CASE 產生或處理開始工作階段訊息相關的背景資訊。

nl::Weave::Profiles::Security::CASE::BeginSessionRequestContext

保留與 CASE BeginSessionRequest 訊息相關的背景資訊。

nl::Weave::Profiles::Security::CASE::BeginSessionResponseContext

保留與 CASE BeginSessionRequest 訊息相關的背景資訊。

nl::Weave::Profiles::Security::CASE::ReconfigureContext

保留與 CASE 產生或處理相關的資訊。重新設定訊息。

nl::Weave::Profiles::Security::CASE::WeaveCASEAuthDelegate

CASE 工作階段建立期間,為驗證動作委派的抽象介面。

nl::Weave::Profiles::Security::CASE::WeaveCASEEngine

實作 Weave CASE 通訊協定的核心邏輯。

列舉

@224 號

 @224

@225

 @225

@226

 @226

@227

 @227

函式

EncodeCASECertInfo

WEAVE_ERROR EncodeCASECertInfo(
  uint8_t *buf,
  uint16_t bufSize,
  uint16_t & certInfoLen,
  const uint8_t *entityCert,
  uint16_t entityCertLen,
  const uint8_t *intermediateCerts,
  uint16_t intermediateCertsLen
)

對 WeaveCASECertificateInformation TLV 結構進行編碼。

這個方法會以 Weave TLV 表單為 WeaveCASECertificateInformation 結構進行編碼,當中包含指定的實體憑證和選用的中繼憑證。產生的 CASE 憑證資訊結構會寫入提供的緩衝區。

詳細說明
參數
[in] buf
應寫入已編碼的 CASE 憑證資訊結構的緩衝區。
[in] bufSize
緩衝區所指向的緩衝區大小 (以位元組為單位)。
[out] certInfoLen
這個整數值會接收 CASE 憑證資訊結構的最終編碼大小。只有在函式成功的事件時,這個值才有意義。
[in] entityCert
這個緩衝區含有要納入 CASE 憑證資訊結構中的實體憑證。實體憑證應以 Weave TLV 表單進行編碼。
[in] entityCertLen
編碼實體憑證的長度 (以位元組為單位)。
[in] intermediateCerts
視需要設定緩衝區,其中包含中繼憑證或 TLV 編碼的中繼憑證陣列,做為 CASE 憑證資訊結構中的相關憑證加入。如有提供,中繼憑證應以 Weave TLV 表單進行編碼。如果指定 NULL,產生的憑證資訊結構不會包含任何相關憑證。
[in] intermediateCertsLen
經過編碼的中繼憑證結構或 TLV 編碼中繼憑證陣列的長度 (以位元組為單位)。
傳回值
WEAVE_NO_ERROR
如果作業成功。
other
其他與輸入憑證解碼或 CASE 憑證資訊結構的編碼相關的 Weave 錯誤代碼。

EncodeCASECertInfo

WEAVE_ERROR EncodeCASECertInfo(
  TLVWriter & writer,
  const uint8_t *entityCert,
  uint16_t entityCertLen,
  const uint8_t *intermediateCerts,
  uint16_t intermediateCertsLen
)

對 WeaveCASECertificateInformation TLV 結構進行編碼。

這個方法會以 Weave TLV 表單為 WeaveCASECertificateInformation 結構進行編碼,當中包含指定的實體憑證和選用的中繼憑證。產生的 CASE 憑證資訊結構會寫入提供的 TLVWriter。

詳細說明
參數
[in] writer
應寫入已編碼的 CASE 憑證資訊結構的 TLVWriter 物件。
[in] entityCert
這個緩衝區含有要納入 CASE 憑證資訊結構中的實體憑證。實體憑證應以 Weave TLV 表單進行編碼。
[in] entityCertLen
編碼實體憑證的長度 (以位元組為單位)。
[in] intermediateCerts
視需要設定緩衝區,其中包含中繼憑證或 TLV 編碼的中繼憑證陣列,做為 CASE 憑證資訊結構中的相關憑證加入。如有提供,中繼憑證應以 Weave TLV 表單進行編碼。如果指定 NULL,產生的憑證資訊結構不會包含任何相關憑證。
[in] intermediateCertsLen
經過編碼的中繼憑證結構或 TLV 編碼中繼憑證陣列的長度 (以位元組為單位)。
傳回值
WEAVE_NO_ERROR
如果作業成功。
other
其他與輸入憑證解碼或 CASE 憑證資訊結構的編碼相關的 Weave 錯誤代碼。