NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
digest-sha256.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_SECURITY_DIGEST_SHA256_HPP
23 #define NDN_SECURITY_DIGEST_SHA256_HPP
24 
25 #include "../data.hpp"
26 #include "../encoding/tlv.hpp"
27 
28 namespace ndn {
29 
33 class DigestSha256 : public Signature
34 {
35 public:
36  class Error : public Signature::Error
37  {
38  public:
39  explicit
40  Error(const std::string& what)
41  : Signature::Error(what)
42  {
43  }
44  };
45 
46  DigestSha256();
47 
48  explicit
49  DigestSha256(const Signature& signature);
50 
51 };
52 
53 } // namespace ndn
54 
55 #endif //NDN_SECURITY_DIGEST_SHA256_HPP
Copyright (c) 2011-2015 Regents of the University of California.
Represent a SHA256 digest.
Error(const std::string &what)
A Signature is storage for the signature-related information (info and value) in a Data packet...
Definition: signature.hpp:33