blob: 1222480ca230a8e3260c5d2ada22cc2a4843b50b [file] [log] [blame]
Jeff Thompson7b79eb62013-09-12 18:48:29 -07001/**
Jeff Thompson7687dc02013-09-13 11:54:07 -07002 * Copyright (C) 2013 Regents of the University of California.
Jeff Thompson7b79eb62013-09-12 18:48:29 -07003 * @author: Yingdi Yu <yingdi@cs.ucla.edu>
Jeff Thompson7687dc02013-09-13 11:54:07 -07004 * @author: Jeff Thompson <jefft0@remap.ucla.edu>
Jeff Thompson7b79eb62013-09-12 18:48:29 -07005 * See COPYING for copyright and distribution information.
6 */
7
8#ifndef NDN_SECURITY_COMMON_HPP
9#define NDN_SECURITY_COMMON_HPP
10
11namespace ndn {
12
13enum 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
22enum KeyClass {
23 KEY_CLASS_PUBLIC,
24 KEY_CLASS_PRIVATE,
25 KEY_CLASS_SYMMETRIC
26};
27
28enum KeyFormat {
29 KEY_FORMAT_PUBLIC_OPENSSL,
30};
31
32enum DigestAlgorithm {
33 // DIGEST_ALGORITHM_MD2,
34 // DIGEST_ALGORITHM_MD5,
35 // DIGEST_ALGORITHM_SHA1,
36 DIGEST_ALGORITHM_SHA256
37};
38
39enum EncryptMode {
Jeff Thompson79a2d5d2013-09-27 14:32:23 -070040 ENCRYPT_MODE_DEFAULT,
41 ENCRYPT_MODE_CFB_AES,
42 // ENCRYPT_MODE_CBC_AES
Jeff Thompson7b79eb62013-09-12 18:48:29 -070043};
44
45}
46
47#endif