2 // Copyright (c) 2013 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 FSecPkcsIAlgorithmParameters.h
19 * @brief This is the header file for the %IAlgorithmParameters interface.
21 * This header file contains the declarations of the %IAlgorithmParameters interface.
24 #ifndef _FSEC_PKCS_IALGORITHM_PARAMETERS_H_
25 #define _FSEC_PKCS_IALGORITHM_PARAMETERS_H_
27 #include <FSecPkcsTypes.h>
29 namespace Tizen { namespace Security { namespace Pkcs
33 * @interface IAlgorithmParameters
34 * @brief This interface is an interface class for cryptographic algorithm parameters such as IV. It provides the generic
35 * functionalities that must be supported by all the derived algorithm parameters such PbKdf2Parameters, PbEs2Parameters.
39 * The %IAlgorithmParameters interface is an interface class for cryptographic algorithm parameters such as IV. It provides the generic
40 * functionalities that must be supported by all derived algorithm parameters such PbKdf2Parameters, PbEs2Parameters.
41 * This is an abstract class and hence, object of this class cannot be instantiated.
45 class _OSP_EXPORT_ IAlgorithmParameters
49 * This polymorphic destructor should be overridden if required. @n
50 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
54 virtual ~IAlgorithmParameters(void) {}
57 * Gets the copy of the parameters of the specified algorithm type.
61 * @return A pointer to AlgorithmParameters, containing the instance of algorithm parameter , @n
62 * else @c null if an error occurs
63 * @remarks The specific error code can be accessed using the GetLastResult() method.
65 virtual IAlgorithmParameters* CloneN(void) const = 0;
68 * Gets the PKCS algorithm parameter type enumerated value.
72 * @return The type containing the enumerated value of PkcsAlgorithmParameterType
75 virtual PkcsAlgorithmParameterType GetType(void) const = 0;
80 // This method is for internal use only. Using this method can cause behavioral, security-related,
81 // and consistency-related issues in the application.
83 // This method is reserved and may change its name at any time without prior notice.
87 virtual void IAlgorithmParameters_Reserved1(void) {}
90 // This method is for internal use only. Using this method can cause behavioral, security-related,
91 // and consistency-related issues in the application.
93 // This method is reserved and may change its name at any time without prior notice.
97 virtual void IAlgorithmParameters_Reserved2(void) {}
100 // This method is for internal use only. Using this method can cause behavioral, security-related,
101 // and consistency-related issues in the application.
103 // This method is reserved and may change its name at any time without prior notice.
107 virtual void IAlgorithmParameters_Reserved3(void) {}
109 }; // IAlgorithmParameters
111 } } } // Tizen::Security::Pkcs
113 #endif // _FSEC_PKCS_IAGORITHM_PARAMETERS_H_