Enable build with iniparser v 3.1
[platform/framework/native/appfw.git] / inc / FSecCryptoTypes.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file                FSecCryptoTypes.h
19  * @brief               This is the header file that defines the different enumerations.
20  *
21  * This header file defines the different enumerations that can be used for cryptography.
22  */
23 #ifndef _FSEC_CRYPTO_TYPES_H_
24 #define _FSEC_CRYPTO_TYPES_H_
25
26
27 namespace Tizen { namespace Security { namespace Crypto
28 {
29
30 /**
31  * @enum        CipherOperation
32  *
33  * Defines the cipher operation.
34  *
35  * @since       2.0
36  */
37
38 enum CipherOperation
39 {
40         CIPHER_ENCRYPT = 0,             /**< The encrypt mode */
41         CIPHER_DECRYPT = 1,             /**< The decrypt mode */
42         CIPHER_WRAP = 2,                /**< The wrap mode */
43         CIPHER_UNWRAP = 3               /**< The unwrap mode */
44 };  // CipherOperation
45
46 } } } //Tizen::Security:Crypto
47
48
49 namespace Tizen { namespace Security
50 {
51
52 /**
53  * @enum        KeyParameterType
54  *
55  * Defines the type of key parameters for asymmetric algorithms.
56  *
57  * @since       2.0
58  */
59 enum KeyParameterType
60 {
61         KEY_PARAMETER_DH_P = 0,                             /**< The DH param P */
62         KEY_PARAMETER_DH_G = 1,                             /**< The DH param G */
63         KEY_PARAMETER_DH_PRIVATE_KEY_SIZE = 2,              /**< The DH private key size */
64         KEY_PARAMETER_KEA_P = 3,                            /**< The KEA param P */
65         KEY_PARAMETER_KEA_G = 4,                            /**< The KEA param G */
66         KEY_PARAMETER_KEA_PRIVATE_KEY_SIZE = 5              /**< The KEA private key size */
67 }; //KeyParameterType
68
69 } } //Tizen::Security
70
71 #endif // _FSEC_CRYPTO_TYPES_H_