A SignatureLite holds a signature type, a KeyLocatorLite, the signature bytes and other fields to represent the Signature block of a Data packet.
More...
#include <signature-lite.hpp>
A SignatureLite holds a signature type, a KeyLocatorLite, the signature bytes and other fields to represent the Signature block of a Data packet.
This has the union of fields needed to represent specific types of signature such as Sha256WithRsaSignature and DigestSha256Signature.
| ndn::SignatureLite::SignatureLite |
( |
ndn_NameComponent * |
keyNameComponents, |
|
|
size_t |
maxKeyNameComponents |
|
) |
| |
Create a SignatureLite with values for none and the default digestAlgorithm.
- Parameters
-
| keyNameComponents | The pre-allocated array of ndn_NameComponent for the keyLocatorLite. Instead of an array of NameLite::Component, this is an array of the underlying ndn_NameComponent struct so that it doesn't run the default constructor unnecessarily. |
| maxKeyNameComponents | The number of elements in the allocated keyNameComponents array. |
Set this signature to have the values from the other signature.
- Parameters
-
- Returns
- 0 for success, or an error code if there is not enough room in this object's key locator keyName components array.
| void ndn::SignatureLite::setDigestAlgorithm |
( |
const BlobLite & |
digestAlgorithm | ) |
|
|
inline |
Set the bytes of the digest algorithm.
- Parameters
-
| digestAlgorithm | The bytes of the digest algorithm. This copies a pointer to the bytes, but does not copy the bytes. |
| void ndn::SignatureLite::setSignature |
( |
const BlobLite & |
signature | ) |
|
|
inline |
Set the signature bytes.
- Parameters
-
| signature | The signature bytes. This copies a pointer to the bytes, but does not copy the bytes. |
| void ndn::SignatureLite::setWitness |
( |
const BlobLite & |
witness | ) |
|
|
inline |
Set the witness.
- Parameters
-
| witness | The witness. This copies a pointer to the bytes, but does not copy the bytes. |
The documentation for this class was generated from the following files: