Prashanth | c0029b6 | 2015-04-27 14:00:08 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Alexander Afanasyev | 9091d83 | 2018-04-18 17:21:08 -0400 | [diff] [blame^] | 3 | * 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 | */ |
Prashanth | c0029b6 | 2015-04-27 14:00:08 -0700 | [diff] [blame] | 19 | |
Alexander Afanasyev | 9091d83 | 2018-04-18 17:21:08 -0400 | [diff] [blame^] | 20 | #ifndef NDN_NAC_TLV_HPP |
| 21 | #define NDN_NAC_TLV_HPP |
Prashanth | c0029b6 | 2015-04-27 14:00:08 -0700 | [diff] [blame] | 22 | |
| 23 | namespace ndn { |
Alexander Afanasyev | 9091d83 | 2018-04-18 17:21:08 -0400 | [diff] [blame^] | 24 | namespace nac { |
Prashanth | c0029b6 | 2015-04-27 14:00:08 -0700 | [diff] [blame] | 25 | namespace tlv { |
| 26 | |
| 27 | enum { |
| 28 | EncryptedContent = 130, |
| 29 | EncryptionAlgorithm = 131, |
Prashanth Swaminathan | b1b9596 | 2015-07-06 13:13:08 -0700 | [diff] [blame] | 30 | EncryptedPayload = 132, |
Zhiyi Zhang | cea58d5 | 2015-08-26 10:19:56 -0700 | [diff] [blame] | 31 | 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 |
Prashanth | c0029b6 | 2015-04-27 14:00:08 -0700 | [diff] [blame] | 46 | }; |
| 47 | |
| 48 | enum AlgorithmTypeValue { |
Prashanth Swaminathan | d5b3eae | 2015-07-09 15:37:05 -0700 | [diff] [blame] | 49 | AlgorithmAesEcb = 0, |
| 50 | AlgorithmAesCbc = 1, |
| 51 | AlgorithmRsaPkcs = 2, |
| 52 | AlgorithmRsaOaep = 3 |
Prashanth | c0029b6 | 2015-04-27 14:00:08 -0700 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | } // namespace tlv |
Alexander Afanasyev | 9091d83 | 2018-04-18 17:21:08 -0400 | [diff] [blame^] | 56 | } // namespace nac |
Prashanth | c0029b6 | 2015-04-27 14:00:08 -0700 | [diff] [blame] | 57 | } // namespace ndn |
| 58 | |
Alexander Afanasyev | 9091d83 | 2018-04-18 17:21:08 -0400 | [diff] [blame^] | 59 | #endif // NDN_NAC_TLV_HPP |