nl::Weave::Crypto::EncodedHMACSignature

摘要

公開類型

@350 列舉

公開屬性

Len
uint8_t
Sig
uint8_t *

公用函式

IsEqual(const EncodedHMACSignature & other) const
bool
與其他 HMAC 簽名進行比較。
ReadSignature(TLVReader & reader)
這個外掛程式能透過指定 TLV 讀取器,以 Weave HMAC 簽名結構讀取簽名。
WriteSignature(TLVWriter & writer, uint64_t tag) const
使用指定的標記,將簽名以 Weave HMACSignature 結構寫入指定的 TLV 寫入者。

公開類型

@350 號

 @350

公開屬性

Len

uint8_t Len

Sig

uint8_t * Sig

公用函式

IsEqual

bool IsEqual(
  const EncodedHMACSignature & other
) const 

與其他 HMAC 簽名進行比較。

詳細說明
參數
[in] other
要比較簽名的 EncodedHMACSignature 物件。
傳回值
true
簽章相等。
false
簽章不等於。

ReadSignature

WEAVE_ERROR ReadSignature(
  TLVReader & reader
)

這個外掛程式能透過指定 TLV 讀取器,以 Weave HMAC 簽名結構讀取簽名。

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

WriteSignature

WEAVE_ERROR WriteSignature(
  TLVWriter & writer,
  uint64_t tag
) const 

使用指定的標記,將簽名以 Weave HMACSignature 結構寫入指定的 TLV 寫入者。

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