esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
certificate.hpp File Reference
#include "../packet/data.hpp"
#include "helper.hpp"
#include "validity-period.hpp"

Go to the source code of this file.

Namespaces

 ndnph
 
 ndnph::certificate
 
 ndnph::detail
 

Functions

Component ndnph::certificate::getKeyComponent ()
 Return 'KEY' component. More...
 
Component ndnph::certificate::getIssuerDefault ()
 Return 'NDNph' component as default issuerId. More...
 
Component ndnph::certificate::getIssuerSelf ()
 Return 'self' component as self-signed issuerId. More...
 
bool ndnph::certificate::isKeyName (const Name &name)
 Determine if the input is a key name. More...
 
bool ndnph::certificate::isCertName (const Name &name)
 Determine if the input is a certificate name. More...
 
Name ndnph::certificate::toSubjectName (Region &region, const Name &input, bool mustCopy=false)
 Convert to subject name. More...
 
Name ndnph::certificate::toKeyName (Region &region, const Name &input, bool mustCopy=false)
 Convert to key name. More...
 
Name ndnph::certificate::toCertName (Region &region, const Name &input, bool mustCopy=false)
 Convert to certificate name. More...
 
Name ndnph::certificate::makeKeyName (Region &region, const Name &input, const Component &keyId)
 Construct key name with specified keyId. More...
 
Name ndnph::certificate::makeCertName (Region &region, const Name &input, const Component &issuerId, const Component &version)
 Construct certificate name with specified issuerId and version. More...
 
Name ndnph::certificate::makeCertName (Region &region, const Name &input, const Component &issuerId, uint64_t version=0)
 Construct certificate name with specified issuerId and version. More...
 
bool ndnph::certificate::isCertificate (const Data &data)
 Determine if the Data packet is a certificate. More...
 
Name ndnph::certificate::getIssuer (const Data &data)
 
ValidityPeriod ndnph::certificate::getValidity (const Data &data)
 
template<typename Signer , typename Modify >
Data::Signed ndnph::detail::buildCertificate (Region &region, const Name &name, const ValidityPeriod &validity, const Signer &signer, const Modify &modify)