All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
security-common.hpp
1 
22 #ifndef NDN_SECURITY_COMMON_HPP
23 #define NDN_SECURITY_COMMON_HPP
24 
25 namespace ndn {
26 
30 enum KeyIdType {
46 };
47 
48 // The KeyType integer is used by the Sqlite key storage, so don't change them.
49 // Make these the same as ndn-cxx in case the storage file is shared.
50 enum KeyType {
51  KEY_TYPE_RSA = 0,
52  KEY_TYPE_EC = 1,
57  KEY_TYPE_AES = 128,
58 };
59 
60 enum KeyClass {
61  KEY_CLASS_PUBLIC,
62  KEY_CLASS_PRIVATE,
63  KEY_CLASS_SYMMETRIC
64 };
65 
66 enum DigestAlgorithm {
67  DIGEST_ALGORITHM_SHA256
68 };
69 
70 }
71 
72 #endif
KeyIdType
The KeyIdType enum represents the type of a KeyId component in a key name.
Definition: security-common.hpp:30
USER_SPECIFIED: A user-specified key ID.
Definition: security-common.hpp:35
SHA256: The SHA256 hash of the public key as the key id.
Definition: security-common.hpp:40
RANDOM: A 64-bit random number as the key id.
Definition: security-common.hpp:45
KeyType
Definition: security-common.hpp:50
Definition: security-common.hpp:56