An EncryptParams holds an algorithm type and other parameters used to encrypt and decrypt.
More...
#include <encrypt-params.hpp>
An EncryptParams holds an algorithm type and other parameters used to encrypt and decrypt.
- Note
- This class is an experimental feature. The API may change.
| ndn::EncryptParams::EncryptParams |
( |
ndn_EncryptAlgorithmType |
algorithmType, |
|
|
size_t |
initialVectorLength |
|
) |
| |
Create an EncryptParams with the given parameters.
- Parameters
-
| algorithmType | The algorithm type, or -1 if not specified. |
| initialVectorLength | The initial vector length, or 0 if the initial vector is not specified. |
| ndn::EncryptParams::EncryptParams |
( |
ndn_EncryptAlgorithmType |
algorithmType | ) |
|
|
inline |
Create an EncryptParams with the given algorithmType and an unspecified initial vector.
- Parameters
-
| algorithmType | The algorithm type, or -1 if not specified. |
| ndn_EncryptAlgorithmType ndn::EncryptParams::getAlgorithmType |
( |
| ) |
const |
|
inline |
Get the algorithm type.
- Returns
- The algorithm type, or -1 if not specified.
| const Blob& ndn::EncryptParams::getInitialVector |
( |
| ) |
const |
|
inline |
Get the initial vector.
- Returns
- The initial vector. If not specified, isNull() is true.
| EncryptParams& ndn::EncryptParams::setAlgorithmType |
( |
ndn_EncryptAlgorithmType |
algorithmType | ) |
|
|
inline |
Set the algorithm type.
- Parameters
-
| algorithmType | The algorithm type. If not specified, set to -1. |
- Returns
- This EncryptParams 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 EncryptParams so that you can chain calls to update values.
The documentation for this class was generated from the following files: