ndn::security::v1 Namespace Reference

Data Structures

class  Certificate
 
class  CertificateExtension
 A CertificateExtension represents the Extension entry in a certificate. More...
 
class  CertificateSubjectDescription
 A CertificateSubjectDescription represents the SubjectDescription entry in a Certificate. More...
 
class  CFReleaser
 Helper class to wrap CoreFoundation object pointers. More...
 
struct  Factory
 
class  IdentityCertificate
 
class  KeyChain
 The packet signing interface. More...
 
class  NdnCxxAutoSecPublicInfoSqlite3PibRegistrationClass
 
class  NdnCxxAutoSecTpmFileTpmRegistrationClass
 
class  PublicKey
 
class  SecPublicInfo
 SecPublicInfo is a base class for the storage of public information. More...
 
class  SecPublicInfoSqlite3
 
class  SecTpm
 SecTpm is the base class of the TPM classes. More...
 
class  SecTpmFile
 
class  SecTpmOsx
 
class  SecuredBag
 

Typedefs

typedef Factory< KeyChain::PibCreateFuncPibFactory
 
typedef Factory< KeyChain::TpmCreateFuncTpmFactory
 

Functions

std::ostream & operator<< (std::ostream &os, const Certificate &cert)
 
static std::map< std::string, PibFactory > & getPibFactories ()
 
static std::map< std::string, TpmFactory > & getTpmFactories ()
 
static std::tuple< std::string, std::string > parseUri (const std::string &uri)
 
static std::tuple< std::string, std::string > getCanonicalPibLocator (const std::string &pibLocator)
 
static std::tuple< std::string, std::string > getCanonicalTpmLocator (const std::string &tpmLocator)
 
std::ostream & operator<< (std::ostream &os, const PublicKey &key)
 
static int sqlite3_bind_string (sqlite3_stmt *statement, int index, const string &value, void(*destructor)(void *))
 A utility function to call the normal sqlite3_bind_text where the value and length are value.c_str() and value.size(). More...
 
static string sqlite3_column_string (sqlite3_stmt *statement, int column)
 

Variables

 WireEncodable< Certificate >
 
 WireDecodable< Certificate >
 
 WireEncodable< IdentityCertificate >
 
 WireDecodable< IdentityCertificate >
 
const std::string DEFAULT_PIB_SCHEME = "pib-sqlite3"
 
const std::string DEFAULT_TPM_SCHEME = "tpm-file"
 
static class ndn::security::v1::NdnCxxAutoSecPublicInfoSqlite3PibRegistrationClass ndnCxxAutoSecPublicInfoSqlite3PibRegistrationVariable
 
static class ndn::security::v1::NdnCxxAutoSecTpmFileTpmRegistrationClass ndnCxxAutoSecTpmFileTpmRegistrationVariable
 
static const string INIT_TPM_INFO_TABLE
 
static const string INIT_ID_TABLE
 
static const string INIT_KEY_TABLE
 
static const string INIT_CERT_TABLE
 
 WireEncodable< SecuredBag >
 
 WireDecodable< SecuredBag >
 

Typedef Documentation

Function Documentation

static std::tuple<std::string, std::string> ndn::security::v1::getCanonicalPibLocator ( const std::string &  pibLocator)
inlinestatic

Definition at line 188 of file v1/key-chain.cpp.

static std::tuple<std::string, std::string> ndn::security::v1::getCanonicalTpmLocator ( const std::string &  tpmLocator)
inlinestatic

Definition at line 226 of file v1/key-chain.cpp.

static std::map<std::string, PibFactory>& ndn::security::v1::getPibFactories ( )
static

Definition at line 88 of file v1/key-chain.cpp.

static std::map<std::string, TpmFactory>& ndn::security::v1::getTpmFactories ( )
static

Definition at line 95 of file v1/key-chain.cpp.

std::ostream & ndn::security::v1::operator<< ( std::ostream &  os,
const PublicKey key 
)

Definition at line 145 of file v1/public-key.cpp.

std::ostream & ndn::security::v1::operator<< ( std::ostream &  os,
const Certificate cert 
)

Definition at line 351 of file v1/certificate.cpp.

static std::tuple<std::string, std::string> ndn::security::v1::parseUri ( const std::string &  uri)
inlinestatic

Definition at line 168 of file v1/key-chain.cpp.

static int ndn::security::v1::sqlite3_bind_string ( sqlite3_stmt *  statement,
int  index,
const string &  value,
void(*)(void *)  destructor 
)
static

A utility function to call the normal sqlite3_bind_text where the value and length are value.c_str() and value.size().

Definition at line 99 of file sec-public-info-sqlite3.cpp.

static string ndn::security::v1::sqlite3_column_string ( sqlite3_stmt *  statement,
int  column 
)
static

Definition at line 108 of file sec-public-info-sqlite3.cpp.

Variable Documentation

const std::string ndn::security::v1::DEFAULT_PIB_SCHEME = "pib-sqlite3"

Definition at line 51 of file v1/key-chain.cpp.

const std::string ndn::security::v1::DEFAULT_TPM_SCHEME = "tpm-file"

Definition at line 56 of file v1/key-chain.cpp.

const string ndn::security::v1::INIT_CERT_TABLE
static
Initial value:
=
"CREATE TABLE IF NOT EXISTS "
" Certificate( "
" cert_name BLOB NOT NULL, "
" cert_issuer BLOB NOT NULL, "
" identity_name BLOB NOT NULL, "
" key_identifier BLOB NOT NULL, "
" not_before TIMESTAMP, "
" not_after TIMESTAMP, "
" certificate_data BLOB NOT NULL, "
" valid_flag INTEGER DEFAULT 1, "
" default_cert INTEGER DEFAULT 0, "
" PRIMARY KEY (cert_name) "
" ); "
"CREATE INDEX cert_index ON Certificate(cert_name); "
"CREATE INDEX subject ON Certificate(identity_name);"

Definition at line 77 of file sec-public-info-sqlite3.cpp.

const string ndn::security::v1::INIT_ID_TABLE
static
Initial value:
=
"CREATE TABLE IF NOT EXISTS "
" Identity( "
" identity_name BLOB NOT NULL, "
" default_identity INTEGER DEFAULT 0, "
" PRIMARY KEY (identity_name) "
" ); "
"CREATE INDEX identity_index ON Identity(identity_name);"

Definition at line 54 of file sec-public-info-sqlite3.cpp.

const string ndn::security::v1::INIT_KEY_TABLE
static
Initial value:
=
"CREATE TABLE IF NOT EXISTS "
" Key( "
" identity_name BLOB NOT NULL, "
" key_identifier BLOB NOT NULL, "
" key_type INTEGER, "
" public_key BLOB, "
" default_key INTEGER DEFAULT 0, "
" active INTEGER DEFAULT 0, "
" PRIMARY KEY (identity_name, key_identifier)"
" ); "
"CREATE INDEX key_index ON Key(identity_name); "

Definition at line 63 of file sec-public-info-sqlite3.cpp.

const string ndn::security::v1::INIT_TPM_INFO_TABLE
static
Initial value:
=
"CREATE TABLE IF NOT EXISTS "
" TpmInfo( "
" tpm_locator BLOB NOT NULL,"
" PRIMARY KEY (tpm_locator) "
" ); "

Definition at line 47 of file sec-public-info-sqlite3.cpp.

class ndn::security::v1::NdnCxxAutoSecPublicInfoSqlite3PibRegistrationClass ndn::security::v1::ndnCxxAutoSecPublicInfoSqlite3PibRegistrationVariable
static
class ndn::security::v1::NdnCxxAutoSecTpmFileTpmRegistrationClass ndn::security::v1::ndnCxxAutoSecTpmFileTpmRegistrationVariable
static
ndn::security::v1::WireDecodable< Certificate >

Definition at line 41 of file v1/certificate.cpp.

ndn::security::v1::WireDecodable< IdentityCertificate >

Definition at line 32 of file identity-certificate.cpp.

ndn::security::v1::WireDecodable< SecuredBag >

Definition at line 32 of file secured-bag.cpp.

ndn::security::v1::WireEncodable< Certificate >

Definition at line 40 of file v1/certificate.cpp.

ndn::security::v1::WireEncodable< IdentityCertificate >

Definition at line 31 of file identity-certificate.cpp.

ndn::security::v1::WireEncodable< SecuredBag >

Definition at line 31 of file secured-bag.cpp.