security-common.hpp File Reference
#include "ndn-cxx/detail/common.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
 
 ndn::command_interest
 
 ndn::signed_interest
 

Enumerations

enum  ndn::BlockCipherAlgorithm {
  ndn::BlockCipherAlgorithm::NONE,
  ndn::BlockCipherAlgorithm::AES_CBC
}
 
enum  ndn::CipherOperator {
  ndn::CipherOperator::DECRYPT,
  ndn::CipherOperator::ENCRYPT
}
 
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::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...
 

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 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