Added new method to the NotificationManager Interface
[platform/framework/native/appfw.git] / inc / FSecPkcsPkcs05PbMacParameters.h
index dc073cd..d164a96 100755 (executable)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -35,17 +34,16 @@ namespace Tizen { namespace Security { namespace Pkcs
 
 /**
  * @class              Pkcs05PbMacParameters
- * @brief              This class implements the functionalities specified by the PKCS05 MAC scheme.
+ * @brief              This class provides methods for the functionalities specified by the PKCS05 MAC scheme.
  *
  * @since              2.1
  *
  * The %Pkcs05PbMacParameters class implements the functionalities specified by the PKCS05 MAC scheme.
- *                                     PBMAC1 combines a password-based key derivation function, which will be PBKDF2
- *                                     for this version of PKCS #5, with an underlying message authentication
- *                                     scheme. The key length and any other parameters for
- *                                     the underlying message authentication scheme depend on the scheme.
+ * PBMAC1 combines a password-based key derivation function, which will be PBKDF2 for this version of PKCS #5, with an underlying 
+ * message authentication scheme. The key length and any other parameters for the underlying message authentication scheme depend 
+ * on the scheme.
  *
- *                             This is defined in ASN.1 as demonstrated in the following code:
+ * This is defined in ASN.1 as demonstrated in the following code:
  * @code
  *                             PBMAC1-params ::= SEQUENCE {
  *                             keyDerivationFunc AlgorithmIdentifier {{PBMAC1-KDFs}},
@@ -76,14 +74,14 @@ public:
        virtual ~Pkcs05PbMacParameters(void);
 
        /**
-        * Initializes this instance of %Pkcs05PbMacParameters with the Tizen::Base::ByteBuffer instance that contains Password Based Message  @n
+        * Initializes this instance of %Pkcs05PbMacParameters with the Tizen::Base::ByteBuffer instance that contains Password Based Message 
         * Authentication Cryptography parameters structure(PBMAC1) in ASN.1 DER format.
         *
         * @since               2.1
         *
         * @return              An error code
-        * @param[in]   encodedData                             DER encoded Tizen::Base::ByteBuffer contains %Pkcs05PbMacParameters.
-        * @exception   E_SUCCESS                                       The method is successful.
+        * @param[in]   encodedData                             The DER encoded Tizen::Base::ByteBuffer containing %Pkcs05PbMacParameters.
+        * @exception   E_SUCCESS                               The method is successful.
         * @exception   E_INVALID_ARG                   The specified input parameter is invalid.
         */
        result Construct(const Tizen::Base::ByteBuffer& encodedData);
@@ -94,21 +92,21 @@ public:
         * @since               2.1
         *
         * @return              An error code
-        * @param[in]   keyDerivationFunc               An instance of AlgorithmIdentifier, holding key derivation function
-        * @param[in]   messageAuthScheme               An instance of AlgorithmIdentifier, holding message authentication scheme
-        * @exception   E_SUCCESS                                               The method is successful.
-        * @exception   E_INVALID_ARG                           The specified input parameter is invalid.
+        * @param[in]   keyDerivationFunc               An instance of AlgorithmIdentifier holding key derivation function
+        * @param[in]   messageAuthScheme               An instance of AlgorithmIdentifier holding message authentication scheme
+        * @exception   E_SUCCESS                               The method is successful.
+        * @exception   E_INVALID_ARG                   The specified input parameter is invalid.
         */
        result Construct(const AlgorithmIdentifier& keyDerivationFunc, const AlgorithmIdentifier& messageAuthScheme);
 
        /**
-        * Gets the encoded form of the %Pkcs05PbMacParameters. @n
+        * Gets the encoded form of the %Pkcs05PbMacParameters instance. @n
         * It is assumed that each %Pkcs05PbMacParameters will have only a single form of encoding, for example ASN.1 DER.
         *
         * @since               2.1
         *
         * @return              A pointer to the Tizen::Base::ByteBuffer class that contains the output, @n
-        *                                              else @c null if an error occurs.
+        *                              else @c null if an error occurs
         * @exception   E_SUCCESS                               The method is successful.
         * @exception   E_SYSTEM                                The method cannot proceed due to a severe system error.
         * @remarks             The specific error code can be accessed using the GetLastResult() method.
@@ -116,44 +114,44 @@ public:
        Tizen::Base::ByteBuffer* GetEncodedDataN(void) const;
 
        /**
-        * Gets the reference to the AlgorithmIdentifier instance that identifies the underlying key derivation function. @n
+        * Gets a reference to the AlgorithmIdentifier instance that identifies the underlying key derivation function. @n
         * It will be an algorithm ID with an OID in the set PBES2-KDFs, which for this version of PKCS #5 will consist of ID-PBKDF2.
         *
         * @since               2.1
         *
-        * @return              A reference to AlgorithmIdentifier holding the underlying key derivation function.
+        * @return              A reference to the AlgorithmIdentifier instance holding the underlying key derivation function.
         * @remarks             The specific error code can be accessed using the GetLastResult() method.
         */
        const AlgorithmIdentifier& GetKeyDerivationAlgorithm(void) const;
 
        /**
-        * Gets the algorithm identifier that identifies the underlying
-        * MAC algorithm. @n It shall be an OID like OID_HMAC_SHA1 or OID_HMAC_SHA2_224, and so on.
+        * Gets the algorithm identifier that identifies the underlying MAC algorithm. @n 
+        * It shall be an OID like ::OID_HMAC_SHA1 or ::OID_HMAC_SHA2_224, and so on.
         *
         * @since               2.1
         *
-        * @return              A reference to AlgorithmIdentifier holding the underlying MAC algorithm
+        * @return              A reference to the AlgorithmIdentifier instance holding the underlying MAC algorithm
         * @remarks             The specific error code can be accessed using the GetLastResult() method.
         */
        const AlgorithmIdentifier& GetMacAlgorithm(void) const;
 
        /**
         * Gets the AlgorithmParameters that identifies the underlying Parameters such as PbKdf2, PbEs2, PbMac1. @n
-        * For this class %AlgorithmParameters will be of PbMac1 type.
+        * For this class, %AlgorithmParameters will be of PbMac1 type.
         *
         * @since               2.1
         *
-        * @return              A pointer to IAlgorithmParameters containing the algorithm identifier of underlying pseudo random function
+        * @return              A pointer to the IAlgorithmParameters instance containing the algorithm identifier of underlying pseudo random function
         * @remarks             The specific error code can be accessed using the GetLastResult() method.
         */
        virtual IAlgorithmParameters* CloneN(void) const;
 
        /**
-        * Get the PkcsAlgorithmParameterType value.
+        * Gets the PkcsAlgorithmParameterType value.
         *
         * @since               2.1
         *
-        * @return              PkcsAlgorithmParameterType holding enum value @c PKCS_ALGO_PARAM_TYPE_PKCS05_MAC for PBMAC parameters
+        * @return              An instance of PkcsAlgorithmParameterType holding the enum value @c PKCS_ALGO_PARAM_TYPE_PKCS05_MAC for PBMAC parameters
         */
        virtual PkcsAlgorithmParameterType GetType(void) const;
 
@@ -166,7 +164,7 @@ public:
         *              else @c false
         * @param[in]   rhs                                             An instance of %Pkcs05PbMacParameters
         * @exception   E_SUCCESS                               The method is successful.
-        * @exception   E_INVALID_ARG                           The specified input parameter is invalid.
+        * @exception   E_INVALID_ARG                   The specified input parameter is invalid.
         * @remarks             The specific error code can be accessed using the GetLastResult() method.
        */
        virtual bool Equals(const Tizen::Base::Object& rhs) const;