Google is committed to advancing racial equity for Black communities.
See how.
nl::Weave::Crypto::การเข้ารหัสที่เข้ารหัสแบบ HMAC
สรุป
แอตทริบิวต์สาธารณะ
|
Len
|
uint8_t
|
Sig
|
uint8_t *
|
ประเภทสาธารณะ
350 แต้ม
@350
แอตทริบิวต์สาธารณะ
เลน
uint8_t Len
ซิก
uint8_t * Sig
ฟังก์ชันสาธารณะ
เท่ากับ
bool IsEqual(
const EncodedHMACSignature & other
) const
เปรียบเทียบกับลายเซ็น HMAC อื่น
รายละเอียด |
พารามิเตอร์ |
|
แสดงผลค่า |
true
|
ลายเซ็นเท่ากัน
|
false
|
ลายเซ็นไม่เท่ากัน
|
|
อ่านลายเซ็น
WEAVE_ERROR ReadSignature(
TLVReader & reader
)
อ่านลายเซ็นเป็นโครงสร้าง WeMACve HMACSignature จากเครื่องอ่าน TLV ที่ระบุ
รายละเอียด |
พารามิเตอร์ |
[in] reader
|
ออบเจ็กต์ TLVReader ที่ควรอ่านลายเซ็นที่เข้ารหัส
|
|
แสดงผลค่า |
WEAVE_NO_ERROR
|
หากดําเนินการสําเร็จ
|
other
|
รหัสข้อผิดพลาด Weave อื่นๆ ที่เกี่ยวข้องกับการอ่านลายเซ็น
|
|
เขียนลายเซ็น
WEAVE_ERROR WriteSignature(
TLVWriter & writer,
uint64_t tag
) const
เขียนลายเซ็นเป็นโครงสร้าง WeMAC ของ Weave ไปยังผู้เขียน TLV ที่ระบุด้วยแท็กที่ระบุ
รายละเอียด |
พารามิเตอร์ |
[in] writer
|
ออบเจ็กต์ TLVWriter ที่ควรเขียนลายเซ็นที่เข้ารหัส
|
[in] tag
|
แท็ก TLV เพื่อเชื่อมโยงกับโครงสร้างลายเซ็นที่เข้ารหัส
|
|
แสดงผลค่า |
WEAVE_NO_ERROR
|
หากดําเนินการสําเร็จ
|
other
|
รหัสข้อผิดพลาด Weave อื่นๆ ที่เกี่ยวข้องกับการเขียนลายเซ็น
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Thread is a registered trademark of the Thread Group, Inc.
Last updated 2020-08-28 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]