security-common.hpp File Reference
#include "../common.hpp"
+ 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) 2013-2017 Regents of the University of California.
 
 ndn::command_interest
 
 ndn::security
 
 ndn::security::transform
 
 ndn::security::v2
 
 ndn::signed_interest
 

Enumerations

enum  ndn::AclType {
  ndn::AclType::NONE,
  ndn::AclType::PUBLIC,
  ndn::AclType::PRIVATE
}
 
enum  ndn::BlockCipherAlgorithm {
  ndn::BlockCipherAlgorithm::NONE,
  ndn::BlockCipherAlgorithm::AES_CBC
}
 
enum  ndn::CipherOperator {
  ndn::CipherOperator::DECRYPT = 0,
  ndn::CipherOperator::ENCRYPT = 1
}
 
enum  ndn::DigestAlgorithm {
  ndn::DigestAlgorithm::NONE = 0,
  ndn::DigestAlgorithm::SHA224 = 2,
  ndn::DigestAlgorithm::SHA256 = 1,
  ndn::DigestAlgorithm::SHA384 = 3,
  ndn::DigestAlgorithm::SHA512 = 4
}
 
enum  ndn::KeyClass {
  ndn::KeyClass::NONE,
  ndn::KeyClass::PUBLIC,
  ndn::KeyClass::PRIVATE,
  ndn::KeyClass::SYMMETRIC
}
 
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 = 1,
  ndn::KeyType::EC = 2,
  ndn::KeyType::AES = 128
}
 The type of a cryptographic key. More...
 

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, KeyClass keyClass)
 
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)
 
std::ostream & ndn::operator<< (std::ostream &os, AclType aclType)
 

Variables

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