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