NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
signing-helpers.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #include "signing-helpers.hpp"
23 
24 namespace ndn {
25 namespace security {
26 
27 SigningInfo
28 signingByIdentity(const Name& identity)
29 {
30  return SigningInfo(SigningInfo::SIGNER_TYPE_ID, identity);
31 }
32 
34 signingByKey(const Name& keyName)
35 {
37 }
38 
40 signingByCertificate(const Name& certName)
41 {
43 }
44 
47 {
49 }
50 
51 } // namespace security
52 } // namespace ndn
SigningInfo signingByKey(const Name &keyName)
Copyright (c) 2011-2015 Regents of the University of California.
use sha256 digest, no signer needs to be specified
Signing parameters passed to KeyChain.
SigningInfo signingByCertificate(const Name &certName)
SigningInfo signingByIdentity(const Name &identity)
Name abstraction to represent an absolute name.
Definition: name.hpp:46
signer is a certificate, use it directly
SigningInfo signingWithSha256()
signer is a key, use its default certificate
signer is an identity, use its default key and default certificate