NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
security-common.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_SECURITY_COMMON_HPP
23
#define NDN_SECURITY_COMMON_HPP
24
25
namespace
ndn
{
26
27
namespace
signed_interest{
28
29
enum
{
30
POS_SIG_VALUE
= -1,
31
POS_SIG_INFO
= -2,
32
POS_RANDOM_VAL
= -3,
33
POS_TIMESTAMP
= -4,
34
35
MIN_LENGTH
= 4
36
};
37
38
}
// namespace signed_interest
39
40
enum
KeyType
{
41
KEY_TYPE_RSA
= 0,
42
KEY_TYPE_ECDSA
= 1,
43
// KEY_TYPE_DSA,
44
KEY_TYPE_AES
= 128,
45
// KEY_TYPE_DES,
46
// KEY_TYPE_RC4,
47
// KEY_TYPE_RC2
48
KEY_TYPE_NULL
= 255
49
};
50
51
enum
KeyClass
{
52
KEY_CLASS_PUBLIC
,
53
KEY_CLASS_PRIVATE
,
54
KEY_CLASS_SYMMETRIC
55
};
56
57
enum
DigestAlgorithm
{
58
DIGEST_ALGORITHM_SHA256
59
};
60
61
enum
EncryptMode
{
62
ENCRYPT_MODE_DEFAULT
,
63
ENCRYPT_MODE_CFB_AES
64
// ENCRYPT_MODE_CBC_AES
65
};
66
67
enum
AclType
{
68
ACL_TYPE_PUBLIC
,
69
ACL_TYPE_PRIVATE
70
};
71
72
}
// namespace ndn
73
74
#endif
ndn::KEY_TYPE_RSA
Definition:
security-common.hpp:41
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::ACL_TYPE_PUBLIC
Definition:
security-common.hpp:68
ndn::signed_interest::MIN_LENGTH
Definition:
security-common.hpp:35
ndn::signed_interest::POS_SIG_VALUE
Definition:
security-common.hpp:30
ndn::KEY_CLASS_PRIVATE
Definition:
security-common.hpp:53
ndn::DIGEST_ALGORITHM_SHA256
Definition:
security-common.hpp:58
ndn::KeyType
KeyType
Definition:
security-common.hpp:40
ndn::ENCRYPT_MODE_DEFAULT
Definition:
security-common.hpp:62
ndn::AclType
AclType
Definition:
security-common.hpp:67
ndn::KEY_TYPE_NULL
Definition:
security-common.hpp:48
ndn::KEY_TYPE_ECDSA
Definition:
security-common.hpp:42
ndn::KeyClass
KeyClass
Definition:
security-common.hpp:51
ndn::EncryptMode
EncryptMode
Definition:
security-common.hpp:61
ndn::KEY_CLASS_SYMMETRIC
Definition:
security-common.hpp:54
ndn::signed_interest::POS_SIG_INFO
Definition:
security-common.hpp:31
ndn::ACL_TYPE_PRIVATE
Definition:
security-common.hpp:69
ndn::ENCRYPT_MODE_CFB_AES
Definition:
security-common.hpp:63
ndn::KEY_CLASS_PUBLIC
Definition:
security-common.hpp:52
ndn::KEY_TYPE_AES
Definition:
security-common.hpp:44
ndn::DigestAlgorithm
DigestAlgorithm
Definition:
security-common.hpp:57
ndn::signed_interest::POS_TIMESTAMP
Definition:
security-common.hpp:33
ndn::signed_interest::POS_RANDOM_VAL
Definition:
security-common.hpp:32
ndnSIM
ndn-cxx
src
security
security-common.hpp
Generated on Sat Nov 12 2016 16:02:53 for ndnSIM by
1.8.12