NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
security-common.hpp File Reference
#include "ndn-cxx/detail/common.hpp"
#include "ndn-cxx/util/span.hpp"
#include <vector>
Include dependency graph for security-common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ndn
 Copyright (c) 2011-2015 Regents of the University of California.
 
 ndn::signed_interest
 
 ndn::command_interest
 

Enumerations

enum  ndn::KeyIdType { ndn::KeyIdType::USER_SPECIFIED = 0, ndn::KeyIdType::SHA256 = 1, ndn::KeyIdType::RANDOM = 2 }
 The type of KeyId component in a key name. More...
 
enum  ndn::KeyType {
  ndn::KeyType::NONE = 0, ndn::KeyType::RSA, ndn::KeyType::EC, ndn::KeyType::AES,
  ndn::KeyType::HMAC
}
 The type of a cryptographic key. More...
 
enum  ndn::DigestAlgorithm {
  ndn::DigestAlgorithm::NONE = 0, ndn::DigestAlgorithm::SHA224, ndn::DigestAlgorithm::SHA256, ndn::DigestAlgorithm::SHA384,
  ndn::DigestAlgorithm::SHA512, ndn::DigestAlgorithm::BLAKE2B_512, ndn::DigestAlgorithm::BLAKE2S_256, ndn::DigestAlgorithm::SHA3_224,
  ndn::DigestAlgorithm::SHA3_256, ndn::DigestAlgorithm::SHA3_384, ndn::DigestAlgorithm::SHA3_512
}
 
enum  ndn::BlockCipherAlgorithm { ndn::BlockCipherAlgorithm::NONE, ndn::BlockCipherAlgorithm::AES_CBC }
 
enum  ndn::CipherOperator { ndn::CipherOperator::DECRYPT, ndn::CipherOperator::ENCRYPT }
 

Functions

std::ostream & ndn::operator<< (std::ostream &os, KeyIdType keyIdType)
 
std::ostream & ndn::operator<< (std::ostream &os, KeyType keyType)
 
std::ostream & ndn::operator<< (std::ostream &os, DigestAlgorithm algorithm)
 
std::ostream & ndn::operator<< (std::ostream &os, BlockCipherAlgorithm algorithm)
 
std::ostream & ndn::operator<< (std::ostream &os, CipherOperator op)
 

Variables

const ssize_t ndn::signed_interest::POS_SIG_VALUE = -1
 
const ssize_t ndn::signed_interest::POS_SIG_INFO = -2
 
const size_t ndn::signed_interest::MIN_SIZE = 2
 minimal number of components for Signed Interest More...
 
const ssize_t ndn::command_interest::POS_RANDOM_VAL = -3
 
const ssize_t ndn::command_interest::POS_TIMESTAMP = -4
 
const size_t ndn::command_interest::MIN_SIZE = 4
 minimal number of components for Command Interest More...