Google is committed to advancing racial equity for Black communities.
See how.
Stay organized with collections
Save and categorize content based on your preferences.
nl::Weave::Crypto::EncodedHMACSignature
Summary
Public attributes
|
Len
|
uint8_t
|
Sig
|
uint8_t *
|
Public types
Public attributes
Public functions
IsEqual
bool IsEqual(
const EncodedHMACSignature & other
) const
Compares with another HMAC signature.
Details |
Parameters |
|
Return Values |
true
|
The signatures are equal.
|
false
|
The signatures are not equal.
|
|
ReadSignature
WEAVE_ERROR ReadSignature(
TLVReader & reader
)
Reads the signature as a Weave HMACSignature structure from the specified TLV reader.
Details |
Parameters |
[in] reader
|
The TLVReader object from which the encoded signature should be read.
|
|
Return Values |
WEAVE_NO_ERROR
|
If the operation succeeded.
|
other
|
Other Weave error codes related to signature reading.
|
|
WriteSignature
WEAVE_ERROR WriteSignature(
TLVWriter & writer,
uint64_t tag
) const
Writes the signature as a Weave HMACSignature structure to the specified TLV writer with the given tag.
Details |
Parameters |
[in] writer
|
The TLVWriter object to which the encoded signature should be written.
|
[in] tag
|
TLV tag to be associated with the encoded signature structure.
|
|
Return Values |
WEAVE_NO_ERROR
|
If the operation succeeded.
|
other
|
Other Weave error codes related to signature writing.
|
|
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":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]