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
There are three types of module in a transformation chain: Source, Transform, and Sink...
Copyright (c) 2011-2015 Regents of the University of California.
unique_ptr< Transform > hmacFilter(DigestAlgorithm algo, const uint8_t *key, size_t keyLen)
The module to generate HMAC for input data.
Definition: hmac-filter.hpp:35
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
Abstraction of an intermediate transformation module.