22 #ifndef NDN_CXX_SECURITY_SECURITY_COMMON_HPP
23 #define NDN_CXX_SECURITY_SECURITY_COMMON_HPP
32 namespace signed_interest {
44 namespace command_interest {
59 using InputBuffers = std::vector<span<const uint8_t>>;
Common includes and macros used throughout the library.
const ssize_t POS_RANDOM_VAL
const size_t MIN_SIZE
minimal number of components for Command Interest
const ssize_t POS_TIMESTAMP
const ssize_t POS_SIG_VALUE
const size_t MIN_SIZE
minimal number of components for Signed Interest
const ssize_t POS_SIG_INFO
KeyType
The type of a cryptographic key.
@ EC
Elliptic Curve key (e.g. for ECDSA), supports sign/verify operations.
@ RSA
RSA key, supports sign/verify and encrypt/decrypt operations.
@ AES
AES key, supports encrypt/decrypt operations.
@ NONE
Unknown or unsupported key type.
@ HMAC
HMAC key, supports sign/verify operations.
KeyIdType
The type of KeyId component in a key name.
@ RANDOM
Use a 64-bit random number as key id.
@ USER_SPECIFIED
User-specified key id.
@ SHA256
Use the SHA-256 hash of the public key as key id.
std::ostream & operator<<(std::ostream &os, const Data &data)