23 #ifndef NDN_ENCRYPT_PARAMS_HPP
24 #define NDN_ENCRYPT_PARAMS_HPP
26 #include "../../util/blob.hpp"
27 #include "../../c/encrypt/algo/encrypt-params-types.h"
45 (ndn_EncryptAlgorithmType algorithmType,
size_t initialVectorLength);
54 algorithmType_ = algorithmType;
61 ndn_EncryptAlgorithmType
79 algorithmType_ = algorithmType;
92 initialVector_ = initialVector;
97 ndn_EncryptAlgorithmType algorithmType_;
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:36
EncryptParams & setInitialVector(const Blob &initialVector)
Set the initial vector.
Definition: encrypt-params.hpp:90
EncryptParams(ndn_EncryptAlgorithmType algorithmType, size_t initialVectorLength)
Create an EncryptParams with the given parameters.
Definition: encrypt-params.cpp:31
EncryptParams(ndn_EncryptAlgorithmType algorithmType)
Create an EncryptParams with the given algorithmType and an unspecified initial vector.
Definition: encrypt-params.hpp:52
An EncryptParams holds an algorithm type and other parameters used to encrypt and decrypt...
Definition: encrypt-params.hpp:36
A Blob holds a pointer to an immutable byte array implemented as const std::vector.
Definition: blob.hpp:42
ndn_EncryptAlgorithmType getAlgorithmType() const
Get the algorithm type.
Definition: encrypt-params.hpp:62
EncryptParams & setAlgorithmType(ndn_EncryptAlgorithmType algorithmType)
Set the algorithm type.
Definition: encrypt-params.hpp:77
const Blob & getInitialVector() const
Get the initial vector.
Definition: encrypt-params.hpp:69