NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
hmac-filter.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_CXX_SECURITY_TRANSFORM_HMAC_FILTER_HPP
23
#define NDN_CXX_SECURITY_TRANSFORM_HMAC_FILTER_HPP
24
25
#include "
transform-base.hpp
"
26
#include "../security-common.hpp"
27
28
namespace
ndn
{
29
namespace
security
{
30
namespace
transform {
31
35
class
HmacFilter
:
public
Transform
36
{
37
public
:
38
43
HmacFilter
(
DigestAlgorithm
algo,
const
uint8_t* key,
size_t
keyLen);
44
45
private
:
51
virtual
size_t
52
convert(
const
uint8_t* buf,
size_t
size)
final
;
53
57
virtual
void
58
finalize()
final
;
59
60
private
:
61
class
Impl
;
62
unique_ptr<Impl> m_impl;
63
};
64
65
unique_ptr<Transform>
66
hmacFilter
(
DigestAlgorithm
algo,
const
uint8_t* key,
size_t
keyLen);
67
68
}
// namespace transform
69
}
// namespace security
70
}
// namespace ndn
71
72
#endif // NDN_CXX_SECURITY_TRANSFORM_HMAC_FILTER_HPP
transform-base.hpp
There are three types of module in a transformation chain: Source, Transform, and Sink...
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::transform::hmacFilter
unique_ptr< Transform > hmacFilter(DigestAlgorithm algo, const uint8_t *key, size_t keyLen)
Definition:
hmac-filter.cpp:110
ndn::security::transform::HmacFilter::Impl
Definition:
hmac-filter.cpp:29
ndn::security::transform::HmacFilter
The module to generate HMAC for input data.
Definition:
hmac-filter.hpp:35
ndn::security::transform::HmacFilter::HmacFilter
HmacFilter(DigestAlgorithm algo, const uint8_t *key, size_t keyLen)
Create a HMAC module to generate HMAC using algorithm algo and key.
Definition:
hmac-filter.cpp:71
ndn::security::transform::Transform
Abstraction of an intermediate transformation module.
Definition:
transform-base.hpp:185
ndn::DigestAlgorithm
DigestAlgorithm
Definition:
security-common.hpp:70
security
ndnSIM
ndn-cxx
src
security
transform
hmac-filter.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13