ndn-cxx: NDN C++ library with eXperimental eXtensions 0.5.1 documentation
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
digest-sha256.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#include "
digest-sha256.hpp
"
23
24
namespace
ndn
{
25
26
DigestSha256::DigestSha256
()
27
:
Signature
(
SignatureInfo
(tlv::
DigestSha256
))
28
{
29
}
30
31
DigestSha256::DigestSha256
(
const
Signature
& signature)
32
:
Signature
(signature)
33
{
34
if
(
getType
() !=
tlv::DigestSha256
)
35
BOOST_THROW_EXCEPTION(
Error
(
"Incorrect signature type"
));
36
}
37
38
}
// namespace ndn
ndn
Copyright (c) 2013-2016 Regents of the University of California.
Definition:
common.hpp:74
ndn::SignatureInfo
Definition:
signature-info.hpp:32
ndn::DigestSha256::DigestSha256
DigestSha256()
Definition:
digest-sha256.cpp:26
ndn::DigestSha256
Represent a SHA256 digest.
Definition:
digest-sha256.hpp:33
ndn::Signature::getType
uint32_t getType() const
Get signature type.
Definition:
signature.hpp:123
ndn::DigestSha256::Error
Definition:
digest-sha256.hpp:36
ndn::tlv::DigestSha256
Definition:
encoding/tlv.hpp:96
digest-sha256.hpp
ndn::Signature
A Signature is storage for the signature-related information (info and value) in a Data packet...
Definition:
signature.hpp:33
src
security
digest-sha256.cpp
Generated on Wed Jan 25 2017 20:54:14 for ndn-cxx: NDN C++ library with eXperimental eXtensions by
1.8.9.1