2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FSecCryptoTypes.h
19 * @brief This is the header file that defines the different enumerations.
21 * This header file defines the different enumerations that can be used for cryptography.
23 #ifndef _FSEC_CRYPTO_TYPES_H_
24 #define _FSEC_CRYPTO_TYPES_H_
27 namespace Tizen { namespace Security { namespace Crypto
31 * @enum CipherOperation
33 * Defines the cipher operation.
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 */
46 } } } //Tizen::Security:Crypto
49 namespace Tizen { namespace Security
53 * @enum KeyParameterType
55 * Defines the type of key parameters for asymmetric algorithms.
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 */
71 #endif // _FSEC_CRYPTO_TYPES_H_