nl::Weave::Crypto::EncodedHMACSignature

Summary

Public types

@350 enum

Public attributes

Len
uint8_t
Sig
uint8_t *

Public functions

IsEqual(const EncodedHMACSignature & other) const
bool
Compares with another HMAC signature.
ReadSignature(TLVReader & reader)
Reads the signature as a Weave HMACSignature structure from the specified TLV reader.
WriteSignature(TLVWriter & writer, uint64_t tag) const
Writes the signature as a Weave HMACSignature structure to the specified TLV writer with the given tag.

Public types

@350

 @350

Public attributes

Len

uint8_t Len

Sig

uint8_t * Sig

Public functions

IsEqual

bool IsEqual(
  const EncodedHMACSignature & other
) const 

Compares with another HMAC signature.

Details
Parameters
[in] other
The EncodedHMACSignature object with which signature should be compared.
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.