blob: 2f2e660d7d479607f5a3ec3d5505dd33469c9bb3 [file] [log] [blame]
Jeff Thompson7b79eb62013-09-12 18:48:29 -07001/**
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
10namespace ndn {
11
12enum 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
21enum KeyClass {
22 KEY_CLASS_PUBLIC,
23 KEY_CLASS_PRIVATE,
24 KEY_CLASS_SYMMETRIC
25};
26
27enum KeyFormat {
28 KEY_FORMAT_PUBLIC_OPENSSL,
29};
30
31enum DigestAlgorithm {
32 // DIGEST_ALGORITHM_MD2,
33 // DIGEST_ALGORITHM_MD5,
34 // DIGEST_ALGORITHM_SHA1,
35 DIGEST_ALGORITHM_SHA256
36};
37
38enum EncryptMode {
39 ENCRYPTION_MODE_DEFAULT,
40 ENCRYPTION_MODE_CFB_AES,
41 // ENCRYPTION_MODE_CBC_AES
42};
43
44}
45
46#endif