An EncryptedContent holds an encryption type, a payload and other fields representing encrypted content.
More...
#include <encrypted-content.hpp>
An EncryptedContent holds an encryption type, a payload and other fields representing encrypted content.
- Note
- This class is an experimental feature. The API may change.
Set encryptedContentLite to point to the values in this EncryptedContent object, without copying any memory.
WARNING: The resulting pointers in encryptedContentLite are invalid after a further use of this object which could reallocate memory.
- Parameters
-
encryptedContentLite | An EncryptedContentLite object where the key locator name components array is already allocated. |
ndn_EncryptAlgorithmType ndn::EncryptedContent::getAlgorithmType |
( |
| ) |
const |
|
inline |
Get the algorithm type.
- Returns
- The algorithm type, or -1 if not specified.
const Blob& ndn::EncryptedContent::getInitialVector |
( |
| ) |
const |
|
inline |
Get the initial vector.
- Returns
- The initial vector. If not specified, isNull() is true.
const KeyLocator& ndn::EncryptedContent::getKeyLocator |
( |
| ) |
const |
|
inline |
Get the key locator.
- Returns
- The key locator. If not specified, getType() is -1.
const Blob& ndn::EncryptedContent::getPayload |
( |
| ) |
const |
|
inline |
Get the payload.
- Returns
- The payload. If not specified, isNull() is true.
Clear this EncryptedContent, and set the values by copying from encryptedContentLite.
- Parameters
-
EncryptedContent& ndn::EncryptedContent::setAlgorithmType |
( |
ndn_EncryptAlgorithmType |
algorithmType | ) |
|
|
inline |
Set the algorithm type.
- Parameters
-
algorithmType | The algorithm type. If not specified, set to -1. |
- Returns
- This EncryptedContent 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 Blob() where isNull() is true. |
- Returns
- This EncryptedContent so that you can chain calls to update values.
Set this object to use a copy of the given KeyLocator object.
- Note
- You can also call getKeyLocator and change the key locator directly.
- Parameters
-
keyLocator | The KeyLocator object. This makes a copy of the object. If no key locator is specified, set to a new default KeyLocator(), or to a KeyLocator with an unspecified type. |
- Returns
- This EncryptedContent 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 Blob() where isNull() is true. |
- Returns
- This EncryptedContent so that you can chain calls to update values.
Decode the input using a particular wire format and update this EncryptedContent.
- Parameters
-
Decode the input using a particular wire format and update this EncryptedContent.
- Parameters
-
Decode the input using a particular wire format and update this EncryptedContent.
- Parameters
-
Encode this EncryptedContent for a particular wire format.
- Parameters
-
- Returns
- The encoded byte array.
The documentation for this class was generated from the following files: