#include <decryptor.hpp>
Public Types | |
using | DecryptSuccessCallback = std::function< void(ConstBufferPtr)> |
Public Member Functions | |
Decryptor (const Key &credentialsKey, Validator &validator, KeyChain &keyChain, Face &face) | |
Constructor. More... | |
~Decryptor () | |
void | decrypt (const Block &encryptedContent, const DecryptSuccessCallback &onSuccess, const ErrorCallback &onFailure) |
Asynchronously decrypt encryptedContent . More... | |
NAC Decryptor.
Encryptor decrypts (asynchronous operation, contingent on successful retrieval of CK data, KDK, and decryption of both) the supplied EncryptedContent
element.
Definition at line 37 of file decryptor.hpp.
using ndn::nac::Decryptor::DecryptSuccessCallback = std::function<void(ConstBufferPtr)> |
Definition at line 40 of file decryptor.hpp.
ndn::nac::Decryptor::Decryptor | ( | const Key & | credentialsKey, |
Validator & | validator, | ||
KeyChain & | keyChain, | ||
Face & | face | ||
) |
Constructor.
credentialsKey | Credentials key to be used to retrieve and decrypt KDK |
validator | Validation policy to ensure validity of KDK and CK |
keyChain | KeyChain |
face | Face that will be used to fetch CK and KDK |
Definition at line 36 of file decryptor.cpp.
ndn::nac::Decryptor::~Decryptor | ( | ) |
Definition at line 45 of file decryptor.cpp.
void ndn::nac::Decryptor::decrypt | ( | const Block & | encryptedContent, |
const DecryptSuccessCallback & | onSuccess, | ||
const ErrorCallback & | onFailure | ||
) |
Asynchronously decrypt encryptedContent
.
Definition at line 59 of file decryptor.cpp.