NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
signature-sha256-with-rsa.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_RSA_HPP
23 #define NDN_SECURITY_SIGNATURE_SHA256_WITH_RSA_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  SignatureSha256WithRsa(const KeyLocator& keyLocator = KeyLocator());
47 
48  explicit
49  SignatureSha256WithRsa(const Signature& signature);
50 
51 private:
52  void
53  unsetKeyLocator();
54 };
55 
56 } // namespace ndn
57 
58 #endif //NDN_SECURITY_SIGNATURE_SHA256_WITH_RSA_HPP
Represent a SHA256-with-RSA signature.
Copyright (c) 2011-2015 Regents of the University of California.
SignatureSha256WithRsa(const KeyLocator &keyLocator=KeyLocator())
A Signature is storage for the signature-related information (info and value) in a Data packet...
Definition: signature.hpp:33