NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
g
i
k
l
m
n
p
r
s
u
w
+
Related Functions
b
c
d
f
i
k
l
n
o
p
s
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
l
m
n
p
r
s
u
v
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
signature-sha256-with-rsa.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#include "
signature-sha256-with-rsa.hpp
"
23
24
namespace
ndn
{
25
26
SignatureSha256WithRsa::SignatureSha256WithRsa
(
const
KeyLocator
& keyLocator)
27
:
Signature
(
SignatureInfo
(tlv::
SignatureSha256WithRsa
, keyLocator))
28
{
29
}
30
31
SignatureSha256WithRsa::SignatureSha256WithRsa
(
const
Signature
& signature)
32
:
Signature
(signature)
33
{
34
if
(
getType
() !=
tlv::SignatureSha256WithRsa
)
35
BOOST_THROW_EXCEPTION(
Error
(
"Incorrect signature type"
));
36
37
if
(!
hasKeyLocator
()) {
38
BOOST_THROW_EXCEPTION(
Error
(
"KeyLocator is missing"
));
39
}
40
}
41
42
void
43
SignatureSha256WithRsa::unsetKeyLocator()
44
{
45
BOOST_THROW_EXCEPTION(
Error
(
"KeyLocator cannot be reset for SignatureSha256WithRsa"
));
46
}
47
48
}
// namespace ndn
ndn::SignatureSha256WithRsa
Represent a SHA256-with-RSA signature.
Definition:
signature-sha256-with-rsa.hpp:32
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::SignatureInfo
Definition:
signature-info.hpp:32
signature-sha256-with-rsa.hpp
ndn::tlv::SignatureSha256WithRsa
Definition:
tlv.hpp:97
ndn::SignatureSha256WithRsa::Error
Definition:
signature-sha256-with-rsa.hpp:35
ndn::Signature::hasKeyLocator
bool hasKeyLocator() const
Check if SignatureInfo block has a KeyLocator.
Definition:
signature.hpp:123
ndn::SignatureSha256WithRsa::SignatureSha256WithRsa
SignatureSha256WithRsa(const KeyLocator &keyLocator=KeyLocator())
Definition:
signature-sha256-with-rsa.cpp:26
ndn::KeyLocator
Definition:
key-locator.hpp:30
ndn::Signature::getType
uint32_t getType() const
Get signature type.
Definition:
signature.hpp:114
ndn::Signature
A Signature is storage for the signature-related information (info and value) in a Data packet...
Definition:
signature.hpp:33
ndnSIM
ndn-cxx
src
security
signature-sha256-with-rsa.cpp
Generated on Sat Nov 12 2016 16:02:53 for ndnSIM by
1.8.12