NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
signer-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_SIGNER_FILTER_HPP
23 #define NDN_CXX_SECURITY_TRANSFORM_SIGNER_FILTER_HPP
24 
25 #include "transform-base.hpp"
26 #include "private-key.hpp"
27 #include "../security-common.hpp"
28 
29 namespace ndn {
30 namespace security {
31 namespace transform {
32 
36 class SignerFilter : public Transform
37 {
38 public:
42  SignerFilter(DigestAlgorithm algo, const PrivateKey& key);
43 
44 private:
50  virtual size_t
51  convert(const uint8_t* buf, size_t size) final;
52 
56  virtual void
57  finalize() final;
58 
59 private:
60  class Impl;
61  unique_ptr<Impl> m_impl;
62 };
63 
64 unique_ptr<Transform>
65 signerFilter(DigestAlgorithm algo, const PrivateKey& key);
66 
67 } // namespace transform
68 } // namespace security
69 } // namespace ndn
70 
71 #endif // NDN_CXX_SECURITY_TRANSFORM_SIGNER_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 > signerFilter(DigestAlgorithm algo, const PrivateKey &key)
Abstraction of private key in crypto transformation.
Definition: private-key.hpp:38
SignerFilter(DigestAlgorithm algo, const PrivateKey &key)
Create a signer module to generate signature using algorithm algo and key.
Abstraction of an intermediate transformation module.