blob: 4175da925476e906f8aaaf962c3517127eda0606 [file] [log] [blame]
Alexander Afanasyevdfa52c42014-04-24 21:10:11 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
Jeff Thompson7b79eb62013-09-12 18:48:29 -07002/**
Alexander Afanasyevdfa52c42014-04-24 21:10:11 -07003 * Copyright (c) 2013-2014, Regents of the University of California.
4 * All rights reserved.
5 *
6 * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
7 * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
8 *
9 * This file licensed under New BSD License. See COPYING for detailed information about
10 * ndn-cxx library copyright, permissions, and redistribution restrictions.
Jeff Thompson7b79eb62013-09-12 18:48:29 -070011 */
12
13#ifndef NDN_SECURITY_COMMON_HPP
Jeff Thompsone589c3f2013-10-12 17:30:50 -070014#define NDN_SECURITY_COMMON_HPP
Jeff Thompson7b79eb62013-09-12 18:48:29 -070015
16namespace ndn {
17
18enum KeyType {
19 KEY_TYPE_RSA,
20 // KEY_TYPE_DSA,
Alexander Afanasyevb78bc4d2014-04-09 21:20:52 -070021 KEY_TYPE_AES
Jeff Thompson7b79eb62013-09-12 18:48:29 -070022 // KEY_TYPE_DES,
23 // KEY_TYPE_RC4,
24 // KEY_TYPE_RC2
25};
26
27enum KeyClass {
28 KEY_CLASS_PUBLIC,
29 KEY_CLASS_PRIVATE,
30 KEY_CLASS_SYMMETRIC
31};
Alexander Afanasyevb78bc4d2014-04-09 21:20:52 -070032
Jeff Thompson7b79eb62013-09-12 18:48:29 -070033enum DigestAlgorithm {
34 // DIGEST_ALGORITHM_MD2,
35 // DIGEST_ALGORITHM_MD5,
36 // DIGEST_ALGORITHM_SHA1,
37 DIGEST_ALGORITHM_SHA256
38};
39
40enum EncryptMode {
Jeff Thompson79a2d5d2013-09-27 14:32:23 -070041 ENCRYPT_MODE_DEFAULT,
Alexander Afanasyevb78bc4d2014-04-09 21:20:52 -070042 ENCRYPT_MODE_CFB_AES
Jeff Thompson79a2d5d2013-09-27 14:32:23 -070043 // ENCRYPT_MODE_CBC_AES
Jeff Thompson7b79eb62013-09-12 18:48:29 -070044};
45
Yingdi Yu2e57a582014-02-20 23:34:43 -080046enum AclType {
47 ACL_TYPE_PUBLIC,
Alexander Afanasyevb78bc4d2014-04-09 21:20:52 -070048 ACL_TYPE_PRIVATE
Yingdi Yu2e57a582014-02-20 23:34:43 -080049};
50
Jeff Thompson7b79eb62013-09-12 18:48:29 -070051}
52
53#endif