blob: 6aae9a145a86516c65fe617498e3ff55a319a59c [file] [log] [blame]
Prashanthc0029b62015-04-27 14:00:08 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Alexander Afanasyev9091d832018-04-18 17:21:08 -04003 * Copyright (c) 2014-2018, Regents of the University of California
4 *
5 * This file is part of NAC (Name-Based Access Control for NDN).
6 * See AUTHORS.md for complete list of NAC authors and contributors.
7 *
8 * NAC is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
11 *
12 * NAC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * NAC, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 */
Prashanthc0029b62015-04-27 14:00:08 -070019
Alexander Afanasyev9091d832018-04-18 17:21:08 -040020#ifndef NDN_NAC_TLV_HPP
21#define NDN_NAC_TLV_HPP
Prashanthc0029b62015-04-27 14:00:08 -070022
23namespace ndn {
Alexander Afanasyev9091d832018-04-18 17:21:08 -040024namespace nac {
Prashanthc0029b62015-04-27 14:00:08 -070025namespace tlv {
26
27enum {
28 EncryptedContent = 130,
29 EncryptionAlgorithm = 131,
Prashanth Swaminathanb1b95962015-07-06 13:13:08 -070030 EncryptedPayload = 132,
Zhiyi Zhangcea58d52015-08-26 10:19:56 -070031 InitialVector = 133,
32
33 // for repetitive interval
34 StartDate = 134,
35 EndDate = 135,
36 IntervalStartHour = 136,
37 IntervalEndHour = 137,
38 NRepeats = 138,
39 RepeatUnit = 139,
40 RepetitiveInterval = 140,
41
42 // for schedule
43 WhiteIntervalList = 141,
44 BlackIntervalList = 142,
45 Schedule = 143
Prashanthc0029b62015-04-27 14:00:08 -070046};
47
48enum AlgorithmTypeValue {
Prashanth Swaminathand5b3eae2015-07-09 15:37:05 -070049 AlgorithmAesEcb = 0,
50 AlgorithmAesCbc = 1,
51 AlgorithmRsaPkcs = 2,
52 AlgorithmRsaOaep = 3
Prashanthc0029b62015-04-27 14:00:08 -070053};
54
55} // namespace tlv
Alexander Afanasyev9091d832018-04-18 17:21:08 -040056} // namespace nac
Prashanthc0029b62015-04-27 14:00:08 -070057} // namespace ndn
58
Alexander Afanasyev9091d832018-04-18 17:21:08 -040059#endif // NDN_NAC_TLV_HPP