nl::Weave::Crypto::EncodedHMACSignature

總結

公開類型

@350 列舉

公開屬性

Len
uint8_t
Sig
uint8_t *

公開函式

IsEqual(const EncodedHMACSignature & other) const
bool
與其他 HMAC 簽名進行比較。
ReadSignature(TLVReader & reader)
從指定的 TLV 讀取器讀取簽名為 Weave HMACSignature 結構。
WriteSignature(TLVWriter & writer, uint64_t tag) const
將簽章當做 Weave HMACSignature 結構寫入指定的標記 TLV 寫入器中。

公開類型

@350

 @350

公開屬性

uint8_t Len

英式

uint8_t * Sig

公開函式

等於

bool IsEqual(
  const EncodedHMACSignature & other
) const 

與其他 HMAC 簽名進行比較。

詳細資料
參數
[in] other
用於比較簽章的 EncodedHMACSignature 物件。
傳回值
true
簽章為相等。
false
簽名並不等於。

讀取簽名

WEAVE_ERROR ReadSignature(
  TLVReader & reader
)

從指定的 TLV 讀取器讀取簽名為 Weave HMACSignature 結構。

詳細資料
參數
[in] reader
要讀取編碼簽名的 TLVreader 物件。
傳回值
WEAVE_NO_ERROR
如果作業成功,
other
其他與簽名讀取相關的 Weave 錯誤代碼。

寫入簽名

WEAVE_ERROR WriteSignature(
  TLVWriter & writer,
  uint64_t tag
) const 

將簽章當做 Weave HMACSignature 結構寫入指定的標記 TLV 寫入器中。

詳細資料
參數
[in] writer
要寫入編碼簽名的 TLVWriter 物件。
[in] tag
TLV 標記,以便與編碼的簽名結構建立關聯。
傳回值
WEAVE_NO_ERROR
如果作業成功,
other
其他與簽名寫入相關的 Weveve 錯誤代碼。