Alexander Afanasyev | dfa52c4 | 2014-04-24 21:10:11 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 2 | /** |
Alexander Afanasyev | dfa52c4 | 2014-04-24 21:10:11 -0700 | [diff] [blame] | 3 | * Copyright (c) 2013-2014, Regents of the University of California. |
| 4 | * All rights reserved. |
| 5 | * |
| 6 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
| 7 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
| 8 | * |
| 9 | * This file licensed under New BSD License. See COPYING for detailed information about |
| 10 | * ndn-cxx library copyright, permissions, and redistribution restrictions. |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef NDN_SECURITY_COMMON_HPP |
Jeff Thompson | e589c3f | 2013-10-12 17:30:50 -0700 | [diff] [blame] | 14 | #define NDN_SECURITY_COMMON_HPP |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 15 | |
| 16 | namespace ndn { |
| 17 | |
| 18 | enum KeyType { |
| 19 | KEY_TYPE_RSA, |
| 20 | // KEY_TYPE_DSA, |
Alexander Afanasyev | b78bc4d | 2014-04-09 21:20:52 -0700 | [diff] [blame] | 21 | KEY_TYPE_AES |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 22 | // KEY_TYPE_DES, |
| 23 | // KEY_TYPE_RC4, |
| 24 | // KEY_TYPE_RC2 |
| 25 | }; |
| 26 | |
| 27 | enum KeyClass { |
| 28 | KEY_CLASS_PUBLIC, |
| 29 | KEY_CLASS_PRIVATE, |
| 30 | KEY_CLASS_SYMMETRIC |
| 31 | }; |
Alexander Afanasyev | b78bc4d | 2014-04-09 21:20:52 -0700 | [diff] [blame] | 32 | |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 33 | enum DigestAlgorithm { |
| 34 | // DIGEST_ALGORITHM_MD2, |
| 35 | // DIGEST_ALGORITHM_MD5, |
| 36 | // DIGEST_ALGORITHM_SHA1, |
| 37 | DIGEST_ALGORITHM_SHA256 |
| 38 | }; |
| 39 | |
| 40 | enum EncryptMode { |
Jeff Thompson | 79a2d5d | 2013-09-27 14:32:23 -0700 | [diff] [blame] | 41 | ENCRYPT_MODE_DEFAULT, |
Alexander Afanasyev | b78bc4d | 2014-04-09 21:20:52 -0700 | [diff] [blame] | 42 | ENCRYPT_MODE_CFB_AES |
Jeff Thompson | 79a2d5d | 2013-09-27 14:32:23 -0700 | [diff] [blame] | 43 | // ENCRYPT_MODE_CBC_AES |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 44 | }; |
| 45 | |
Yingdi Yu | 2e57a58 | 2014-02-20 23:34:43 -0800 | [diff] [blame] | 46 | enum AclType { |
| 47 | ACL_TYPE_PUBLIC, |
Alexander Afanasyev | b78bc4d | 2014-04-09 21:20:52 -0700 | [diff] [blame] | 48 | ACL_TYPE_PRIVATE |
Yingdi Yu | 2e57a58 | 2014-02-20 23:34:43 -0800 | [diff] [blame] | 49 | }; |
| 50 | |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | #endif |