2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FSecCryptoTypes.h
20 * @brief This is the header file that defines the different enumerations.
22 * This header file defines the different enumerations that can be used for cryptography.
24 #ifndef _FSEC_CRYPTO_TYPES_H_
25 #define _FSEC_CRYPTO_TYPES_H_
28 namespace Tizen { namespace Security { namespace Crypto
32 * @enum CipherOperation
34 * Defines the cipher operation.
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 */
47 } } } //Tizen::Security:Crypto
50 namespace Tizen { namespace Security
54 * @enum KeyParameterType
56 * Defines the type of key parameters for asymmetric algorithms.
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 */
72 #endif // _FSEC_CRYPTO_TYPES_H_