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