Google is committed to advancing racial equity for Black communities. See how.

nl::Weave::Crypto::EncodedRSASignature

Summary

Public types

@346 enum

Public attributes

Len
uint16_t
Sig
uint8_t *

Public functions

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

Public types

@346

 @346

Public attributes

Len

uint16_t Len

Sig

uint8_t * Sig

Public functions

IsEqual

bool IsEqual(
  const EncodedRSASignature & other
) const 

Compares with another RSA signature.

Details
Parameters
[in] other
The EncodedRSASignature 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 RSASignature 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 RSASignature 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.