Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame^] | 1 | /** |
| 2 | * @author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 3 | * @author: Jeff Thompson |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NDN_SECURITY_COMMON_HPP |
| 8 | #define NDN_SECURITY_COMMON_HPP |
| 9 | |
| 10 | namespace ndn { |
| 11 | |
| 12 | enum KeyType { |
| 13 | KEY_TYPE_RSA, |
| 14 | // KEY_TYPE_DSA, |
| 15 | KEY_TYPE_AES, |
| 16 | // KEY_TYPE_DES, |
| 17 | // KEY_TYPE_RC4, |
| 18 | // KEY_TYPE_RC2 |
| 19 | }; |
| 20 | |
| 21 | enum KeyClass { |
| 22 | KEY_CLASS_PUBLIC, |
| 23 | KEY_CLASS_PRIVATE, |
| 24 | KEY_CLASS_SYMMETRIC |
| 25 | }; |
| 26 | |
| 27 | enum KeyFormat { |
| 28 | KEY_FORMAT_PUBLIC_OPENSSL, |
| 29 | }; |
| 30 | |
| 31 | enum DigestAlgorithm { |
| 32 | // DIGEST_ALGORITHM_MD2, |
| 33 | // DIGEST_ALGORITHM_MD5, |
| 34 | // DIGEST_ALGORITHM_SHA1, |
| 35 | DIGEST_ALGORITHM_SHA256 |
| 36 | }; |
| 37 | |
| 38 | enum EncryptMode { |
| 39 | ENCRYPTION_MODE_DEFAULT, |
| 40 | ENCRYPTION_MODE_CFB_AES, |
| 41 | // ENCRYPTION_MODE_CBC_AES |
| 42 | }; |
| 43 | |
| 44 | } |
| 45 | |
| 46 | #endif |