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 |
| 9 | #define NDN_SECURITY_COMMON_HPP |
| 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 | |
| 28 | enum KeyFormat { |
| 29 | KEY_FORMAT_PUBLIC_OPENSSL, |
| 30 | }; |
| 31 | |
| 32 | enum DigestAlgorithm { |
| 33 | // DIGEST_ALGORITHM_MD2, |
| 34 | // DIGEST_ALGORITHM_MD5, |
| 35 | // DIGEST_ALGORITHM_SHA1, |
| 36 | DIGEST_ALGORITHM_SHA256 |
| 37 | }; |
| 38 | |
| 39 | enum EncryptMode { |
Jeff Thompson | 79a2d5d | 2013-09-27 14:32:23 -0700 | [diff] [blame] | 40 | ENCRYPT_MODE_DEFAULT, |
| 41 | ENCRYPT_MODE_CFB_AES, |
| 42 | // ENCRYPT_MODE_CBC_AES |
Jeff Thompson | 7b79eb6 | 2013-09-12 18:48:29 -0700 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | } |
| 46 | |
| 47 | #endif |