blob: 67a2315accfc13b55c7d84879f51bbcd2d3b5353 [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
Jeff Thompsone589c3f2013-10-12 17:30:50 -07009#define NDN_SECURITY_COMMON_HPP
Jeff Thompson7b79eb62013-09-12 18:48:29 -070010
11namespace ndn {
12
13enum KeyType {
14 KEY_TYPE_RSA,
15 // KEY_TYPE_DSA,
Alexander Afanasyevb78bc4d2014-04-09 21:20:52 -070016 KEY_TYPE_AES
Jeff Thompson7b79eb62013-09-12 18:48:29 -070017 // 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};
Alexander Afanasyevb78bc4d2014-04-09 21:20:52 -070027
Jeff Thompson7b79eb62013-09-12 18:48:29 -070028enum DigestAlgorithm {
29 // DIGEST_ALGORITHM_MD2,
30 // DIGEST_ALGORITHM_MD5,
31 // DIGEST_ALGORITHM_SHA1,
32 DIGEST_ALGORITHM_SHA256
33};
34
35enum EncryptMode {
Jeff Thompson79a2d5d2013-09-27 14:32:23 -070036 ENCRYPT_MODE_DEFAULT,
Alexander Afanasyevb78bc4d2014-04-09 21:20:52 -070037 ENCRYPT_MODE_CFB_AES
Jeff Thompson79a2d5d2013-09-27 14:32:23 -070038 // ENCRYPT_MODE_CBC_AES
Jeff Thompson7b79eb62013-09-12 18:48:29 -070039};
40
Yingdi Yu2e57a582014-02-20 23:34:43 -080041enum AclType {
42 ACL_TYPE_PUBLIC,
Alexander Afanasyevb78bc4d2014-04-09 21:20:52 -070043 ACL_TYPE_PRIVATE
Yingdi Yu2e57a582014-02-20 23:34:43 -080044};
45
Jeff Thompson7b79eb62013-09-12 18:48:29 -070046}
47
48#endif