An EncryptedContentLite holds an encryption type, a payload and other fields representing encrypted content.
More...
#include <encrypted-content-lite.hpp>
|
class | Tlv0_1_1WireFormatLite |
|
An EncryptedContentLite holds an encryption type, a payload and other fields representing encrypted content.
- Note
- This class is an experimental feature. The API may change.
ndn::EncryptedContentLite::EncryptedContentLite |
( |
ndn_NameComponent * |
keyNameComponents, |
|
|
size_t |
maxKeyNameComponents |
|
) |
| |
Create a EncryptedContentLite with values for none.
- 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. |
ndn_EncryptAlgorithmType ndn::EncryptedContentLite::getAlgorithmType |
( |
| ) |
const |
|
inline |
Get the algorithm type.
- Returns
- The algorithm type, or -1 if not specified.
const BlobLite& ndn::EncryptedContentLite::getInitialVector |
( |
| ) |
const |
|
inline |
Get the initial vector.
- Returns
- The initial vector. If not specified, isNull() is true.
const KeyLocatorLite& ndn::EncryptedContentLite::getKeyLocator |
( |
| ) |
const |
|
inline |
Get the key locator.
- Returns
- The key locator. If not specified, getType() is -1.
const BlobLite& ndn::EncryptedContentLite::getPayload |
( |
| ) |
const |
|
inline |
Get the payload.
- Returns
- The payload. If not specified, isNull() is true.
Set this encryptedContent to have the values from the other encryptedContent.
- Parameters
-
- Returns
- 0 for success, or an error code if there is not enough room in this object's key locator keyName components array.
EncryptedContentLite& ndn::EncryptedContentLite::setAlgorithmType |
( |
ndn_EncryptAlgorithmType |
algorithmType | ) |
|
|
inline |
Set the algorithm type.
- Parameters
-
algorithmType | The algorithm type. If not specified, set to -1. |
- Returns
- This EncryptedContentLite so that you can chain calls to update values.
Set the initial vector.
- Parameters
-
initialVector | The initial vector. If not specified, set to the default BlobLite() where isNull() is true. |
- Returns
- This EncryptedContentLite so that you can chain calls to update values.
Set the encrypted payload.
- Parameters
-
payload | The encrypted payload. If not specified, set to the default BlobLite() where isNull() is true. |
- Returns
- This EncryptedContentLite so that you can chain calls to update values.
The documentation for this class was generated from the following files: