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
 
 ndn::command_interest
 
 ndn::signed_interest
 

Enumerations

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

Functions

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, DigestAlgorithm algorithm)
 
std::ostream & ndn::operator<< (std::ostream &os, KeyIdType keyIdType)
 
std::ostream & ndn::operator<< (std::ostream &os, KeyType keyType)
 

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