Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 1 | /** |
Jeff Thompson | 7687dc0 | 2013-09-13 11:54:07 -0700 | [diff] [blame] | 2 | * Copyright (C) 2013 Regents of the University of California. |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 3 | * @author: Yingdi Yu <yingdi@cs.ucla.edu> |
Jeff Thompson | 7687dc0 | 2013-09-13 11:54:07 -0700 | [diff] [blame] | 4 | * @author: Jeff Thompson <jefft0@remap.ucla.edu> |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 5 | * See COPYING for copyright and distribution information. |
| 6 | */ |
| 7 | |
| 8 | #ifndef NDN_SECURITY_COMMON_HPP |
Jeff Thompson | e589c3f | 2013-10-12 17:30:50 -0700 | [diff] [blame] | 9 | #define NDN_SECURITY_COMMON_HPP |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 10 | |
| 11 | namespace ndn { |
| 12 | |
| 13 | enum KeyType { |
| 14 | KEY_TYPE_RSA, |
| 15 | // KEY_TYPE_DSA, |
| 16 | KEY_TYPE_AES, |
| 17 | // KEY_TYPE_DES, |
| 18 | // KEY_TYPE_RC4, |
| 19 | // KEY_TYPE_RC2 |
| 20 | }; |
| 21 | |
| 22 | enum KeyClass { |
| 23 | KEY_CLASS_PUBLIC, |
| 24 | KEY_CLASS_PRIVATE, |
| 25 | KEY_CLASS_SYMMETRIC |
| 26 | }; |
| 27 | |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 28 | enum DigestAlgorithm { |
| 29 | // DIGEST_ALGORITHM_MD2, |
| 30 | // DIGEST_ALGORITHM_MD5, |
| 31 | // DIGEST_ALGORITHM_SHA1, |
| 32 | DIGEST_ALGORITHM_SHA256 |
| 33 | }; |
| 34 | |
| 35 | enum EncryptMode { |
Jeff Thompson | 79a2d5d | 2013-09-27 14:32:23 -0700 | [diff] [blame] | 36 | ENCRYPT_MODE_DEFAULT, |
| 37 | ENCRYPT_MODE_CFB_AES, |
| 38 | // ENCRYPT_MODE_CBC_AES |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 39 | }; |
| 40 | |
Yingdi Yu | 2e57a58 | 2014-02-20 23:34:43 -0800 | [diff] [blame] | 41 | enum AclType { |
| 42 | ACL_TYPE_PUBLIC, |
| 43 | ACL_TYPE_PRIVATE, |
| 44 | }; |
| 45 | |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | #endif |