Add LICENSE and apply boilerplates to sources 66/150066/1
authorLukasz Kostyra <l.kostyra@samsung.com>
Wed, 13 Sep 2017 11:59:11 +0000 (13:59 +0200)
committerLukasz Kostyra <l.kostyra@samsung.com>
Thu, 14 Sep 2017 07:30:00 +0000 (09:30 +0200)
Change-Id: I1d96551efc5a4d3cb5f3a223719851ca166789da

228 files changed:
LICENSE [new file with mode: 0644]
TEECLib/inc/teec_connection.h
TEECLib/src/teec_api.c
TEECLib/src/teec_connection.c
TEEStub/PropertyAccess/ClientProperty.cpp
TEEStub/PropertyAccess/ClientProperty.h
TEEStub/PropertyAccess/Property.h
TEEStub/PropertyAccess/PropertyApi.cpp
TEEStub/PropertyAccess/PropertyApi.h
TEEStub/PropertyAccess/PropertyUtility.cpp
TEEStub/PropertyAccess/PropertyUtility.h
TEEStub/PropertyAccess/TAProperty.cpp
TEEStub/PropertyAccess/TAProperty.h
TEEStub/PropertyAccess/TEEProperty.cpp
TEEStub/PropertyAccess/TEEProperty.h
TEEStub/TACommands/CommandBase.cpp
TEEStub/TACommands/CommandBase.h
TEEStub/TACommands/CommandCloseSession.cpp
TEEStub/TACommands/CommandCloseSession.h
TEEStub/TACommands/CommandCreateEntryPoint.cpp
TEEStub/TACommands/CommandCreateEntryPoint.h
TEEStub/TACommands/CommandDestroyEntryPoint.cpp
TEEStub/TACommands/CommandDestroyEntryPoint.h
TEEStub/TACommands/CommandInvoke.cpp
TEEStub/TACommands/CommandInvoke.h
TEEStub/TACommands/CommandOpenSession.cpp
TEEStub/TACommands/CommandOpenSession.h
TEEStub/TACommands/CommandRequestCancel.cpp
TEEStub/TACommands/CommandRequestCancel.h
TEEStub/TACommands/MakeCommand.cpp
TEEStub/TACommands/MakeCommand.h
TEEStub/TACommands/SharedMemoryMap.cpp
TEEStub/TACommands/SharedMemoryMap.h
TEEStub/TEEStubServer/ConnectionSession.cpp
TEEStub/TEEStubServer/ConnectionSession.h
TEEStub/TEEStubServer/TADebug.cpp
TEEStub/TEEStubServer/TEEStubServer.cpp
TEEStub/TEEStubServer/TEEStubServer.h
TEEStub/TaskStrategy/SessionState.cpp
TEEStub/TaskStrategy/SessionState.h
TEEStub/TaskStrategy/TaskQueuedStrategy.cpp
TEEStub/TaskStrategy/TaskQueuedStrategy.h
TEEStub/TaskStrategy/TaskStrategy.cpp
TEEStub/TaskStrategy/TaskStrategy.h
TEEStub/teestubmain.cpp
cmake/CMakeLists.txt
cmake/TEFSimulatorDevkit.cmake
include/include/config.h
include/include/debug.h
include/include/log_level.h
include/include/tee_command.h
include/include/tee_internal_api.h
include/include/tee_sim_command.h
include/include/teec_data.h
include/include/teestub_command_data.h
log/log.c
log/log.h
osal/OsaCommon.c
osal/OsaIpc.c
osal/OsaLinuxUser.h
osal/OsaQueue.c
osal/OsaSem.c
osal/OsaSignal.c
osal/OsaTask.c
osal/Osal.h
simulatordaemon/inc/ClientCommands/CommandBase.h
simulatordaemon/inc/ClientCommands/CommandCloseSession.h
simulatordaemon/inc/ClientCommands/CommandCloseTASession.h
simulatordaemon/inc/ClientCommands/CommandFinContext.h
simulatordaemon/inc/ClientCommands/CommandInitContext.h
simulatordaemon/inc/ClientCommands/CommandInvokeCommand.h
simulatordaemon/inc/ClientCommands/CommandInvokeTACommand.h
simulatordaemon/inc/ClientCommands/CommandOpenSession.h
simulatordaemon/inc/ClientCommands/CommandOpenTASession.h
simulatordaemon/inc/ClientCommands/CommandPanic.h
simulatordaemon/inc/ClientCommands/CommandRegSharedMem.h
simulatordaemon/inc/ClientCommands/CommandRelSharedMem.h
simulatordaemon/inc/ClientCommands/CommandReqCancellation.h
simulatordaemon/inc/ClientCommands/MakeCommand.h
simulatordaemon/inc/ConnectionSession.h
simulatordaemon/inc/IConnectionSession.h
simulatordaemon/inc/ISession.h
simulatordaemon/inc/ITAInstance.h
simulatordaemon/inc/ResponseCommands/ResCommandBase.h
simulatordaemon/inc/ResponseCommands/ResCommandCloseSession.h
simulatordaemon/inc/ResponseCommands/ResCommandInvokeCommand.h
simulatordaemon/inc/ResponseCommands/ResCommandOpenSession.h
simulatordaemon/inc/ResponseCommands/ResCommandReqCancellation.h
simulatordaemon/inc/ResponseCommands/ResMakeCommand.h
simulatordaemon/inc/SecurityContext.h
simulatordaemon/inc/Session.h
simulatordaemon/inc/SimulatorDaemonServer.h
simulatordaemon/inc/TAFactory.h
simulatordaemon/inc/TAInstance.h
simulatordaemon/inc/TEEContext.h
simulatordaemon/inc/ioService.h
simulatordaemon/inc/path.h
simulatordaemon/src/ClientCommands/CommandCloseSession.cpp
simulatordaemon/src/ClientCommands/CommandCloseTASession.cpp
simulatordaemon/src/ClientCommands/CommandFinContext.cpp
simulatordaemon/src/ClientCommands/CommandInitContext.cpp
simulatordaemon/src/ClientCommands/CommandInvokeCommand.cpp
simulatordaemon/src/ClientCommands/CommandInvokeTACommand.cpp
simulatordaemon/src/ClientCommands/CommandOpenSession.cpp
simulatordaemon/src/ClientCommands/CommandOpenTASession.cpp
simulatordaemon/src/ClientCommands/CommandPanic.cpp
simulatordaemon/src/ClientCommands/CommandRegSharedMem.cpp
simulatordaemon/src/ClientCommands/CommandRelSharedMem.cpp
simulatordaemon/src/ClientCommands/CommandReqCancellation.cpp
simulatordaemon/src/ClientCommands/MakeCommand.cpp
simulatordaemon/src/ConnectionSession.cpp
simulatordaemon/src/ResponseCommands/ResCommandCloseSession.cpp
simulatordaemon/src/ResponseCommands/ResCommandInvokeCommand.cpp
simulatordaemon/src/ResponseCommands/ResCommandOpenSession.cpp
simulatordaemon/src/ResponseCommands/ResCommandReqCancellation.cpp
simulatordaemon/src/ResponseCommands/ResMakeCommand.cpp
simulatordaemon/src/SecurityContext.cpp
simulatordaemon/src/Session.cpp
simulatordaemon/src/SimulatorDaemon.cpp
simulatordaemon/src/SimulatorDaemonServer.cpp
simulatordaemon/src/TABinaryManager/Config.h
simulatordaemon/src/TABinaryManager/TABinaryManager.cpp
simulatordaemon/src/TABinaryManager/TABinaryManager.h
simulatordaemon/src/TABinaryManager/TAManifest.cpp
simulatordaemon/src/TABinaryManager/TAManifest.h
simulatordaemon/src/TABinaryManager/TAUnpack.cpp
simulatordaemon/src/TABinaryManager/TAUnpack.h
simulatordaemon/src/TABinaryManager/TestMain.cpp
simulatordaemon/src/TAFactory.cpp
simulatordaemon/src/TAInstance.cpp
simulatordaemon/src/TEEContext.cpp
simulatordaemon/src/ioService.cpp
simulatordaemon/src/scripts/update_uuid_list.sh
ssflib/dep/cryptocore/include/CC_API.h
ssflib/dep/cryptocore/include/CC_Constants.h
ssflib/dep/cryptocore/include/CC_Context.h
ssflib/dep/cryptocore/include/CC_Type.h
ssflib/dep/cryptocore/include/CryptoCore.h
ssflib/dep/cryptocore/include/base/cc_ANSI_x931.h
ssflib/dep/cryptocore/include/base/cc_bignum.h
ssflib/dep/cryptocore/include/base/cc_des.h
ssflib/dep/cryptocore/include/base/cc_ecc.h
ssflib/dep/cryptocore/include/base/cc_fast_math.h
ssflib/dep/cryptocore/include/base/cc_hash.h
ssflib/dep/cryptocore/include/base/cc_md5.h
ssflib/dep/cryptocore/include/base/cc_moo.h
ssflib/dep/cryptocore/include/base/cc_pkcs1_v21.h
ssflib/dep/cryptocore/include/base/cc_rc4.h
ssflib/dep/cryptocore/include/base/cc_sha1.h
ssflib/dep/cryptocore/include/base/cc_sha2.h
ssflib/dep/cryptocore/include/base/cc_snow2.h
ssflib/dep/cryptocore/include/drm_macro.h
ssflib/dep/cryptocore/include/middle/cc_cmac.h
ssflib/dep/cryptocore/include/middle/cc_dh.h
ssflib/dep/cryptocore/include/middle/cc_dsa.h
ssflib/dep/cryptocore/include/middle/cc_ecdh.h
ssflib/dep/cryptocore/include/middle/cc_ecdsa.h
ssflib/dep/cryptocore/include/middle/cc_hmac.h
ssflib/dep/cryptocore/include/middle/cc_rng.h
ssflib/dep/cryptocore/include/middle/cc_rsa.h
ssflib/dep/cryptocore/include/middle/cc_symmetric.h
ssflib/dep/cryptocore/include/middle/cc_tdes.h
ssflib/dep/cryptocore/include/test_self.h
ssflib/dep/cryptocore/source/CC_API.c
ssflib/dep/cryptocore/source/base/cc_ANSI_x931.c
ssflib/dep/cryptocore/source/base/cc_bignum.c
ssflib/dep/cryptocore/source/base/cc_des.c
ssflib/dep/cryptocore/source/base/cc_ecc.c
ssflib/dep/cryptocore/source/base/cc_fast_math.c
ssflib/dep/cryptocore/source/base/cc_hash.c
ssflib/dep/cryptocore/source/base/cc_md5.c
ssflib/dep/cryptocore/source/base/cc_moo.c
ssflib/dep/cryptocore/source/base/cc_pkcs1_v21.c
ssflib/dep/cryptocore/source/base/cc_rc4.c
ssflib/dep/cryptocore/source/base/cc_sha1.c
ssflib/dep/cryptocore/source/base/cc_snow2.c
ssflib/dep/cryptocore/source/middle/cc_cmac.c
ssflib/dep/cryptocore/source/middle/cc_dh.c
ssflib/dep/cryptocore/source/middle/cc_dsa.c
ssflib/dep/cryptocore/source/middle/cc_ecdh.c
ssflib/dep/cryptocore/source/middle/cc_ecdsa.c
ssflib/dep/cryptocore/source/middle/cc_hmac.c
ssflib/dep/cryptocore/source/middle/cc_rng.c
ssflib/dep/cryptocore/source/middle/cc_rsa.c
ssflib/dep/cryptocore/source/middle/cc_symmetric.c
ssflib/dep/cryptocore/source/middle/cc_tdes.c
ssflib/dep/swdss/include/file_op.h
ssflib/dep/swdss/include/secure_file.h
ssflib/dep/swdss/include/slog.h
ssflib/dep/swdss/include/ss_api.h
ssflib/dep/swdss/include/ss_crypto.h
ssflib/dep/swdss/include/ss_misc.h
ssflib/dep/swdss/include/ss_temp_store.h
ssflib/dep/swdss/include/ss_types.h
ssflib/dep/swdss/source/file_op.cpp
ssflib/dep/swdss/source/secure_file.cpp
ssflib/dep/swdss/source/ss_api.cpp
ssflib/dep/swdss/source/ss_crypto.cpp
ssflib/dep/swdss/source/ss_misc.cpp
ssflib/dep/swdss/source/ss_temp_store.cpp
ssflib/dep/time/ssf_time.cpp
ssflib/dep/uci/include/uci_aes_xcbc_mac.h
ssflib/dep/uci/include/uci_api.h
ssflib/dep/uci/include/uci_cryptocore.h
ssflib/dep/uci/include/uci_hwcrypto.h
ssflib/dep/uci/include/uci_internal.h
ssflib/dep/uci/include/uci_type.h
ssflib/dep/uci/source/uci_aes_xcbc_mac.c
ssflib/dep/uci/source/uci_api.c
ssflib/dep/uci/source/uci_cryptocore.c
ssflib/dep/uci/source/uci_hwcrypto.c
ssflib/inc/app_debug.h
ssflib/inc/crypto_internal.h
ssflib/inc/permission.h
ssflib/inc/ssf_client.h
ssflib/inc/ssf_lib.h
ssflib/inc/ssf_storage.h
ssflib/src/app_debug.cpp
ssflib/src/ssf_arithmetic.cpp
ssflib/src/ssf_client.cpp
ssflib/src/ssf_crypto.cpp
ssflib/src/ssf_lib.cpp
ssflib/src/ssf_malloc.cpp
ssflib/src/ssf_panic.cpp
ssflib/src/ssf_permission.cpp
ssflib/src/ssf_storage.cpp
ssflib/src/ssf_taentrypoint.cpp
systemd/CMakeLists.txt

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..181359e
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,203 @@
+Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
index cde7184e4591754a6c8266d16dcbce480787384b..e59af7a399e5de0c587317d83033759b5fde79e8 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  teec_connection.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TEEC Connection Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:43:30  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TEEC Connection header file
+ */
+
+
 #ifndef __TEEC_CONNECTION_H__
 #define __TEEC_CONNECTION_H__
 
index 5df4a33623a7c0c4a2e47af149c28fc8089cbc94..7f2557d9dff9c624006d559b78595e43a7cd20ad 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  teec_api.c
- *
- *    Description:  TEEC API implementation
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TEEC API implementation
  */
 
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 34c096867dc75244c0671d099d229c42980eb646..889ee827e3a51d89bd24c2458076971a4b637afb 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  teec_connection.c
- *
- *    Description:  TEEC Library connection with Simulator Daemon is handled here
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TEEC Library connection with Simulator Daemon is handled here
  */
 
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
@@ -31,7 +36,7 @@
  *-----------------------------------------------------------------------------*/
 //#define TEST
 
-/* 
+/*
  * ===  FUNCTION  ======================================================================
  *         Name:  connecttoServer
  *  Description:  API (Interface for TEECAPI) implementation for connecting to
@@ -69,7 +74,7 @@ int32_t connecttoServer(void) {
        return serverSocket;
 }
 
-/* 
+/*
  * ===  FUNCTION  ======================================================================
  *         Name:  disconnectfromServer
  *  Description:  API (Interface for TEECAPI) implementation for disconnecting
@@ -94,7 +99,7 @@ void disconnectfromServer(int32_t serverSocket) {
        }
 }
 
-/* 
+/*
  * ===  FUNCTION  ======================================================================
  *         Name:  sendCommandtoDaemon
  *  Description:  Function implementation for sending data to Simulator daemon
@@ -123,7 +128,7 @@ static uint32_t sendCommandtoDaemon(int32_t sockfd, char* fdata, size_t size) {
        return TEEC_ERROR_COMMUNICATION;
 }
 
-/* 
+/*
  * ===  FUNCTION  ======================================================================
  *         Name:  receiveResponse
  *  Description:  Function implementation for recieving data from Simulator
@@ -154,7 +159,7 @@ static uint32_t receiveResponse(int32_t sockfd, char* fdata, size_t size) {
 }
 
 #ifdef TEST
-/* 
+/*
  * ===  FUNCTION  ======================================================================
  *         Name:  Test
  *  Description:  Local function for Unit testing of TEECLib module
@@ -378,7 +383,7 @@ static uint32_t Test(char cmd, char* fdata, size_t size, uint32_t in) {
 }
 #endif
 
-/* 
+/*
  * ===  FUNCTION  ======================================================================
  *         Name:  sendCommand
  *  Description:  API (Interface for TEECAPI) implementation for sending a
index 1184d3dad4f05deaeddbe5925ad646aea5420b6c..253c5c9ebff7d9a43973c0bd424c2f9fb8666aec 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
- *\r
- *       Filename:  ClientProperty.cpp\r
- *\r
- *    Description:  ClientProperty class\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *        Version:  1.0\r
- *        Created:  21 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  ClientProperty class\r
+ */\r
+\r
+\r
 /*-----------------------------------------------------------------------------\r
  *  Include files\r
  *-----------------------------------------------------------------------------*/\r
index e6c0a9177c5fd9e3b999ec1c60e552f55430ca21..0513e81c0f8b68468ea73b1ab8f2f0bd1a26add0 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *       Filename:  ClientProperty.h\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *    Description:  ClientProperty header file\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- *        Version:  1.0\r
- *        Created:  21 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
- *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
- *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  ClientProperty header file\r
+ */\r
+\r
+\r
 #ifndef PROPERTYACCESS_CLIENTPROPERTY_H_\r
 #define PROPERTYACCESS_CLIENTPROPERTY_H_\r
 \r
index 6ca8f299a9517e893fd07f51b19af6e34084096f..36b8552658165f6215c8213a6b606091d1f39d21 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *       Filename:  Property.h\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *    Description:  Property header file\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- *        Version:  1.0\r
- *        Created:  20 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
- *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
- *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  Property header file\r
+ */\r
+\r
+\r
 #ifndef PROPERTYACCESS_PROPERTY_H_\r
 #define PROPERTYACCESS_PROPERTY_H_\r
 \r
index 3a5c43759b56faaf059601785493d87e0fc6fd2f..51e109380baae7a8baaf16a0f92f9efc535a7d97 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
- *\r
- *       Filename:  PropertyApi.cpp\r
- *\r
- *    Description:  PropertyApi class\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *        Version:  1.0\r
- *        Created:  21 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  PropertyApi class\r
+ */\r
+\r
+\r
 /*-----------------------------------------------------------------------------\r
  *  Include files\r
  *-----------------------------------------------------------------------------*/\r
index f7e5de32d6a8ab91a3d80b4d380064164dbcbc92..64cba1d81ce0ed6ec8e7f110bc01b5a8281e1d46 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *       Filename:  PropertyApi.h\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *    Description:  PropertyApi header file\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- *        Version:  1.0\r
- *        Created:  21 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
- *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
- *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  PropertyApi header file\r
+ */\r
+\r
+\r
 #ifndef PROPERTYACCESS_PROPERTYAPI_H_\r
 #define PROPERTYACCESS_PROPERTYAPI_H_\r
 \r
index 0a711cff242b8fd76dbb328fc10691c64f154591..0b776c5e8f6facb1f5cf34a940e47a89c97e5299 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
- *\r
- *       Filename:  PropertyUtility.cpp\r
- *\r
- *    Description:  PropertyUtility class\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *        Version:  1.0\r
- *        Created:  21 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  PropertyUtility class\r
+ */\r
+\r
+\r
 /*-----------------------------------------------------------------------------\r
  *  Include files\r
  *-----------------------------------------------------------------------------*/\r
index 88da10f60f0d92d7a3dc1ae69ed1a630a65bbb9a..34f65a87907143a6bd614db38ab0dac5563e5e8d 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *       Filename:  PropertyUtility.h\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *    Description:  PropertyUtility header file\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- *        Version:  1.0\r
- *        Created:  20 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
- *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
- *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  PropertyUtility header file\r
+ */\r
+\r
+\r
 #ifndef PROPERTYACCESS_PROPERTYUTILITY_H_\r
 #define PROPERTYACCESS_PROPERTYUTILITY_H_\r
 \r
index 5b4f2d7e6577a20a296b7d92b46937894b9cbe2b..ad8cbd661d69dcdbdef5d689e8564825f5b50298 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
- *\r
- *       Filename:  TAProperty.cpp\r
- *\r
- *    Description:  TAProperty class\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *        Version:  1.0\r
- *        Created:  21 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  TAProperty class\r
+ */\r
+\r
+\r
 /*-----------------------------------------------------------------------------\r
  *  Include files\r
  *-----------------------------------------------------------------------------*/\r
index 6adcbe6edf71e123f4e88479e27e00c001258618..01511351455ffb8df4c2702e298d14864d0c8ff0 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *       Filename:  TAProperty.h\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *    Description:  TAProperty header file\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- *        Version:  1.0\r
- *        Created:  20 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
- *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
- *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  TAProperty header file\r
+ */\r
+\r
+\r
 #ifndef PROPERTYACCESS_TAPROPERTY_H_\r
 #define PROPERTYACCESS_TAPROPERTY_H_\r
 \r
index 44b5b40a1e8749f60159b89352d75a59c6fea127..5901d4fa6af011d32111af1e15dda8243a6cf909 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
- *\r
- *       Filename:  TEEProperty.cpp\r
- *\r
- *    Description:  TEEProperty class\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *        Version:  1.0\r
- *        Created:  21 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  TEEProperty class\r
+ */\r
+\r
+\r
 /*-----------------------------------------------------------------------------\r
  *  Include files\r
  *-----------------------------------------------------------------------------*/\r
index 0403643dce7a287364c3a42e41d56dcf6655f26c..cf8861af1be8dea0649f7e027da9d4620e850637 100644 (file)
@@ -1,21 +1,26 @@
-/*\r
- * =====================================================================================\r
+/**\r
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
  *\r
- *       Filename:  TEEProperty.h\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
  *\r
- *    Description:  TEEProperty header file\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
  *\r
- *        Version:  1.0\r
- *        Created:  20 May 2015 12:41:39  IST\r
- *       Revision:  Original\r
- *       Compiler:  gcc\r
- *\r
- *         Author:  Krishna (Kr), k.devale@samsung.com\r
- *   Organization:  Samsung Electronics\r
- *\r
- * =====================================================================================\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)\r
+ * @brief  TEEProperty header file\r
+ */\r
+\r
+\r
 #ifndef PROPERTYACCESS_TEEPROPERTY_H_\r
 #define PROPERTYACCESS_TEEPROPERTY_H_\r
 \r
index 3ededa44cb8a91f7bb63ee058af44e46ff8da36a..b4f017f1ff991df7ae3362d1e3b09059db1d429a 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  BaseCommand.cpp
- *
- *    Description:  BaseCommand class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  BaseCommand class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index c63f8d2299124eb13ed115782eaed9e4b2a8c974..c750eb3ce8886fbe3bc932769cb89270aeed1965 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  BaseCommand.h
- *
- *    Description:  BaseCommand header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  BaseCommand header file
+ */
+
+
 #ifndef BASECOMMAND_H_
 #define BASECOMMAND_H_
 
index 0dd05dc0e03f7fe56ae7b08eb99ca3348cca3c88..6f6d3e331bea375bfcf31617715406ca6eaec4e6 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandCloseSession.cpp
- *
- *    Description:  CommandCloseSession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandCloseSession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index a8d918675cfda29c6eb9af510a49fae732dbedb2..67b38d3c15fa9d064be1a6e9f2ef14d018fff27e 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandCloseSession.h
- *
- *    Description:  CommandCloseSession header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandCloseSession header file
+ */
+
+
 #ifndef COMMANDCLOSESESSION_H_
 #define COMMANDCLOSESESSION_H_
 
index a411a935590e3d2ae6884dba9ef6ac6213c4f28d..559acedef2123ef72d10123878bbaf7fdcdedd6f 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandCreateEntryPoint.cpp
- *
- *    Description:  CommandCreateEntryPoint class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandCreateEntryPoint class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index e1ae0b0942a6ba0e65de132b8960fd8c374b86d5..367f9f90a3917165327823a86566d3d2344d1126 100644 (file)
@@ -1,20 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandCreateEntryPoint.h
- *
- *    Description:  CommandCreateEntryPoint header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandCreateEntryPoint header file
  */
+
+
 #ifndef COMMANDCREATEENTRYPOINT_H_
 #define COMMANDCREATEENTRYPOINT_H_
 
index 998ff328f95a1bf69ade03c06edc7bef85c9e95d..cf8664a569863b7526d1dcd26db236ec42ed158e 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandDestroyEntryPoint.cpp
- *
- *    Description:  CommandDestroyEntryPoint class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandDestroyEntryPoint class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 5f1d48a51705a37d9db1346b198178b79031389a..e3986fabf92280e06d18dcaee7138a8ba2bd628f 100644 (file)
@@ -1,20 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandDestroyEntryPoint.h
- *
- *    Description:  CommandDestroyEntryPoint header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandDestroyEntryPoint header file
  */
+
+
 #ifndef COMMANDDESTROYENTRYPOINT_H_
 #define COMMANDDESTROYENTRYPOINT_H_
 
index 88feca869413fb35b96075a08cfe925aac50cb33..6f5e1e4eff3cca6eec354443be85fa02e9c962ad 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandOperation.cpp
- *
- *    Description:  CommandOperation class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandInvoke class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 29d0a010a031166d64f7a335c644041dc652148d..2e235a997c6984d77133a7291e03ad39443ae231 100644 (file)
@@ -1,22 +1,28 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandOperation.h
- *
- *    Description:  CommandOperation header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandInvoke header file
  */
-#ifndef COMMANDOPERATION_H_
-#define COMMANDOPERATION_H_
+
+
+#ifndef COMMANDINVOKE_H_
+#define COMMANDINVOKE_H_
 
 /*-----------------------------------------------------------------------------
  *  Include files
@@ -41,4 +47,4 @@ public:
        virtual ~CommandInvoke();
 };
 
-#endif /* COMMANDOPERATION_H_ */
+#endif /* COMMANDINVOKE_H_ */
index 468066e0a216a908c93104c2f65fc4032fa0eac6..b154cf3554ddc96c856f8c429765f1184e8aab38 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandOpenSession.cpp
- *
- *    Description:  CommandOpenSession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandOpenSession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 0ff0cd0cd237021f3cbe979041f35c70b6c909c1..d50713bf588c5008f2eba57edae0dc3532fb841c 100644 (file)
@@ -1,20 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandOpenSession.h
- *
- *    Description:  CommandOpenSession header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandOpenSession header file
  */
+
+
 #ifndef COMMANDOPENSESSION_H_
 #define COMMANDOPENSESSION_H_
 
index 63291a4700dd3ebcf2067f885c25a6a574d6f03b..00a2e92443400a3380fd4748d2c0b3148e990860 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandRequestCancel.cpp
- *
- *    Description:  CommandRequestCancel class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  20 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandRequestCancel class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 797911e3344ee1c37164d9dede2c5a516fbfa050..be3f8873c6c29fe8d855ae22165fb674f042c8dd 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandRequestCancel.h
- *
- *    Description:  CommandRequestCancel header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  CommandRequestCancel header file
  */
 
 #ifndef TACOMMANDS_COMMANDREQUESTCANCEL_H_
index e206c36ae8e7d66c45a20b5fcda429ee932e6c48..8820936efd9146be6f402d17917d8e974dc0cbe8 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  MakeCommand.cpp
- *
- *    Description:  MakeCommand class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  14 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  MakeCommand class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index ce735dd509fe7fb4d02e244342604b4feb207de2..c5d3e9993e829fa13a5a769c11052ca466f5347f 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  MakeCommand.h
- *
- *    Description:  MakeCommand header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  MakeCommand header file
+ */
+
+
 #ifndef MAKECOMMAND_H_
 #define MAKECOMMAND_H_
 
index 88640824959d87390ef849b0eeafce9de609178e..9a415322f9fd62c98dd5f99a9e8f2d991daf7acd 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  SharedMemoryMap.cpp
- *
- *    Description:  SharedMemoryMap class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  28 May 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SharedMemoryMap class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index b53afff22bfe975883b6ff008fe93fc025d42217..7954c1ccfd98f448519f0ba2a93a3a760388be5d 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  SharedMemoryMap.h
- *
- *    Description:  SharedMemoryMap header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  28 May 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SharedMemoryMap header file
+ */
+
+
 #ifndef TACOMMANDS_SHAREDMEMORYMAP_H_
 #define TACOMMANDS_SHAREDMEMORYMAP_H_
 
index ca7d3cbd4806cebd23032deb8badbc8731bd079c..cc5ba2afeb1088b4892589be6882b7bc61d632d5 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ConnectionSession.cpp
- *
- *    Description:  ConnectionSession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  09 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  ConnectionSession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index d3c55d52dc7260154c67257b4a5ecb9f328af086..08df68c959ab0cfa9860846442c8ab24db87c018 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ConnectionSession.h
- *
- *    Description:  ConnectionSession header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  09 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  ConnectionSession header file
+ */
+
+
 #ifndef CONNECTIONSESSION_H_
 #define CONNECTIONSESSION_H_
 
index bf5a7f213d697d85a178c2e025dbd5ba950462fe..632d0003f985853dfad697a4e45498c6b67fc64f 100644 (file)
@@ -1,20 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  TADebug.cpp
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  ta debug function
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  jklolo.lee@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author JungKyuen Lee (jklolo.lee@samsung.com)
+ * @brief  TA debug function
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 8c6ff1a987264fe60c4859fa7c2bfc636958a98c..61350d0a7c2c27cc3a0010108f3e20eb3dd96a22 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  TEEStubServer.cpp
- *
- *    Description:  TEEStubServer class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  09 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TEEStubServer class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 599633b28e57c394c8aace3060e4eb94ff585e40..473cf18610e8ed4aff1134621cac75be02f6782a 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ConnectionSession.h
- *
- *    Description:  ConnectionSession header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  09 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TEEStubServer header file
+ */
+
+
 #ifndef TEESTUBSERVER_H_
 #define TEESTUBSERVER_H_
 
index a1fbfd7ef12821afa4fb17b09a6703e831af6750..51e62707d029f2d5df8a89ae2eac56fc9e3efa71 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  SessionState.cpp
- *
- *    Description:  SessionState class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SessionState class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 0ef069444a6cd15e7664f8caf6f22756de5bdf82..5e92b0c300220aff46b2e589acdbd7495101cf7b 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  SessionState.h
- *
- *    Description:  SessionState header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SessionState header file
+ */
+
+
 #ifndef SESSIONSTATE_H_
 #define SESSIONSTATE_H_
 
index 958720394420d81a627d7031218d818781151f94..74e59c68221a5cf2406a64192ceb90a2bf2a0134 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  TaskQueuedStrategy.cpp
- *
- *    Description:  TaskQueuedStrategy class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TaskQueuedStrategy class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index a38da7a77d4974933eaac64f8c2440a98c22eb0a..ba0fb133be4ee375b457429b59e1e4c5c537f207 100644 (file)
@@ -1,17 +1,26 @@
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- * This software is the confidential and proprietary information
- * of Samsung Electronics Co., Ltd. ("Confidential Information").
- * you shall not disclose such Confidential Information and shall
- * use it only in accordance with the terms of the license agreement
- * you entered into with Samsung.
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * TaskQueuedStrategy.h
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *  Created on: 13-Apr-2015
- *      Author: Krishna Devale
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TaskQueuedStrategy header file
  */
 
+
 #ifndef TASKQUEUEDSTRATEGY_H_
 #define TASKQUEUEDSTRATEGY_H_
 
index 79aa4d39ed6ddfcf2775899bf003420da224be49..be91cf22b056423e290de59ffd13251528065a93 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  TaskStrategy.cpp
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TaskStrategy class
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TaskStrategy class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index f9c2c31b20dde2358ebb1c29dc94f8d23b12dd6c..28dce133ee3d9c97dff76b3d7b4c5f9fd681f49f 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  TaskStrategy.h
- *
- *    Description:  TaskStrategy header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  13 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TaskQueuedStrategy header file
+ */
+
+
 #ifndef TASKSTRATEGY_H_
 #define TASKSTRATEGY_H_
 
index 103e3911d3f828055ac757256478264c6f1545d1..7ce4dd150dbb44ce6072c70a3c27403b6c128d3a 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  main.cpp
- *
- *    Description:  main
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  08 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TEEStub main file
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index fba987af06a8c2641f3704dd27dca6606deeacca..d4ba45ca1595969edff418cc70299517189e05db 100644 (file)
@@ -12,7 +12,7 @@
 #    See the License for the specific language governing permissions and
 #    limitations under the License.
 #
-# @file   CMakeLists.txt
+# @file
 # @author Lukasz Kostyra (l.kostyra@samsung.com)
 # @brief  CMakeLists file for TEF Simulator CMake Devkit module
 #
index 4b70da59a520d9b725a4cb2464e7ee8cdb9cb232..91d471ebf48d82aa19fa4abfd8e26a305f5c37f8 100644 (file)
@@ -1,6 +1,21 @@
+# Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+#
+#    Licensed under the Apache License, Version 2.0 (the "License");
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
 # @file
 # @author Lukasz Kostyra (l.kostyra@samsung.com)
 # @brief  CMake TA development kit module
+#
 
 MESSAGE(STATUS "TEF Simulator Devkit included!")
 
index f3274790fc991afb68df2c2de1f7403d8f559134..2a1daabfec3abbcbede3aaf0764fad387006c17b 100644 (file)
@@ -1,8 +1,22 @@
-/*
- * config.h
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *  Created on: May 20, 2015
- *      Author: krishna.r
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
  */
 
 #ifndef INCLUDE_CONFIG_H_
index 42bf9c31c8cd1d080647f181cefb9fe29c3d3ec7..a12c142e273709e9abf97e633e5c0be1db53c963 100644 (file)
@@ -1,12 +1,22 @@
-/*
- * debug.h
+/**
+ * Copyright (c) 2011-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * This source file is proprietary property of Samsung Electronics Co., Ltd.
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Contact: Jaemin Ryu <jm77.ryu@samsung.com>
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author  Jaemin Ryu (jm77.ryu@samsung.com)
  */
 
 #ifndef __ALLOC_DEBUG_H__
index 5c534268c49ce84b34f486790303ea39167f4d99..92ac2ce337bda4f8922bf0bbf9fa81ada995d33f 100644 (file)
@@ -1,10 +1,21 @@
-/*
- * log_level.h
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * This source file is proprietary property of Samsung Electronics Co., Ltd.
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * Copyright (C) 2016 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
  */
 
 #ifndef __LOG_LEVEL_H__
index 2f1426abefa648e682b6231a5d890340f952b950..c3f2c4aaeddd8e96af7984a87ec102a9c4966bb9 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  tee_command.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TEEC Connection Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:43:30  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TEEC Connection Header file
  */
 
 #ifndef __TEE_COMMAND_H__
index da8490070189eb0930da7c24eaf0a59d69332621..b988af06225e1366b006853631d483fec3b0f977 100644 (file)
@@ -1,14 +1,26 @@
-/*
- * tee_internal_api.h
- *
- * This source file is proprietary property of Samsung Electronics Co., Ltd.
+/**
+ * Copyright (c) 2011-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * Contact: Krishna Raghottam Devale <k.devale@samsung.com>
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TEE Internal API header file
+ */
+
+
 #ifndef __TEE_INTERNAL_API_H__
 #define __TEE_INTERNAL_API_H__
 
index 4277f28a09723e4b32051488206553b1708bf445..d49d1f9badd0589d1a1e610a28eae66d499aa90b 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  tee_sim_command.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TEEC Connection Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:43:30  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TEE Simulator commands header file
  */
 
 #ifndef __TEE_SIM_COMMAND_H__
index cd746be05e2b3b91bb47ef1ccc476d16c60c0c87..2a49eb9e78140c2fa1694740fd2a4e26e05a9e08 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  teec_data.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TEEC Data Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  16 April 2015 12:43:30  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TEE Simulator commands header file
+ */
+
+
 #include <tee_client_api.h>
 
 #ifndef __TEEC_DATA_H__
index bedef926c620091a9d8cf3af3c4365a7c4873461..12f8b0d6be6daf3eeccaf7a60f49423a337686da 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  teestub_command_data.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TEEStub Data Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  20 April 2015 12:43:30  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  Krishna Devale
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Krishna Raghottam Devale <k.devale@samsung.com>
+ * @brief  TEE Simulator commands header file
  */
 
 #include "tee_internal_api.h"
index 67c7f3ef9927fd87477804772c2f5c0a767561f0..f99f6b8c119e84757f133dbcb34d86b036ed8de3 100644 (file)
--- a/log/log.c
+++ b/log/log.c
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
- *
- *       Filename:  log.c
- *
- *    Description:  logger for Simulator
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Logger for Simulator
  */
 
 /*-----------------------------------------------------------------------------
index ad0c4093401d10173c3ef17615c4ddd35f829bbb..84695f13745064c5bd149e0ea2c65ae5e61e7a34 100644 (file)
--- a/log/log.h
+++ b/log/log.h
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
- *
- *       Filename:  log.h
- *
- *    Description:  This file provides log APIs for debugging
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Logger for Simulator
  */
 
 #ifndef LOG_H
index e2ef8bed8c6855d035862d265f40f02c9d03c362..a563e0a8568c03f971bfca3b20520eb5259ce6c9 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
- *
- *       Filename:  OsaCommon.c
- *
- *    Description:  Common functions
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Common functions
  */
 
 /*-----------------------------------------------------------------------------
@@ -361,7 +365,7 @@ void OsaWait(int mSecs) {
  //                                 using CPU timer
  // Return Data Type   : ErrorType
  //
- // Programming Note   : 
+ // Programming Note   :
  //    (Linux OsaCurrentTime, OsaCurrentTimeVal function)
  //    1) kernel should support the high-resolution clocksource.
  //            Otherwise, the maximum resolution is only 1 or 10 mili sec.
index bc9c19f2c7988c6ebadb950409f0207dec19a8c2..74660a9a00ae8d7145bd97a764618c5659513138 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  OsaIpc.c
- *
- *    Description:  Semaphore and Shared Memory implementation
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Semaphore and Shared Memory implementation
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index af517b134057c4d3c62a7a2cb6c7a4d1de2ed9dd..78b8c787e72295ad6c0b34b51f20ec6ba1931e3a 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  OsaLinuxUser.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  This file includes linux header for user mode.
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  This file includes linux header for user mode.
+ */
+
+
 #ifndef _LINUXUSER_H_
 #define _LINUXUSER_H_
 
@@ -34,7 +39,7 @@
 #include <mqueue.h>   // posix queue
 #include <semaphore.h>
 #include <sys/types.h>  // system V IPC
-#include <sys/ipc.h>    // system V IPC        
+#include <sys/ipc.h>    // system V IPC
 #include <sys/msg.h>    // system V IPC
 #include <sys/sem.h>
 #include<sys/time.h>
index 15e3ef9ce69dc4b9d09d586cbeb0b3cd7cd5aefb..c1b5c16d39f3dd8500a913cd3448c059bbc2f44e 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
- *
- *       Filename:  OsaQueue.c
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *    Description:  Implementation of POSIX Message queue
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Implementation of POSIX Message queue
  */
 
 /*-----------------------------------------------------------------------------
@@ -34,21 +38,21 @@ typedef struct _osaMsgBuf_t {
  // $$$
  //---------------------------------------------------------------------------------
  // Function Name      : OsaQueueCreate()
- // Detail Description : 
- //              
- //              
- //              
+ // Detail Description :
+ //
+ //
+ //
  //
- // Return Data Type   : Error Type. 
+ // Return Data Type   : Error Type.
+ //
+ // Programming Note   :
  //
- // Programming Note   :   
- //            
  //---------------------------------------------------------------------------------
  // $$$
  */
 int OsaQueueCreate(const char bName[10], unsigned int uiFlags,
     unsigned int uiMaxnum, unsigned int uiMaxlen, unsigned int* puiQid) {
-#ifndef __NO_OS__      
+#ifndef __NO_OS__
 #ifdef POSIX_QUEUE
        struct mq_attr MqAttr;
        mqd_t QuId;
@@ -70,7 +74,7 @@ int OsaQueueCreate(const char bName[10], unsigned int uiFlags,
        *puiQid = (unsigned int)QuId;
 #else /* SYS5 MSG QUEUE*/
        /*
-        uiFlags ; IPC_CREAT or IPC_CREAT | IPC_EXCL    
+        uiFlags ; IPC_CREAT or IPC_CREAT | IPC_EXCL
         */
        struct msqid_ds tSetMqAttr;
 
@@ -150,7 +154,7 @@ int OsaQueueClose(unsigned int uiQid) {
  // $$$
  */
 int OsaQueueDelete(const char* bName, unsigned int uiQid) {
-#ifndef __NO_OS__              
+#ifndef __NO_OS__
 #ifdef POSIX_QUEUE
        if (mq_unlink(bName) < 0)
        {
@@ -176,11 +180,11 @@ int OsaQueueDelete(const char* bName, unsigned int uiQid) {
  // $$$
  //---------------------------------------------------------------------------------
  // Function Name      : OsaQueueSend
- // Detail Description : This function  sends messages on  queues. 
+ // Detail Description : This function  sends messages on  queues.
  //
  // Return Data Type   : ErrorTypes
  //
- // Programming Note   : 
+ // Programming Note   :
  //--------------------------------------------------------------------------------
  // $$$
  */
@@ -236,7 +240,7 @@ int OsaQueueSend(unsigned int uiQid, unsigned int uiFlags, void* pvMsg_buf,
                ////PrintError("In OsaQueueSend() : Error no. : %d\n",errno); //COMMON_071024_1
                return ((int)errno);
        }
-#endif 
+#endif
 
 #endif /* EOF POSIX_QUEUE */
 
@@ -247,11 +251,11 @@ int OsaQueueSend(unsigned int uiQid, unsigned int uiFlags, void* pvMsg_buf,
  // $$$
  //---------------------------------------------------------------------------------
  // Function Name      : OsaQueueReceive
- // Detail Description : It recieves  the messages  from the Message queue 
+ // Detail Description : It recieves  the messages  from the Message queue
  //
- // Return Data Type   : Error Tyoe 
+ // Return Data Type   : Error Tyoe
  //
- // Programming Note   : 
+ // Programming Note   :
  //--------------------------------------------------------------------------------
  // $$$
  */
@@ -259,14 +263,14 @@ int OsaQueueReceive(unsigned int uiQid, unsigned int uiFlags, void* pvMsgBuf,
     unsigned int uiBufLen, unsigned int* pMsgLen, pOsaTime_t ptTimeOut)
 
 {
-#ifndef __NO_OS__      
+#ifndef __NO_OS__
 #ifdef POSIX_QUEUE
        /*
         uiFlags : IPC_NOWAIT , ZERO
         */
-#if 0  
+#if 0
        struct timespec absTimeOut;
-#endif 
+#endif
        struct mq_attr tMqAttr;
        int uiMsgLen =0;
 
@@ -289,7 +293,7 @@ int OsaQueueReceive(unsigned int uiQid, unsigned int uiFlags, void* pvMsgBuf,
                absTimeOut.tv_sec = 0;
                absTimeOut.tv_nsec = 0;
        }
-#endif 
+#endif
        if(mq_setattr((mqd_t)uiQid, &tMqAttr, (struct mq_attr *)NULL) < 0)
        {
                perror("OsaQueueSend(): mq_setattr() Failed \n");
@@ -348,7 +352,7 @@ int OsaQueueReceive(unsigned int uiQid, unsigned int uiFlags, void* pvMsgBuf,
  // Return Data Type   : Error Type
  //
  // Programming Note   : It only get the number of messages in the queue(mqlen)
- //          and maximum message length allowed (maxlen).  
+ //          and maximum message length allowed (maxlen).
  //---------------------------------------------------------------------------------
  // $$$
  */
@@ -407,12 +411,12 @@ int OsaQueueGetinfo(unsigned int uiQid, void* pvBuf) {
 /*
  // $$$
  //---------------------------------------------------------------------------------
- // Function Name      :   OsalQueueSetinfo 
- // Detail Description :   it sets the corresponding Info for the queue  
+ // Function Name      :   OsalQueueSetinfo
+ // Detail Description :   it sets the corresponding Info for the queue
  //
  // Return Data Type   :   ErrorType
  //
- // Programming Note   :   
+ // Programming Note   :
  //---------------------------------------------------------------------------------
  // $$$
  */
index 5d07f31fb22c567fede6d1bcc236f896d40f3733..81f525a07c850c79bbac91ee59fb9980075dd78c 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
- *
- *       Filename:  OsaSem.c
- *
- *    Description:  Semaphore and Mutex implementation
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Semaphore and Mutex implementation
  */
 
 /*-----------------------------------------------------------------------------
index 59144c1a451f53349f260bb2a13b50d4f5ecec19..4d944fd4dbd31e4f0819706ccf988433a25249a8 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
- *
- *       Filename:  OsaSignal.c
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *    Description:  Signal implementation
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Signal implementation
  */
 
 /*-----------------------------------------------------------------------------
 /*
  // $$$
  //-----------------------------------------------------------------------------
- // Function Name      :       OsaSigProcmask 
+ // Function Name      :       OsaSigProcmask
  // Detail Description : Examine and/or change the list  of  currently  blocked
  //                            signals
  //
- // Return Data Type   :       ErrorType 
+ // Return Data Type   :       ErrorType
  //
  // Programming Note   : None.
  //------------------------------------------------------------------------------
@@ -53,10 +57,10 @@ int OsaSigProcmask(int iMode, const unsigned int* puiNewmask,
 /*
  // $$$
  //-----------------------------------------------------------------------------
- // Function Name      :       OsaSigSuspend 
- // Detail Description : Suspend the task until delivery of a signal 
+ // Function Name      :       OsaSigSuspend
+ // Detail Description : Suspend the task until delivery of a signal
  //
- // Return Data Type   :       ErroType  
+ // Return Data Type   :       ErroType
  //
  // Programming Note   :       None.
  //------------------------------------------------------------------------------
@@ -78,10 +82,10 @@ int OsaSigSuspend(unsigned int* puiPending) {
 /*
  // $$$
  //-----------------------------------------------------------------------------
- // Function Name      :       OsaSigTimedwait 
- // Detail Description : Wait for a signal 
+ // Function Name      :       OsaSigTimedwait
+ // Detail Description : Wait for a signal
  //
- // Return Data Type   : ErrorType 
+ // Return Data Type   : ErrorType
  //
  // Programming Note   :       None.
  //------------------------------------------------------------------------------
@@ -103,7 +107,7 @@ int OsaSigTimedwait(void) {
 /*
  // $$$
  //-----------------------------------------------------------------------------
- // Function Name      :       OsaSigSetmask 
+ // Function Name      :       OsaSigSetmask
  // Detail Description : Set the signal mask
  //
  // Return Data Type   :       ErrorType
@@ -128,8 +132,8 @@ int OsaSigSetmask(int iSigno) {
 /*
  // $$$
  //-----------------------------------------------------------------------------
- // Function Name      :       OsaKill 
- // Detail Description : Send a kill  signal to a task 
+ // Function Name      :       OsaKill
+ // Detail Description : Send a kill  signal to a task
  //
  // Return Data Type   : ErrorType
  //
index 6decac27b2ac3acb2e257ca5848181793113135f..1d939f7ea9aed3eff9abd9f90ba01eb8532521c7 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
- *
- *       Filename:  OsaTask.c
- *
- *    Description:  Thread implementation
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Thread implementation
  */
 
 /*-----------------------------------------------------------------------------
index e56ad14a4d1713afadbfd60e988ff8ffda1f962d..f8fb2680bbfc2babfeb44de107f5dc680866664b 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  Osal.h
- *
- *    Description:  OSAL header file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  26 March 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  OSAL header file
+ */
+
+
 #ifndef _OSAL_H_
 #define _OSAL_H_
 
index 10e8b37bea7e56bf8dbeba93bc03edc4a9c979dc..a50a54a2e0f68fd05cc5a7d52a58025ec9285400 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandBase.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandBase Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandBase header file
+ */
+
+
 #ifndef COMMANDBASE_H_
 #define COMMANDBASE_H_
 
index 61f40bba632c1b9c4b2cd97e291e64b5146de1ec..f8643ccf1462c7e52ad806d8a4e49ec9d03e42b1 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandCloseSession.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandCloseSession Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandCloseSession header file
+ */
+
+
 #ifndef COMMANDCLOSESESSION_H_
 #define COMMANDCLOSESESSION_H_
 
index 031b5cbaf810092c017b2922f61c9fbfcf7cebb0..d48613123f54530ff9607cdb1ee144b1caebc0c4 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandCloseTASession.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandCloseTASession Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandCloseTASession header file
+ */
+
+
 #ifndef COMMANDCLOSETASESSION_H_
 #define COMMANDCLOSETASESSION_H_
 
index 820c6502547351933d1dde6f2314f3556c04c2b7..fce3c5179ba86569c9eff7c2fd500c8122b13b8b 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandFinContext.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandFinContext Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandFinContext header file
+ */
+
+
 #ifndef COMMANDFINCONTEXT_H_
 #define COMMANDFINCONTEXT_H_
 
index f3f536c2a36173054b581a04b21a10e7679f401c..7b1435f665f41a2960a19673903e1a1f147678a7 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandInitContext.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandInitContext Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandInitContext header file
+ */
+
+
 #ifndef COMMANDINITCONTEXT_H_
 #define COMMANDINITCONTEXT_H_
 
index efb0f3b0b93de993d0e0c36abc26f271593709b9..6dfcdf758b01bade39a612f1d7bd79e51a4608a6 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandInvokeCommand.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandInvokeCommand Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandInvokeCommand header file
+ */
+
+
 #ifndef COMMANDINVOKECOMMAND_H_
 #define COMMANDINVOKECOMMAND_H_
 
index 6eac1c00a3a48bf845269177a88c53cb21bfc7ce..9c53693537c1e51cfce46a76691dc75c63f7580e 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandInvokeTACommand.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandInvokeTACommand Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandInvokeTACommand header file
+ */
+
+
 #ifndef COMMANDINVOKETACOMMAND_H_
 #define COMMANDINVOKETACOMMAND_H_
 
index b17e979f204af891469f494ec728f79bc90ba2eb..d4e6993d5eb92292fd24a99fd330ad723f9067d8 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandOpenSession.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandOpenSession Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandOpenSession header file
+ */
+
+
 #ifndef COMMANDOPENSESSION_H_
 #define COMMANDOPENSESSION_H_
 
index e193cd75e08bf2ad20b0c94e4cdda881dbcfa801..532e51f882484255c44c426a7767a4f3b820c8bb 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandOpenTASession.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandOpenTASession Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandOpeNTASession header file
+ */
+
+
 #ifndef COMMANDOPENTASESSION_H_
 #define COMMANDOPENTASESSION_H_
 
index e979e60182daee787422265ef08854cb0b2146d0..d25c345b0272d304a6508061900a773e7910de09 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandPanic.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandPanic Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandPanic header file
+ */
+
+
 #ifndef COMMANDPANIC_H_
 #define COMMANDPANIC_H_
 
index d1da1f5d7565b0cf99dd4e927c396b313f3314ac..93ee9410d60f072f122a54e615ffb902026325fd 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandRegSharedMem.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandRegSharedMem Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandRegSharedMem header file
+ */
+
+
 #ifndef COMMANDREGSHAREDMEM_H_
 #define COMMANDREGSHAREDMEM_H_
 
index 6f34322131c2b71954b22569ae4b65288aaa7c4d..c9af09da1037638acd1164290306e114940a46c2 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandRelSharedMem.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandRelSharedMem Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandRelSharedMem header file
+ */
+
+
 #ifndef COMMANDRELSHAREDMEM_H_
 #define COMMANDRELSHAREDMEM_H_
 
index fe69843d3615f47329fdcb11a8bfe4e2856aa5b6..dffb0d3d8bde68b4ab8e470ccf5f9c5b8782ab0a 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  CommandReqCancellation.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  CommandReqCancellation Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandReqCancellation header file
+ */
+
+
 #ifndef COMMANDREQCANCELLATION_H_
 #define COMMANDREQCANCELLATION_H_
 
index ca653bf744845df0a5ebff6d3aa6d8e29ceaae84..04de3341cf004246f4831beec67cad79f883712f 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  MakeCommand.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  MakeCommand Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  MakeCommand header file
+ */
+
+
 #ifndef MAKECOMMAND_H_
 #define MAKECOMMAND_H_
 
index 9d253ddec977bc9b24b6f61150d0d7055fcf9c74..a4794be2495478fa96df9c61c615170ad3e514e8 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ConnectionSession.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  Connection handler for Simulator Daemon server
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  16 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Connection header for Simulator Daemon server
+ */
+
+
 #if !defined(_CONNECTIONSESSION_H)
 #define _CONNECTIONSESSION_H
 
index f7664ae7e7e838704031da1a9d6be1d4206defab..0f2a2f6266a7e621270c8ee7e91b8ed0a2192e51 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  IConnectionSession.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  Interface for Connection handler for Simulator Daemon server
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  27 August 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Interface for Connection handler for Simulator Daemon server
+ */
+
+
 #if !defined(_ICONNECTIONSESSION_H)
 #define _ICONNECTIONSESSION_H
 
index cf05546f3a5a523a392ff8a22f697bf17af9cf32..2901d5faa3c8556d5a45d6993fc1c6dde83e9da2 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ISession.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  Interface class for Session Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  25 August 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Interface class for Session Header file
+ */
+
+
 #if !defined(_ISESSION_H)
 #define _ISESSION_H
 
index f797c6cb05fd27210e8a411b1067703f158ebbbf..6eedf91af47efa11344429cc117112904624f427 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ITAInstance.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  Interface for TAInstance Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  26 August 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Interface for TAInstance Header file
+ */
+
+
 #if !defined(_ITAINSTANCE_H)
 #define _ITAINSTANCE_H
 
index b19b71f036babf02d28a921ff3cf69261507a88a..c7e131e1fb1331be596d160bfe8115e809352372 100644 (file)
@@ -1,20 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ResCommandBase.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  ResCommandBase Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResCommandBase header file
  */
+
+
 #ifndef RESCOMMANDBASE_H_
 #define RESCOMMANDBASE_H_
 
index 4642b9b26b3cbf345bc4bca0a5be38c3e30f3d34..e055dd43b890fc38414bc47c0a24ee187049a033 100644 (file)
@@ -1,20 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ResCommandCloseSession.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  ResCommandCloseSession Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResCommandCloseSession header file
  */
+
+
 #ifndef RESCOMMANDCLOSESESSION_H_
 #define RESCOMMANDCLOSESESSION_H_
 
index 18c8714223100116112e467dd90d2f40e3422848..2893b387d77c88fba4f578344b8a250ff5ede264 100644 (file)
@@ -1,20 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ResCommandInvokeCommand.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  ResCommandInvokeCommand Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResCommandInvokeCommand header file
  */
+
+
 #ifndef RESCOMMANDINVOKECOMMAND_H_
 #define RESCOMMANDINVOKECOMMAND_H_
 
index 15de38b6d48a00a7ef2522cc2404468fd17f91e1..a9012bf6afe49f6a9065fba400bcefe69fbec03a 100644 (file)
@@ -1,20 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ResCommandOpenSession.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  ResCommandOpenSession Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResCommandOpenSession header file
  */
+
+
 #ifndef RESCOMMANDOPENSESSION_H_
 #define RESCOMMANDOPENSESSION_H_
 
index fa42c04688eb7a92b13ce9638cab4f4a164718a0..a9b85a4b60556e4dda87428bec64e20bf812062b 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ResCommandReqCancellation.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  ResCommandReqCancellation Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResCommandReqCancellation header file
+ */
+
+
 #ifndef RESCOMMANDREQCANCELLATION_H_
 #define RESCOMMANDREQCANCELLATION_H_
 
index b6b28e3c109529245fbed26cf39b70a1fa0b1cec..de80cdd5adc8de2fc77c2ffc79a8f35f9180a749 100644 (file)
@@ -1,21 +1,27 @@
 /*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ResMakeCommand.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  ResMakeCommand Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResMakeCommand header file
+ */
+
+
 #ifndef RESMAKECOMMAND_H_
 #define RESMAKECOMMAND_H_
 
index a01275267f1fd01763bf05d78fe000191d093ac6..b9b7655e6f4b84c4c350759860c12007476aff76 100644 (file)
@@ -1,22 +1,26 @@
-/*
- * SecurityContext.h
- *
- * Copyright (C) 2017 Samsung Electronics
- * Uladzislau Harbuz <u.harbuz@samsung.com>
+/**
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
  *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Uladzislau Harbuz (u.harbuz@samsung.com)
+ * @brief  Security Context header file
  */
 
+
 #ifndef SECURITYCONTEXT_H
 #define SECURITYCONTEXT_H
 
index 2c95de0c4b33b9bbd9ecb5da2e7e9d8620bd26c2..725742ad217a2b72b5ac10d3b392b9fedbd66d19 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  Session.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  Session Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Session header file
+ */
+
+
 #if !defined(_SESSION_H)
 #define _SESSION_H
 
index 5d7942b99d8a4b3d4922a1864eb2a0ed2dcf2799..0991996dc11e2994817e1f9d2550e84d55b23b03 100644 (file)
@@ -1,20 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  SimulatorDaemonServer.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  SimulatorDaemonServer Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  SimulatorDaemonServer header file
  */
+
+
 #if !defined(_SIMULATORDAEMONSERVER_H)
 #define _SIMULATORDAEMONSERVER_H
 
index ed6b4538b493cefaa6fb9d7e538f87cbd9aaaacb..9063fedea1f0c1bbb4153fac44b29385d2bc8150 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  TAFactory.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TAFactory Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TAFactory header file
+ */
+
+
 #if !defined(_TAFACTORY_H)
 #define _TAFACTORY_H
 
index ebdf60f96d291b63540f59f9dc6bd6bfda915c86..c1ff0f18bb9c864710c1ed7cffdc8dc3a52d3087 100644 (file)
@@ -1,21 +1,27 @@
 /*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  TAInstance.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TAInstance Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TAInstance header file
+ */
+
+
 #if !defined(_TAINSTANCE_H)
 #define _TAINSTANCE_H
 
index 5b35f02cafd3616a9a72383a3399f5a1b7144414..4db85067f1b2286c2d2cf6d85f75260bd3eb9f6d 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  TEEContext.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TEEContext Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TEEContext header file
+ */
+
+
 #if !defined(_TEECONTEXT_H)
 #define _TEECONTEXT_H
 
index e539a4e5b7b5811fb5aba00471567637d398e055..335e54317612a8277558ced9fc66b77c8677489b 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ioService.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  ioService Header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ioService header file
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 2aac94036af9695e5c13cd211407a3f1d8738c52..37a528fd9c55c6f0df08deec2a51da367b3b04c9 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  path.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  path details
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  29 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Path detail
+ */
+
+
 #if !defined(_PATH_H)
 #define _PATH_H
 
index 98795bc4329c304a885e532ddab8b95dc74d719b..d73313a6033e0c8bd77206daa90164714158ae16 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandCloseSession.cpp
- *
- *    Description:  CommandCloseSession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandCloseSession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index dc0ee4c8cbe6170eca80e14c2104da8e6f004014..d3b8a49bbd4a16dadd8b1214c7641b189b8a584f 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandCloseTASession.cpp
- *
- *    Description:  CommandCloseTASession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandCloseTASession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 5d6a4075a88641f419e901858d3add65ef6493d4..4603a64621591fad4d3deaa9d1382ac42f577c46 100644 (file)
@@ -1,21 +1,27 @@
 /*
- * =====================================================================================
- *
- *       Filename:  CommandFinContext.cpp
- *
- *    Description:  CommandFinContext class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandFinContext class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 2914b96adc300a7456c51fa32ec526b70fc5b3b8..12ba4b53f32e4bf0eebb97297b9e921e81daece5 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandInitContext.cpp
- *
- *    Description:  CommandInitContext class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandInitContext class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 7d60242682b9d1828680badf943c5d01b2d23f9f..584e9e352ee742987f8e068faa5564bea7ba0ea5 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandInvokeCommand.cpp
- *
- *    Description:  CommandInvokeCommand class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandInvokeCommand class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index cd240c833817b50566673ab460689ae462b1dca8..21848026d537e9b9a2837b7463be5b58bbc32a81 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandInvokeTACommand.cpp
- *
- *    Description:  CommandInvokeTACommand class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandInvokeTACommand class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 80ebfdc60b5c9c8d2dab71cc5b363b59dffaf8df..82a5957cbf81ed81ac5d01a320a7165b1c13ae1d 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandOpenSession.cpp
- *
- *    Description:  CommandOpenSession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandOpenSession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 8e35480e5450b88ab6f5789f84e8101aeaa65144..8b2cb5dd02f950adf46c6945ca3a038e1faa9611 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandOpenTASession.cpp
- *
- *    Description:  CommandOpenTASession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandOpenTASession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 2766f71797015552371498a655495fdbbc2e3bf4..cb804150d44477c294ea07c4fe62dba7a6c31c19 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandPanic.cpp
- *
- *    Description:  CommandPanic class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandPanic class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index f8774ab8a0f158435fda7d644084a83d83879670..1b4920149e787974e92064d0248d98571c09006b 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandRegSharedMem.cpp
- *
- *    Description:  CommandRegSharedMem class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandRegSharedMem class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 955f834ed3ff82f2af553c96ee981b7c1ade64a5..6aaf37dcd65f2c21ee3347876d1c1a6edf61bfb6 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandRelSharedMem.cpp
- *
- *    Description:  CommandRelSharedMem class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandRelSharedMem class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index afc721c570c88cdae5333ed0c2908522ade4ab4d..de6d348a751e5947d1a603f4c55d52512466d662 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  CommandReqCancellation.cpp
- *
- *    Description:  CommandReqCancellation class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  CommandReqCancellation class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 4d660a40eb407c0f3a9a292a77660365279f9d35..e996d0d20ef27a414df3fc2f43a5985847eb8003 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  MakeCommand.cpp
- *
- *    Description:  MakeCommand class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  MakeCommand class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 4c0c9587820042c454e8718abd13b128efc2c7c3..5b2aa697eed7412d4a423147694692ad946aaf73 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ConnectionSession.cpp
- *
- *    Description:  ConnectionSession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  16 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ConnectionSession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 479ac9c468c46eb17508262e109fd690315f2da9..0c142ffcc04cc710833854abf06a7a1f5df6014d 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ResCommandCloseSession.cpp
- *
- *    Description:  ResCommandCloseSession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResCommandCloseSession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index a7fd56172492488da88e9a0a142ba0c9ff2fbc0f..1a770d79ae7e5d8c94c42724cbab35d8d68b5b08 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ResCommandInvokeCommand.cpp
- *
- *    Description:  ResCommandInvokeCommand class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResCommandInvokeCommand class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index bc493e11e834db037786d20796073e35140d4588..b44492bead00dc4c983bd4110644553f6aa62aa6 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ResCommandOpenSession.cpp
- *
- *    Description:  ResCommandOpenSession class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResCommandOpenSession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 4a2253915f4d46d08d42795abf01b9b02faa7a20..65cfdfffbd6dc32240d59135eed6941aa95a97a6 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ResCommandReqCancellation.cpp
- *
- *    Description:  ResCommandReqCancellation class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResCommandReqCancellation class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 8b90d28ddfd2ffe9ca61d414316e85c6bc5b5034..53e61ded54836ef4d518958a70265d660cbc0859 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ResMakeCommand.cpp
- *
- *    Description:  ResMakeCommand class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ResMakeCommand class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 0160962aa4d64c850ccab3ea3406b1744fee8e15..699f6be29a2c2fac922d5dab4879228f36a131a4 100644 (file)
@@ -1,22 +1,26 @@
-/*
- * SecurityContext.cpp
+/**
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * Copyright (C) 2017 Samsung Electronics
- * Uladzislau Harbuz <u.harbuz@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
  *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Uladzislau Harbuz (u.harbuz@samsung.com)
+ * @brief  SecurityContext class
  */
 
+
 #include "SecurityContext.h"
 #include <cynara/cynara-creds-socket.h>
 #include <cynara/cynara-session.h>
index 39f73cee6ab2dd2ce5dd742acdc1cf07a498b326..92b302ced85441366378c519498411a2e5fc0e8e 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  Session.cpp
- *
- *    Description:  Session class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  27 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Session class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 25feff6b28f48f84aca5081b9283612f684188a3..56160b3e18536c7490ffcf76a243222351570b81 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  SimulatorDaemon.cpp
- *
- *    Description:  SimulatorDaemon main file
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  16 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  SimulatorDaemon main file
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 767fc536818e1936997ada41fdd5474b414ae333..47207180dff5e885462b107a0732a4e1037b8466 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  SimulatorDaemonServer.cpp
- *
- *    Description:  SimulatorDaemonServer class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  16 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  SimulatorDaemonServer class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index a14e98e09e8ee88c8257cb7df3586e24490bccec..fdd3b1bedf719e98e69c71d0e07c68def6fa4743 100644 (file)
@@ -1,19 +1,23 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  Config.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  Configuration details
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  05 May 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  Configuration details
  */
 
 #ifndef CONFIG_H_
index 27723a8b3ee4f059e927308a35c7db249a490ba5..fb91f323cc003d9052824c7dbe2de6b2af05838e 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  TABinaryManager.cpp
- *
- *    Description:  TABinaryManager class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  05 May 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TABinaryManager class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 5d6dde12654dfefce1a0eaf330ef48c89c500ea0..fc60d12e36f9bb2e5de7e7056e073ad572bff40d 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  TABinaryManager.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TABinaryManager header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  05 May 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TABinaryManager header file
+ */
+
+
 #ifndef TABINARYMANAGER_H_
 #define TABINARYMANAGER_H_
 
index 6bd111c1a2b4e23d1949173530e5b326b1d24db3..dc4fb21d410f78aef966868194da7170eeb9c472 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  TAManifest.cpp
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TAManifest class
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  05 May 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TAManifest class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 2f7e838b2d138fe72c9b90caf378d5a69d6b220d..b2c5845c8a04192802ca6316f288274f1d9dd47a 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  TAManifest.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TAManifest header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  05 May 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TAManifest header file
+ */
+
+
 #ifndef TAMANIFEST_H_
 #define TAMANIFEST_H_
 
index 26c3da95d169d64f345a20be9eee9c4551d02611..bd184f80788012c6cf35963410bc0d2286fe0e9f 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  TAUnpack.cpp
- *
- *    Description:  TAUnpack class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  05 May 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TAUnpack class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 06025705ea9f865491bacd5ad67c11c899ee6c89..a598e0a3859425d9450f067790f92851bb37fff6 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  TAUnpack.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  TAUnpack header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  05 May 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TAUnpack header file
+ */
+
+
 #ifndef TAUNPACK_H_
 #define TAUNPACK_H_
 
index 5497925ff1ad4896b480ab50eb5eeaf346d16e08..dc9de89953e49393b1932bb5e43f56c36faf753b 100644 (file)
@@ -1,10 +1,26 @@
-/*
- * TestMain.cpp
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *  Created on: 05-May-2015
- *      Author: krishna
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  TestMain file
+ */
+
+
 #include <stdio.h>
 #include <iostream>
 #include "TABinaryManager.h"
index 67b66f9b5dab36f094bd6fae4d5dc508f100c105..b744b7040c0dc07669b6ec09d9b092a5484238db 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  TAFactory.cpp
- *
- *    Description:  TAFactory class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  28 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TAFactory class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 5eec96c0bcca07a3563e71f6b04b5e12c034ec56..0fecf8ff763bd69f7967b898e944ab5b1064ebb3 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  TAInstance.cpp
- *
- *    Description:  TAInstance class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  28 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TAInstance class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index f20bbb519eaa0b0476898595ccc6d415647f6035..97833c86cd08ca2c7b70d592a95f87607a58dfd4 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  TEEContext.cpp
- *
- *    Description:  TEEContext class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  16 April 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  TEEContext class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index f20061cc08b318a72d0c9e1418f5b25858b56c5b..2d1aab2c769ca5622df58b56fb98fd7d0a2685c1 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ioService.cpp
- *
- *    Description:  ioService class
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  05 May 2015 12:42:03  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  CHERYL (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author CHERYL (cb) (cheryl.b@samsung.com)
+ * @brief  ioSession class
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 2dc7815f4f5a4ffc24238becd8dde09bd4e8674f..940bf4f031f1f13b94f1785abecc5a1fd3ed1933 100755 (executable)
@@ -1,12 +1,26 @@
 #!/bin/sh
+# Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
+#
+#    Licensed under the Apache License, Version 2.0 (the "License");
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+# @file
+# @author Krishna Raghottam Devale <k.devale@samsung.com>
+#
 # This script creates a uuidlist.list file and populates it with TA UUID packages names.
 # Ths file is populated based on the existing files in directory /tmp/tastore/
 # UUID pattern is: ....-....-....-............
 # This script should be executed once all the TA packages are transferred to /tmp/tastore
 
-# Author: Krishna Devale
-# Samsung R & D Institute, Bangalore
-# 7 May 2015
 
 #uuidfile="./tastore/uuidlist.list";
 uuidfile="/usr/lib/tastore/uuidlist.list";
index dd04a739648c09f523422297b84c54af59162564..a99bc7de6c212e0556b4bf7d0e894cbf77d4fd67 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       CC_API.h
- * @brief      API of samsung Crypto Library
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jae Heung Lee
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/06
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jae Heung Lee
+ * @brief  API of Samsung Crypto Library
+ */
+
+
 #ifndef _CRYPTOCORE_API_H
 #define _CRYPTOCORE_API_H
 
@@ -44,23 +55,23 @@ typedef union
 /**
  * @brief      Parameter sturcture
  *
- * Crypto Library¸¦ ½±°Ô »ç¿ëÇϱâ À§ÇØ  »ç¿ëÇϴ Parameter structure
+ * Crypto Library�� ���� ����ϱ� ����  ����ϴ� Parameter structure
  */
 typedef struct _CryptoCoreContainer
 {
        int alg;                                                                                                                                                                /**<    Algorithm       */
        CryptoCoreCTX *ctx;                                                                                                                                             /**<    Algorithm       */
-       
+
        // Pseudo Random Number Generation (ANSI X9.17)
        int (*PRNG_seed)  (struct _CryptoCoreContainer *crt, cc_u8 *seed);
        int (*PRNG_get)   (struct _CryptoCoreContainer *crt, cc_u32 bitlength, cc_u8 *data);
-       
+
        // Message Digest (MD5, SHA-1)
        int (*MD_init)    (struct _CryptoCoreContainer *crt);
        int (*MD_update)  (struct _CryptoCoreContainer *crt, cc_u8 *msg, cc_u32 msglen);
        int (*MD_final)   (struct _CryptoCoreContainer *crt, cc_u8 *output);
        int (*MD_getHASH) (struct _CryptoCoreContainer *crt, cc_u8 *msg, cc_u32 msglen, cc_u8 *output);
-       
+
        // Message Authentication Code (CMAC, HMAC MD5, HMAC SHA-1)
        int (*MAC_init)   (struct _CryptoCoreContainer *crt, cc_u8 *Key, cc_u32 KeyLen);
        int (*MAC_update) (struct _CryptoCoreContainer *crt, cc_u8 *msg, cc_u32 msgLen);
@@ -74,7 +85,7 @@ typedef struct _CryptoCoreContainer
        int (*DH_GenAuthKey)            (struct _CryptoCoreContainer *crt, cc_u8* pPriv, cc_u8* pPub, cc_u8* pSharedSecret);
        int (*ECDH_Gen1stPhaseKey)      (struct _CryptoCoreContainer *crt, cc_u8* pDH_Xk, cc_u8* pDH1stPhaseKey);
        int (*ECDH_GenAuthKey)          (struct _CryptoCoreContainer *crt, cc_u8* pchXk, cc_u8* pchYv, cc_u8* pchKauth);
-       
+
        // Symmetric Encryption (DES, 3DES, AES, RC4, SNOW)
        // mode example : ENC_ECB, DEC_ECB, ENC_CBC, DEC_CBC, ...
        int (*SE_init)    (struct _CryptoCoreContainer *crt, cc_u32 mode, cc_u32 PADDING, cc_u8 *key, cc_u32 keysize, cc_u8 *IV);
@@ -88,7 +99,7 @@ typedef struct _CryptoCoreContainer
        int (*AE_encrypt) (struct _CryptoCoreContainer *crt, cc_u8 *in, cc_u32 inLen, cc_u8 *out, cc_u32 *outLen);
        int (*AE_decrypt) (struct _CryptoCoreContainer *crt, cc_u8 *in, cc_u32 inLen, cc_u8 *out, cc_u32 *outLen);
        int (*AE_decryptByCRT) (struct _CryptoCoreContainer *crt, cc_u8 *in, cc_u32 inLen, cc_u8 *out, cc_u32 *outLen);
-       
+
        // Digital Signature (DSA, EC-DSA)
        int (*DS_sign)    (struct _CryptoCoreContainer *crt, cc_u8 *hash, cc_u32 hashLen, cc_u8 *signature, cc_u32 *signLen);
        int (*DS_verify)  (struct _CryptoCoreContainer *crt, cc_u8 *hash, cc_u32 hashLen, cc_u8 *signature, cc_u32 signLen, int *result);
@@ -179,7 +190,7 @@ typedef struct _CryptoCoreContainer
 
        // ECC Support Functions (EC-DSA, EC-Dlgamal)
        int (*EC_setCurve)(
-               struct _CryptoCoreContainer *crt, cc_u16 Dimension, 
+               struct _CryptoCoreContainer *crt, cc_u16 Dimension,
                cc_u8* ECC_P_Data,   cc_u32 ECC_P_Len,
                cc_u8* ECC_A_Data,   cc_u32 ECC_A_Len,
                cc_u8* ECC_B_Data,   cc_u32 ECC_B_Len,
@@ -189,7 +200,7 @@ typedef struct _CryptoCoreContainer
        );
        int (*EC_genKeypair)(
                struct _CryptoCoreContainer *crt,
-               cc_u8 *PrivateKey,  cc_u32 *PrivateKeyLen, 
+               cc_u8 *PrivateKey,  cc_u32 *PrivateKeyLen,
                cc_u8 *PublicKey_X, cc_u32 *PublicKey_XLen,
                cc_u8 *PublicKey_Y, cc_u32 *PublicKey_YLen
        );
index 672aa44c7a093b1d1fe6ed9da7729cb5fe91e065..fe27a7bac0ca890008a1a3c71bb5778bdfcb0c20 100644 (file)
@@ -1,16 +1,26 @@
 /**
- * \file       CC_Constants.h
- * @brief      define constants for crypto library
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon, Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/09/28
- * $Id$
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Define constants for crypto library
+ */
+
+
 #ifndef _DRM_CONSTANTS_H
 #define _DRM_CONSTANTS_H
 
index 6d378336566fd9b4be9ec8b8fbc88f112c183169..04741ab9ec4bbaae3629bb6d8c09c9e01acd3457 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       CC_Context.h
- * @brief      context definitions for samsung Crypto Library
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon, Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/07
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Context definitions for Samsung Crypto Library
  */
 
+
 #ifndef _DRM_CONTEXT_H
 #define _DRM_CONTEXT_H
 
@@ -23,7 +34,7 @@
  *
  * used for big number representation
  */
-typedef struct {                                               
+typedef struct {
        cc_u32 sign;                                            /**<    0 for positive, 1 for negative number   */
        cc_u32 Length;                                          /**<    number of valid integers                                */
        cc_u32 Size;                                            /**<    unsigned long size of allocated memory  */
@@ -33,7 +44,7 @@ typedef struct {
 /**
  * @brief      Parameter sturcture
  *
- * Montgomery ¾Ë°í¸®ÁòÀ» »ç¿ëÇϱâ À§ÇØ »ç¿ëÇϴ Parameter structure
+ * Montgomery �˰����� ����ϱ� ���� ����ϴ� Parameter structure
  */
 typedef struct {                                               /**<    Structure to keep parameters for Montgomery     */
        cc_u32  ri;                                                     /**<    Length of Modulus                                                       */
@@ -76,7 +87,7 @@ typedef struct {
                SDRM_BIG_NUM            *ECC_n;                 /**<    order of base point     */
                SDRM_EC_POINT           *ECC_G;                 /**<    Base point                      */
                SDRM_BIG_NUM            *PRIV_KEY;              /**<    private key                     */
-               SDRM_EC_POINT           *PUBLIC_KEY; 
+               SDRM_EC_POINT           *PUBLIC_KEY;
 } SDRM_ECC_CTX;
 
 typedef SDRM_ECC_CTX           SDRM_ECDSAContext;
index 1de5240d092c892b3f93f33b018f1a4e5d8287c9..0d9ce077709e124847d33af8efdc5ac879461767 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       CC_Type.h
- * @brief      data types for CryptoCore library
+ * Copyright (c) 2008-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2008/08/26
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Data types for CryptoCore library
+ */
+
+
 #ifndef _CC_TYPE_H_
 #define _CC_TYPE_H_
 
index 0b50f135514bbe57a9c24e72cc9b754ef1a8116e..bc80448d28c5d1216b6dd26b2e68f59be3a20804 100644 (file)
@@ -1,15 +1,25 @@
 /**
- * \file       CryptoCore.h
- * @brief      main header file of crypto library
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : 
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/08/02
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @brief  Main header file of Crypto library
+ */
+
+
 #ifndef _CRYPTOCORE_H
 #define _CRYPTOCORE_H
 
index 43533228e6b7178929def953a3aea222478d4bf5..f408091663c09886bff115b4811eb0b8af46ad9e 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       ANSI_x931.h
- * @brief      Pseudorandom number generator based on a design described in ANSI X9.31
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Junbum Shin
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/08/23
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Junbum Shin
+ * @brief  Pseudorandom number generator based on a design described in ANSI X9.31
  */
 
 
@@ -29,7 +39,7 @@ extern "C" {
 #endif
 
 /*
- * @fn         SDRM_RNG_X931   
+ * @fn         SDRM_RNG_X931
  * @brief      generate random number with seed
  *
  * @param      Seed                            [in]seed for RNG System
index 57dc235a2ffdc0e77c748237dc8ee6fbd59c009f..7aff0579680d731a0ea711136a19d31c755a6418 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       bignum.h
- * @brief      big number library
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/08/03
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Big number library
  */
 
 
@@ -110,19 +120,19 @@ cc_u32 SDRM_DIGIT_Mod(cc_u32 Src1, cc_u32 Src2, cc_u32 Div);
 ////////////////////////////////////////////////////////////////////////////
 /*
  * @fn         SDRM_BN_IS_ODD(a)
- * @brief      check big number a is an odd number     
+ * @brief      check big number a is an odd number
  */
 #define SDRM_BN_IS_ODD(a)                      ((a)->pData[0] & 1)
 
 /*
  * @fn         SDRM_BN_FREE(X)
- * @brief      free allocated memory   
+ * @brief      free allocated memory
  */
 #define SDRM_BN_FREE(X)                                do {if (X) free(X);} while(0)
 
-/*     
+/*
  * @fn         SDRM_BN_OPTIMIZE_LENGTH(BN
- * @brief      optimize SDRM_BIG_NUM's length member   
+ * @brief      optimize SDRM_BIG_NUM's length member
  */
 #define SDRM_BN_OPTIMIZE_LENGTH(BN)    do {                                                                                                                    \
                                                                                while((BN)->Length > 0)                                                                         \
@@ -133,7 +143,7 @@ cc_u32 SDRM_DIGIT_Mod(cc_u32 Src1, cc_u32 Src2, cc_u32 Div);
                                                                        } while(0)
 /*
  * @fn         SDRM_IS_BN_NEGATIVE(X)
- * @brief      check big number's sign 
+ * @brief      check big number's sign
  */
 #define SDRM_IS_BN_NEGATIVE(X)         ((X)->sign)
 
index 9523ed8bdbd80f394231d4f1b33d1f47f16cb7b8..9f35e532d25cba7a2e75aa12555c445c9757ecce 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       des.h
- * @brief      high-speed implementation of DES
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/06
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  High-speed implementation of DES
  */
 
 
index 674066178402cf09c570ce148bb7aab8f82ceb75..5cb96839a0d4baca960d3fd4c038571b8293884e 100644 (file)
@@ -1,14 +1,23 @@
 /**
- * \file       ecc.h
- * @brief      ecc library based on big number
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jiyoung Moon
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/05/03
- * Note : optimized by Jiyoung Moon & Jisoon Park, August,2006.
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jiyoung Moon
+ * @brief  ECC library based on Big Number library
  */
 
 
@@ -82,9 +91,9 @@
 extern "C" {
 #endif
 
-///// ECC º¸Á¶ÇÔ¼ö
+///// ECC �����Լ�
 /*
- * @fn         SDRM_ECC_Init   
+ * @fn         SDRM_ECC_Init
  * @brief      return SDRM_EC_POINT structure
  *
  * @return     address of allocate structure
@@ -101,10 +110,10 @@ SDRM_EC_POINT *SDRM_ECC_Init(void);
  */
 SDRM_ECC_CTX *SDRM_CURVE_Init(void);
 
-///// ECC Point ¿¬»êÇÔ¼ö
+///// ECC Point �����Լ�
 /*
  * @fn         SDRM_CTX_EC_Chain
- * @brief      Chain ÇÔ¼ö
+ * @brief      Chain �Լ�
  *
  * signed window method        :       size of window = 4
  * chain for addition/subtraction of k Using sliding window method
@@ -135,7 +144,7 @@ int SDRM_CTX_EC_Chain(signed char *chain, cc_u32 *L_Src, cc_u32 *Len_Src, SDRM_B
  */
 int SDRM_CTX_EC_kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_Src, SDRM_BIG_NUM *k);
 
-/*     
+/*
  * @fn         SDRM_CTX_EC_2kP
  * @brief      get EC_Dst = k1*C1 + k2*C2
  *
@@ -156,8 +165,8 @@ int SDRM_CTX_EC_2kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *k1,
 ///// Functions of Converting Coordingate
 /*
  * @fn         SDRM_Mont_Jm2Jc
- * @brief      ÁÂÇ¥º¯ȯ 1
- *                     Modified Jacobian  =>  Chundnovsky Jacobian 
+ * @brief      ��ǥ��ȯ 1
+ *                     Modified Jacobian  =>  Chundnovsky Jacobian
  *                     (A->y)  <= (A->y)/2
  *                     (A->z2) <= (A->z)^2
  *                     (A->z3) <= (A->z)^3
@@ -174,7 +183,7 @@ int SDRM_Mont_Jm2Jc(SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *new_a, SDRM_BIG_NUM *ne
 
 /*
  * @fn         SDRM_Mont_Jc2Jm
- * @brief      ÁÂÇ¥º¯ȯ 2
+ * @brief      ��ǥ��ȯ 2
  *                     Chundnovsky Jacobian  =>  Modified Jacobian
  *                     (A->y)  <= 2*(A->y)
  *                     (A->z2) <= new_a*(A->z)^4
@@ -207,7 +216,7 @@ int SDRM_Mont_Jc2Jm(SDRM_EC_POINT *A, SDRM_BIG_NUM *new_a, SDRM_BIG_NUM *new_b,
 int SDRM_CTX_EC_Add_Jc(SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_EC_POINT *EC_Src2, SDRM_BIG_NUM *new_a, SDRM_BIG_NUM *new_b, SDRM_BIG_MONT *Mont);
 
 /*
- * @fn         SDRM_CTX_EC_Double_Jc   
+ * @fn         SDRM_CTX_EC_Double_Jc
  * @brief      Chundnovsky Jacobian coordinate
  *                     montgomery (A = 2B)
  *
index 12dd955ae107c0655b08f4101cb65c5baf9dc684..7654f11fa145f4d451bd8a53c68d3aed9e53c2c4 100644 (file)
@@ -1,23 +1,25 @@
-/** 
- * @file       fast_math.h
- * @brief      Header file for fast_mathf.c
+/**
+ * Copyright (c) 2008-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * [Optional] Detail description (major features, interface description, flow of control, and so on)
- * @see        [Optional] Related information
-
- * Copyright 2008 by Samsung Electronics, Inc.,
- * 
- * This software is the confidential and proprietary information
- * of Samsung Electronics, Inc. ("Confidential Information").  You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Samsung.
- * 
- * \internal
- * Author : Karen Ispiryan
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2008/08/28
-*/
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Karen Ispiryan
+ * @brief  Header file for fast_math.c
+ */
+
 
 #ifndef CCFAST_MATH_H
 #define CCFAST_MATH_H
@@ -64,7 +66,7 @@ typedef cc_u64 BasicDWord;
 #define HIGH_WORD(a)   (BasicWord)((a) >> BASICWORD_BITS_COUNT)
 
 /* In our implementation we are using assumption that DWord data type available for using. */
-/* If for some reasons it isn't so, then we just need to redefine rhe following two macros in appropriate way 
+/* If for some reasons it isn't so, then we just need to redefine rhe following two macros in appropriate way
  * and functions will work properly.
  */
 #define _add_add_(aw1,aw2,aw3,rwl,rwh) {                                                                                                       \
@@ -87,7 +89,7 @@ typedef cc_u64 BasicDWord;
 /**
   * @fn                        SDRM_ll_Cmp
   * @brief             Compare two large unsigned integers
-  * 
+  *
   * @param             pFirstOperand [in] the first operand
   * @param             pSecondOperand [in] the second operand
   *
@@ -106,11 +108,11 @@ void SDRM_ll_Copy(BasicWord *pFirstOperand, const BasicWord *pSecondOperand, uns
 /**
   * @fn                        SDRM_ll_bit_RShift
   * @brief             Shift large unsigned integer to the right by uBits
-  * 
+  *
   * @param             pOperand [inout] pointer to the operand to be shifted
   *
   * @return            Nothing
-  * @warning   We have to be careful when using this function because it modifies uOperandLength+1 words 
+  * @warning   We have to be careful when using this function because it modifies uOperandLength+1 words
   *                            that is by 1 word bigger then operand original size.
   *                            WWW....Operand...WWW|W <- it modifies the word immediately after the last one of passed operand.
   */
@@ -119,11 +121,11 @@ void SDRM_ll_bit_RShift(IN OUT BasicWord *pOperand, IN BasicWord uOperandLength,
 /**
   * @fn                        SDRM_ll_bit_LShift
   * @brief             Shift large unsigned integer to the left by uBits
-  * 
+  *
   * @param             pOperand [inout] pointer to the operand to be shifted
   *
   * @return            Nothing
-  * @warning   We have to be careful when using this function because it modifies uOperandLength+1 words 
+  * @warning   We have to be careful when using this function because it modifies uOperandLength+1 words
   *                            that is by 1 word bigger then operand original size.
   *                            It modifies the word immediately prior to the first one of passed operand -> W|WWW....Operand...WWW
   */
@@ -132,7 +134,7 @@ void SDRM_ll_bit_LShift(IN OUT BasicWord *pOperand, IN BasicWord uOperandLength,
 /**
   * @fn                        SDRM_ll_getMSW
   * @brief             Return index of most significant word.
-  * 
+  *
   * @param             pOperand [in] pointer to the large integer.
   *
   * @return            The index of most significant word.
@@ -143,7 +145,7 @@ int SDRM_ll_getMSW(IN const BasicWord *pOperand, IN BasicWord uOperandLength);
 /**
   * @fn                        SDRM_ll_Add
   * @brief             Add two large unsigned integers that have the same size.
-  * 
+  *
   * @param             pFirstOperand  [in] pointer to first large integer
   * @param             pSecondOperand [in] pointer to second large integer
   * @param             uOperandsLength [in] length of the operands in words
@@ -151,15 +153,15 @@ int SDRM_ll_getMSW(IN const BasicWord *pOperand, IN BasicWord uOperandLength);
   *
   * @return            carry if so.
   */
-int SDRM_ll_Add(IN const BasicWord *pFirstOperand, 
-                               IN const BasicWord *pSecondOperand, 
-                               IN BasicWord uOperandsLength, 
+int SDRM_ll_Add(IN const BasicWord *pFirstOperand,
+                               IN const BasicWord *pSecondOperand,
+                               IN BasicWord uOperandsLength,
                                OUT BasicWord *pResult);
 
 /**
   * @fn                        SDRM_ll_AddCarry
   * @brief             Add carry to large unsigned integer
-  * 
+  *
   * @param             oneWord  [in] value of carry
   * @param             pOperand [inout] pointer to large integer
   * @param             uOperandLength [in] length of the second operand in words
@@ -171,7 +173,7 @@ int SDRM_ll_AddCarry(IN BasicWord oneWord, IN BasicWord *pOperand, IN BasicWord
 /**
   * @fn                        SDRM_ll_Sub
   * @brief             Subtract two large unsigned integers that have the same size.
-  * 
+  *
   * @param             pFirstOperand   [in] pointer to first large integer
   * @param             pSecondOperand  [in] pointer to second large integer
   * @param             uOperandsLength [in] length of the operands in words
@@ -179,43 +181,43 @@ int SDRM_ll_AddCarry(IN BasicWord oneWord, IN BasicWord *pOperand, IN BasicWord
   *
   * @return            borrow if so.
   */
-int SDRM_ll_Sub(IN const BasicWord *pFirstOperand, 
-                               IN const BasicWord *pSecondOperand, 
-                               IN BasicWord uOperandsLength, 
+int SDRM_ll_Sub(IN const BasicWord *pFirstOperand,
+                               IN const BasicWord *pSecondOperand,
+                               IN BasicWord uOperandsLength,
                                OUT BasicWord *pResult);
 
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-void SDRM_ll_MulAdd(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLength, 
-                                       IN BasicWord *pSecondOperand, IN BasicWord uSecondOperandsLength, 
+void SDRM_ll_MulAdd(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLength,
+                                       IN BasicWord *pSecondOperand, IN BasicWord uSecondOperandsLength,
                                        OUT BasicWord *pResult);
 
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-void SDRM_ll_Mul(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLength, 
-                                IN BasicWord *pSecondOperand, IN BasicWord uSecondOperandsLength, 
+void SDRM_ll_Mul(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLength,
+                                IN BasicWord *pSecondOperand, IN BasicWord uSecondOperandsLength,
                                 OUT BasicWord *pResult);
 
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
@@ -227,64 +229,64 @@ void SDRM_ll_Square(IN BasicWord *pOperand, IN BasicWord uOperandLength, OUT Bas
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-void SDRM_ll_mont_Rem(IN OUT BasicWord *pFirstOperand, 
-                                         IN BasicWord *pModule, 
-                                         IN BasicWord uModuleLength, 
+void SDRM_ll_mont_Rem(IN OUT BasicWord *pFirstOperand,
+                                         IN BasicWord *pModule,
+                                         IN BasicWord uModuleLength,
                                          IN BasicWord inv);
 
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-int SDRM_ll_mont_Square(IN BasicWord *pFirstOperand, 
-                                               IN BasicWord *pModule, 
-                                               IN BasicWord uModuleLength, 
-                                               IN BasicWord Inv, 
+int SDRM_ll_mont_Square(IN BasicWord *pFirstOperand,
+                                               IN BasicWord *pModule,
+                                               IN BasicWord uModuleLength,
+                                               IN BasicWord Inv,
                                                OUT BasicWord *pResult);
 
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-int SDRM_ll_mont_Mul(IN BasicWord *pFirstOperand, 
-                                        IN BasicWord *pSecondOperand, 
-                                        IN BasicWord *pModule, 
-                                        IN BasicWord uModuleLengthInBytes, 
-                                        IN BasicWord Inv, 
+int SDRM_ll_mont_Mul(IN BasicWord *pFirstOperand,
+                                        IN BasicWord *pSecondOperand,
+                                        IN BasicWord *pModule,
+                                        IN BasicWord uModuleLengthInBytes,
+                                        IN BasicWord Inv,
                                         OUT BasicWord *pResult);
 
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-int SDRM_ll_ExpMod( IN BasicWord *pBase, IN BasicWord uBaseLengthInBytes, 
+int SDRM_ll_ExpMod( IN BasicWord *pBase, IN BasicWord uBaseLengthInBytes,
                                        IN BasicWord *pExponent, IN BasicWord uExponentLengthInBytes,
-                                       IN BasicWord *pModule, IN BasicWord uModuleLengthInBytes, 
+                                       IN BasicWord *pModule, IN BasicWord uModuleLengthInBytes,
                                        OUT BasicWord *pResult);
 
 #endif /*FAST_MATH_H*/
index 446f33db7d0ee36af4480f6e8f346f13f17d6bdc..93bcd03723b68f6a1b663e28513d732453662f54 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       hash.h
- * @brief      hash API function
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/08
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Hash API function
  */
 
+
 #ifndef _CCHASH_H
 #define _CCHASH_H
 
@@ -302,7 +313,7 @@ int SDRM_MD5_init(CryptoCoreContainer *crt);
  */
 int SDRM_MD5_update(CryptoCoreContainer *crt, cc_u8 *msg, cc_u32 msglen);
 
-/*     
+/*
  * @fn         SDRM_MD5_final
  * @brief      get hashed message
  *
index c8c53266ac2939f97ccca08998919a40ce572e5f..d4ef63de6cb09246026d2703a87d7c326d0bbad2 100644 (file)
@@ -1,3 +1,24 @@
+/**
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @brief MD5 implementation
+ */
+
 /*
  * Implementation of MD5
  */
index 80457a9598d3b11b9dc0c0bf60cd1a481077dca9..9bbecd5d1c80bb8d7213e8f8190a0444afbce110 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       moo.h
- * @brief      implementation of mode of operations
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/08/04
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of Mode Of Operations
  */
 
 
@@ -103,7 +113,7 @@ int SDRM_CBC_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV);
 int SDRM_CBC_Dec(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV);
 
 
-/*     
+/*
  * @fn         int SDRM_CFB_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
  * @brief      Encrypt a block with CFB mode
  *
index c77660efbdb758573b8f3384ba4a989c7c570f73..af322cc8aa14b899eee91145f8abf45923cc31c5 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       pkcs1_v21.h
- * @brief      PKCS#1 V1.5, V2.0(RSAES-OAEP), V2.1(RSASSA-PSS) Implemetation
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/20
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  PKCS#1 V1.5, V2.0(RSAES-OAEP), V2.1(RSASSA-PSS) Implementation
  */
 
 
index 98510ae65ef56ce3903124de66a8ad9a0fbe0ae6..1ec7535a6dffddfe5a3408c248af682e313567da 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       rc4.h
- * @brief      implementation of RC4 encryption scheme
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/01
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of RC4 encryption scheme
  */
 
 
index 773bbce3d03a7cdb6aedf5e1450e40ae479fdb57..3ccd08f05d14b3ea6dff0dbf7d11cf8947bb9a75 100644 (file)
@@ -1,7 +1,25 @@
-/*
- * Implementation of SHA-1
+/**
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @brief  Implementation of SHA1
+ */
+
+
 #ifndef _CCSHA1_H
 #define _CCSHA1_H
 
index 69eb1c60a6a1d525d348cbc6dd4957120e4bc1b4..1ef8cfb16193d8aec4cebbaf7ceeb847fec45855 100644 (file)
@@ -1,7 +1,25 @@
-/*
- * Implementation of SHA-2
+/**
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @brief  Implementation of SHA2
+ */
+
+
 #ifndef _CCSHA2_H
 #define _CCSHA2_H
 
index 639acd64d53ac41a1cd37611c9c2b1676569ae60..5956ea06ec0a671a1a4a1040f0f79cc7e07101ad 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       snow2.h
- * @brief      implementation of SNOW 2.0 encryption scheme
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/02
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of SNOW 2.0 encryption scheme
  */
 
 
index ab20527b66efd363a4816f663c419f7f0e8b1fe4..89629dd8ce0436b6f1be193917d71a5f16d51a81 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       drm_macro.h
- * @brief      Common Macro Difinitions
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Changsup Ahn
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/08/02
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Changsup Ahn
+ * @brief  Common macro definitions
+ */
+
+
 #ifndef _DRM_MACRO_H
 #define _DRM_MACRO_H
 
@@ -53,7 +64,7 @@
 }
 
 /*!    @brief  print out in hexa representation without length information     */
-#undef PrintBYTE_FILE_RAW                                                                      // raw data ÇüÅ·Π»ç¿ëÇÒ ¼ö ÀÖµµ·Ï Hex ÇüÅ·ΠÃâ·Â 
+#undef PrintBYTE_FILE_RAW                                                                      // raw data ���·� ����� �� �ֵ��� Hex ���·� ���
 #define PrintBYTE_FILE_RAW(pfile, Data, DataLen) {             \
        int idx;                                                                                        \
        for( idx=0; idx<(int)DataLen; idx++) {                          \
index 05409c14356afd0da3c0996c0a38c7fee85ba131..11b4ec709d8ca57bf2a4a159a592bc807dde24dd 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       cmac.h
- * @brief      funciton for c-mac code generation by AES-128
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/20
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Function for C-MAC code generation by AES-128
  */
 
 
index 21631b06149ca67f8d5801ee60a0933c41c3aff1..bb49c559cb0fc7afbab5a1254a40cb9446bd610b 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       dh.h
- * @brief      implementation of Diffie-Hellman Key Exchange Protocol
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2012/04/12
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of Diffie-Hellman Key Exchange Protocol
+ */
+
+
 #ifndef _DIFFIE_HELLMAN_H
 #define _DIFFIE_HELLMAN_H
 
index 8ba4fd9195e678fd05b330ac8483d3f9d83223a9..3fc0ecac81f669c0d7883e003d559d92fedeba0c 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       dsa.h
- * @brief      implementation of dsa signature/verifycation
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/23
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of DSA signature/verification
+ */
+
+
 #ifndef _CCDSA_H
 #define _CCDSA_H
 
@@ -54,9 +65,9 @@ SDRM_DSAContext *SDRM_DSA_InitCrt(void);
  * \n          CRYPTO_ERROR                            if conversion is failed
  */
 int SDRM_DSA_SetParam(
-       CryptoCoreContainer *crt, 
-       cc_u8 *DSA_P_Data,      cc_u32 DSA_P_Len, 
-       cc_u8 *DSA_Q_Data,      cc_u32 DSA_Q_Len, 
+       CryptoCoreContainer *crt,
+       cc_u8 *DSA_P_Data,      cc_u32 DSA_P_Len,
+       cc_u8 *DSA_Q_Data,      cc_u32 DSA_Q_Len,
        cc_u8 *DSA_G_Data,      cc_u32 DSA_G_Len);
 
 /*
@@ -75,8 +86,8 @@ int SDRM_DSA_SetParam(
  * \n          CRYPTO_ERROR                            if conversion is failed
  */
 int SDRM_DSA_SetKeyPair(
-       CryptoCoreContainer *crt, 
-       cc_u8 *DSA_Y_Data, cc_u32 DSA_Y_Len, 
+       CryptoCoreContainer *crt,
+       cc_u8 *DSA_Y_Data, cc_u32 DSA_Y_Len,
        cc_u8 *DSA_X_Data, cc_u32 DSA_X_Len);
 
 /*
@@ -98,9 +109,9 @@ int SDRM_DSA_SetKeyPair(
  * \n          CRYPTO_ERROR                            if conversion is failed
  */
 int SDRM_DSA_GenParam(
-       CryptoCoreContainer *crt, 
-       cc_u32 T_Siz, cc_u8 *DSA_P_Data, cc_u32 *DSA_P_Len, 
-       cc_u8 *DSA_Q_Data, cc_u32 *DSA_Q_Len, 
+       CryptoCoreContainer *crt,
+       cc_u32 T_Siz, cc_u8 *DSA_P_Data, cc_u32 *DSA_P_Len,
+       cc_u8 *DSA_Q_Data, cc_u32 *DSA_Q_Len,
        cc_u8 *DSA_G_Data, cc_u32 *DSA_G_Len);
 
 /*
@@ -119,8 +130,8 @@ int SDRM_DSA_GenParam(
  * \n          CRYPTO_ERROR                            if conversion is failed
  */
 int SDRM_DSA_GenKeypair(
-       CryptoCoreContainer *crt, 
-       cc_u8 *DSA_Y_Data, cc_u32 *DSA_Y_Len, 
+       CryptoCoreContainer *crt,
+       cc_u8 *DSA_Y_Data, cc_u32 *DSA_Y_Len,
        cc_u8 *DSA_X_Data, cc_u32 *DSA_X_Len);
 
 /*
index 8caa853f8c2addeef0e749620e6a53d45c77f1f9..522ce7895a390a216f2db82927b4150729e98103 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       ecdh.h
- * @brief      implementation of EC Diffie-Hellman Key Exchange Protocol
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/27
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of EC Diffie-Hellman Key Exchange Protocol
+ */
+
+
 #ifndef _CCECDH_H
 #define _CCECDH_H
 
index c9fd27fd635d24404cf96e5d81fa62160c2db6eb..a29018fb85406bdbee6f5e04aada0822e7036132 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       ecdsa.h
- * @brief      implementation of public key signature algorithm
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/13
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of Public Key Signature Algorithm
  */
 
+
 #ifndef _CCECDSA_H
 #define _CCECDSA_H
 
@@ -82,7 +93,7 @@ int SDRM_ECDSA_verify(CryptoCoreContainer *crt, cc_u8 *hash, cc_u32 hashLen, cc_
  * \n          CRYPTO_NULL_POINTER     if argument is null
  */
 int SDRM_ECC_Set_CTX(
-       struct _CryptoCoreContainer *crt, cc_u16 Dimension, 
+       struct _CryptoCoreContainer *crt, cc_u16 Dimension,
        cc_u8* ECC_P_Data,   cc_u32 ECC_P_Len,
        cc_u8* ECC_A_Data,   cc_u32 ECC_A_Len,
        cc_u8* ECC_B_Data,   cc_u32 ECC_B_Len,
@@ -108,11 +119,11 @@ int SDRM_ECC_Set_CTX(
  */
 int SDRM_ECC_genKeypair(
        CryptoCoreContainer *crt,
-       cc_u8 *PrivateKey,  cc_u32 *PrivateKeyLen, 
+       cc_u8 *PrivateKey,  cc_u32 *PrivateKeyLen,
        cc_u8 *PublicKey_X, cc_u32 *PublicKey_XLen,
        cc_u8 *PublicKey_Y, cc_u32 *PublicKey_YLen
 );
-                                                                                               
+
 /*
  * @fn         SDRM_ECC_setKeypair
  * @brief      Set key data for ECC
index 73e1df5ce974aa3b1fd8422a666596de94108e80..1b13c5e50f8d1dcc55d01e0a7b0062eb37bf9c59 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       hmac.h
- * @brief      funciton for c-mac code generation by SHA1 and MD5
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/19
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Function for C-MAC code generation by SHA1 and MD5
  */
 
 
index 9be75c7fa50c771b67439de30b8908a53abfa9af..43a876a49b2b4cac7c1a9fb5e422289bdac88881 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       rng.h
- * @brief      Random Number Generator Interface
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon, Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/07
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Random Number Generator Interface
  */
 
 
index 6c37c6920d241de1b965843b9452347f1789b5f7..176febc0b6b86fd7fb84a46abe222e132860519e 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       rsa.h
- * @brief      implementation of rsa encryption/decryption and signature/verifycation
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/20
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of RSA encryption/decryption and signature/verification
  */
 
 
@@ -152,7 +162,7 @@ int SDRM_RSA_GenerateKey
  */
 int SDRM_RSA_GenerateKeyforCRT(CryptoCoreContainer *crt, cc_u32 PaddingMethod,
                                                 cc_u8* RSA_E_Data,      cc_u32 RSA_E_Len,
-                                                cc_u8* RSA_N_Data,   cc_u32 *RSA_N_Len,                 
+                                                cc_u8* RSA_N_Data,   cc_u32 *RSA_N_Len,
                                                 cc_u8* RSA_D_Data,   cc_u32 *RSA_D_Len,
                                                 cc_u8* RSA_P_Data,   cc_u32 *RSA_P_Len,
                                                 cc_u8* RSA_Q_Data,   cc_u32 *RSA_Q_Len,
@@ -185,7 +195,7 @@ int SDRM_RSA_GenerateND
        cc_u8* RSA_D_Data,   cc_u32 *RSA_D_Len
 );
 
-/*     
+/*
  * @fn         SDRM_RSA_GenerateDwithPQE
  * @brief      generate D with specfied p, q, d mod (p-1), d mod (q-1) and e
  *
@@ -198,9 +208,9 @@ int SDRM_RSA_GenerateND
  * @param      RSA_Q_Data                                      [in]d value
  * @param      RSA_Q_Len                                       [in]byte-length of d
  * @param      RSA_D_P_Data                            [in]d mod (p-1) value
- * @param      RSA_D_P_Len                                     [in]byte-length of d mod (p-1) 
+ * @param      RSA_D_P_Len                                     [in]byte-length of d mod (p-1)
  * @param      RSA_D_Q_Data                            [in]d mod (q-1)  value
- * @param      RSA_D_Q_Len                                     [in]byte-length of d mod (q-1) 
+ * @param      RSA_D_Q_Len                                     [in]byte-length of d mod (q-1)
  * @param      RSA_D_Data                                      [out]d value
  * @param      RSA_D_Len                                       [out]byte-length of d
  *
index f49c7a196ac00daeb744fc77f9033104061a7ddf..145465ffaa7b6f44f09e571dd12c1054b3ada1c0 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       symmetric.h
- * @brief      API for symmetric encryption
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon, Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/07
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  API for symmetric encryption
  */
 
 
@@ -109,7 +119,7 @@ int SDRM_RC4_init(CryptoCoreContainer *crt, cc_u32 mode, cc_u32 PADDING, cc_u8 *
  */
 int SDRM_RC4_process(CryptoCoreContainer *crt, cc_u8 *in, cc_u32 inLen, cc_u8 *out, cc_u32 *outLen);
 
-/*     
+/*
  * @fn         SDRM_SNOW2_init
  * @brief      intialize crypt context for SNOW2
  *
@@ -162,7 +172,7 @@ int SDRM_DES_init(CryptoCoreContainer *crt, cc_u32 mode, cc_u32 PADDING, cc_u8 *
  * @brief      process message block
  *
  * @param      crt                                             [in]crypto env structure
- * @param      in                                              [in]message block       
+ * @param      in                                              [in]message block
  * @param      inLen                                   [in]byte-length of Text
  * @param      out                                             [out]processed message
  * @param      outLen                                  [out]byte-length of output
index 386fae941a829caadce9c1bdec1cd4370480911a..74630affef0e79995ddba7856a9ffcf01f56f46f 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       tdes.h
- * @brief      high-speed implementation of Triple DES-EDE
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/06
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  High-speed implementation of Triple DES-EDE
  */
 
 
index ecc0a31c049b695dfb6331aa56da929530da6941..476c28b904786c3ef2eb4291fffc4e5939182326 100644 (file)
@@ -1,3 +1,25 @@
+/**\r
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
+ *\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
+ *\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
+ */\r
+\r
+/**\r
+ * @file\r
+ * @brief  Self test header file for CryptoCore library\r
+ */\r
+\r
+\r
 #ifndef _SELFTEST_H_\r
 #define _SELFTEST_H_\r
 \r
index 8195568c5fbbac6840acd194bc9cfd8e213673a1..8cb4f9f4b4b2c00cdcf77f241e0adabe895d88dd 100644 (file)
@@ -1,16 +1,26 @@
 /**
- * \file       CC_API.c
- * @brief      API of samsung Crypto Library
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jae Heung Lee
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/10/24
- * Note : modified for implementation, by Jisoon, Park, 06/11/06
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jae Heung Lee
+ * @brief  API of Samsung Crypto Library
+ */
+
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
index 98c55d7579142cc3fdf1cf4aff7cfcbbe9b4eac3..9a6a9aa0eec0f940b443379b9a52b696adb368cf 100644 (file)
@@ -1,16 +1,26 @@
 /**
- * \file       ANSI_x931.c
- * @brief      Pseudorandom number generator based on a design described in ANSI X9.31
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Junbum Shin
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/08/23
- * Edited : Use date data, and update seed, by Jisoon Park, 06/11/08
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Junbum Shin
+ * @brief  Pseudorandom number generator based on a design described in ANSI X9.31
+ */
+
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -39,8 +49,8 @@ int   SDRM_RNG_X931(cc_u8 *Si_ANSI_X9_31, cc_u32 bitLength, cc_u8 *data)
 {
        static cc_u8 K_ANSI_X9_31[SDRM_X931_SEED_SIZ] = {0xfd, 0x74, 0x3d, 0xe1, 0xdc, 0x08, 0xdc, 0x3d, 0x0f, 0xea, 0xf5, 0xa3, 0x6e, 0xb1, 0xc0, 0x7f};
        int             res = CRYPTO_SUCCESS;
-       int             i, offset; 
-       int             byteLength, residue; 
+       int             i, offset;
+       int             byteLength, residue;
        int             numBlock, residueBlock;
        cc_u8   *DT;
        cc_u8   I[SDRM_X931_SEED_SIZ] = {0};
@@ -60,46 +70,46 @@ int SDRM_RNG_X931(cc_u8 *Si_ANSI_X9_31, cc_u32 bitLength, cc_u8 *data)
 
        SDRM_rijndaelKeySetupDec(RoundKey, K_ANSI_X9_31, 128);
 
-       byteLength = bitLength / 8 ; 
-       residue = bitLength - byteLength * 8; 
+       byteLength = bitLength / 8 ;
+       residue = bitLength - byteLength * 8;
 
        if (residue == 0)
        {
-               memset(data, 0x0, byteLength); 
+               memset(data, 0x0, byteLength);
        }
        else
        {
-               byteLength += 1; 
-               memset(data, 0x0, byteLength); 
+               byteLength += 1;
+               memset(data, 0x0, byteLength);
        }
 
-       numBlock = byteLength / SDRM_X931_SEED_SIZ; 
-       residueBlock = byteLength - numBlock * SDRM_X931_SEED_SIZ; 
-       offset = 0; 
+       numBlock = byteLength / SDRM_X931_SEED_SIZ;
+       residueBlock = byteLength - numBlock * SDRM_X931_SEED_SIZ;
+       offset = 0;
 
        for(i = 0; i < numBlock; i++)
        {
                SDRM_rijndaelDecrypt(RoundKey, 10, DT, I);
-               BlockXor(I, I, Si_ANSI_X9_31); 
+               BlockXor(I, I, Si_ANSI_X9_31);
 
                SDRM_rijndaelDecrypt(RoundKey, 10, I, Ri_ANSI_X9_31);
-               BlockXor(I, I, Ri_ANSI_X9_31); 
+               BlockXor(I, I, Ri_ANSI_X9_31);
 
                SDRM_rijndaelDecrypt(RoundKey, 10, I, Si_ANSI_X9_31);
-               memcpy(data + offset, Ri_ANSI_X9_31, SDRM_X931_SEED_SIZ); 
-               offset += SDRM_X931_SEED_SIZ;           
+               memcpy(data + offset, Ri_ANSI_X9_31, SDRM_X931_SEED_SIZ);
+               offset += SDRM_X931_SEED_SIZ;
        }
 
        if (residueBlock != 0)
        {
                SDRM_rijndaelDecrypt(RoundKey, 10, DT, I);
-               BlockXor(I, I, Si_ANSI_X9_31); 
+               BlockXor(I, I, Si_ANSI_X9_31);
 
                SDRM_rijndaelDecrypt(RoundKey, 10, I, Ri_ANSI_X9_31);
-               BlockXor(I, I, Ri_ANSI_X9_31); 
+               BlockXor(I, I, Ri_ANSI_X9_31);
 
                SDRM_rijndaelDecrypt(RoundKey, 10, I, Si_ANSI_X9_31);
-               memcpy(data + offset, Ri_ANSI_X9_31, residueBlock); 
+               memcpy(data + offset, Ri_ANSI_X9_31, residueBlock);
        }
 
        BlockXor(Si_ANSI_X9_31, I, Si_ANSI_X9_31);
index 04d302ea9f8224441039c976594168c00fd9a05e..b1561ab38b622503db2b761da843aaacd5602850 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       bignum.c
- * @brief      big number library
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/08/03
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Big number library
+ */
+
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -68,7 +79,7 @@ void SDRM_DIGIT_Mul(cc_u32 *Dest, cc_u32 Src1, cc_u32 Src2)
 
        Dest[0] = R0;
        Dest[1] = R1 + SDRM_HL(Db);
-       
+
        return;
 }
 
@@ -408,7 +419,7 @@ static cc_u32 SDRM_DWD_Sub(cc_u32 *pdDest, cc_u32 *pdSrc1, cc_u32 dSrcLen1, cc_u
        {
                memcpy(pdDest + i, pdSrc1 + i, (dSrcLen1 - i) * SDRM_SIZE_OF_DWORD);
        }
+
        //process carry
        if (!dCarry)
        {
@@ -449,8 +460,8 @@ static cc_u32 SDRM_DWD_MulAdd(cc_u32 *pdDest, cc_u32 dDstLen, cc_u32 *pdSrc, cc_
        //Multiplication part
        for (i = 0; i < dSrcLen; i++)
        {
-               /* 
-               * Time code optimization. To be continue! 
+               /*
+               * Time code optimization. To be continue!
                */
                pdDigit2 =((cc_u64)pdSrc[i] * dMultiplier) + pdDest[i] + dTemp;
         pdDest[i] = (cc_u32)pdDigit2;
@@ -637,7 +648,7 @@ static cc_u32 SDRM_DWD_Div(cc_u32 *pdDest, cc_u32 *pdRem,
 
        //Remove lowest '0's
        for (i = dSrcLen2 * SDRM_BitsInDWORD-1; !SDRM_CheckBitUINT32(pdSrc2, i); i--, dNum_of_Shift++);
-                
+
        if (dNum_of_Shift)
        {
                SDRM_DWD_SHL(C, C, c, dNum_of_Shift);
@@ -829,15 +840,15 @@ void SDRM_PrintBN(const char* s, SDRM_BIG_NUM* bn)
        }
        for (i = 0; i < bn->Length ; i++)
        {
-               printf("%08x ", (int)(bn->pData[bn->Length - i -1])); 
+               printf("%08x ", (int)(bn->pData[bn->Length - i -1]));
        }
 
-       printf("\n"); 
+       printf("\n");
 
-       return; 
+       return;
 }
 
-/*     
+/*
  * @fn         SDRM_BN2OS
  * @brief      Convert Big Number to Octet String
  *
@@ -1241,7 +1252,7 @@ int SDRM_BN_SHR(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src, cc_u32 NumOfShift)
                SDRM_BN_Copy(BN_Dst, BN_Src);
                return CRYPTO_SUCCESS;
        }
-       
+
        t = NumOfShift / SDRM_BitsInDWORD;
        if (t)
        {
@@ -1289,12 +1300,12 @@ int SDRM_BN_Add(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src1, SDRM_BIG_NUM *BN_Sr
        cc_u32                  carry, dSize, dAllocSize;
        SDRM_BIG_NUM    *temp, *temp_Src1, *temp_Src2;
        cc_u8                   *pbBuf;
-       
+
        dSize = MAX2(BN_Src1->Size, BN_Src2->Size);
        dAllocSize = sizeof(SDRM_BIG_NUM) + dSize * SDRM_SIZE_OF_DWORD;
 
        pbBuf = (cc_u8*)malloc(dAllocSize * 2);
-       
+
        if (!pbBuf)
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
@@ -1307,7 +1318,7 @@ int SDRM_BN_Add(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src1, SDRM_BIG_NUM *BN_Sr
        {
                SDRM_BN_Copy(BN_Dst, BN_Src2);
                free(pbBuf);
-               
+
                return CRYPTO_SUCCESS;
        }
 
@@ -1585,7 +1596,7 @@ int SDRM_BN_Div(SDRM_BIG_NUM *BN_Quotient, SDRM_BIG_NUM *BN_Remainder, SDRM_BIG_
                if (BN_Remainder != NULL)
                {
                        SDRM_BN_Copy(BN_Remainder, temp_Dividend);
-                       //free(pbBuf);  
+                       //free(pbBuf);
                        //return CRYPTO_SUCCESS; modify by Chalyi Aleksandr: it is not correct
                }
 
@@ -1657,7 +1668,7 @@ int SDRM_BN_ModAdd(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src1, SDRM_BIG_NUM *BN
        AllocSize = sizeof(SDRM_BIG_NUM) + dSize * SDRM_SIZE_OF_DWORD;
 
        pbBuf = (cc_u8*)malloc(AllocSize * 2);
-       
+
        if (!pbBuf)
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
@@ -1733,7 +1744,7 @@ int SDRM_BN_ModSub(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src1, SDRM_BIG_NUM *BN
        AllocSize = sizeof(SDRM_BIG_NUM) + dSize * SDRM_SIZE_OF_DWORD;
 
        pbBuf = (cc_u8*)malloc(AllocSize * 2);
-       
+
        if (!pbBuf)
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
@@ -1830,7 +1841,7 @@ int SDRM_BN_ModRed(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src, SDRM_BIG_NUM *BN_
        return CRYPTO_SUCCESS;
 }
 
-/*     
+/*
  * @fn         SDRM_BN_ModMul
  * @brief      Big Number Modular Multiplication
  *
@@ -2034,7 +2045,7 @@ int SDRM_MONT_Rzn2zn(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src1, SDRM_BIG_MONT
        cc_u32                  Src1_Len, Mod_Len, ri, i;
        cc_u32                  carry;
        SDRM_BIG_NUM    *Src1 = NULL;
-       
+
        if (!BN_Src1->Length)
        {
                BN_Dst->Length = 0;
@@ -2046,12 +2057,12 @@ int SDRM_MONT_Rzn2zn(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src1, SDRM_BIG_MONT
        Mod_Len = Mont->Mod->Length + 1;
 
        Src1 = SDRM_BN_Init(BN_Src1->Size + Mod_Len);
-    if(Src1 == NULL)//fixed prevent cid=89093 by guoxing.xu 
+    if(Src1 == NULL)//fixed prevent cid=89093 by guoxing.xu
     {
         return CRYPTO_ERROR;
     }
        SDRM_BN_Copy(Src1, BN_Src1);
-       
+
        if (!Src1_Len || !Mod_Len)
        {
                BN_Dst->Length = 0;
@@ -2064,11 +2075,11 @@ int SDRM_MONT_Rzn2zn(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src1, SDRM_BIG_MONT
        Src1->sign = BN_Src1->sign ^ Mont->Mod->sign;
 
        memset(Src1->pData + Src1->Length, 0, (Mod_Len + BN_Src1->Length - Src1->Length) * SDRM_SIZE_OF_DWORD);
-       
+
        Src1->Length = Mod_Len + BN_Src1->Length;
 
        for (i = 0; i < Mod_Len; i++)
-       {       
+       {
                if ((carry = SDRM_DWD_MulAdd(Src1->pData + i, Src1->Length - i, Mont->Mod->pData, Mod_Len, (cc_u32)Src1->pData[i] * Mont->N0)))
                {
                        Src1->pData[Src1->Length++] = carry;                                                            //Added by Park Ji soon, 05-03-2006
@@ -2126,7 +2137,7 @@ int SDRM_MONT_Mul(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Src1, SDRM_BIG_NUM *BN_
                        return CRYPTO_ERROR;
                }
        }
-       
+
        if (SDRM_BN_Cmp(BN_Src2, Mont->Mod) >= 0)
        {
                ret = SDRM_BN_ModRed(BN_Src2, BN_Src2, Mont->Mod);
@@ -2199,7 +2210,7 @@ int SDRM_MONT_Set(SDRM_BIG_MONT *Mont, SDRM_BIG_NUM *BN_Modulus)
        }
     if (Mont->R == NULL)//fix prevent 89095 by guoxing.xu
     {
-        return CRYPTO_MEMORY_ALLOC_FAIL; 
+        return CRYPTO_MEMORY_ALLOC_FAIL;
     }
        if (Mont->Mod == NULL)
        {
@@ -2208,7 +2219,7 @@ int SDRM_MONT_Set(SDRM_BIG_MONT *Mont, SDRM_BIG_NUM *BN_Modulus)
        if (Mont->Mod == NULL)//fix prevent 89-95 by guoxing.xu
     {
         SDRM_BN_FREE(Mont->R);
-        return CRYPTO_MEMORY_ALLOC_FAIL; 
+        return CRYPTO_MEMORY_ALLOC_FAIL;
     }
        if (SDRM_BN_Cmp(Mont->Mod, BN_Modulus) == 0)
        {
@@ -2260,24 +2271,24 @@ int SDRM_MONT_Set(SDRM_BIG_MONT *Mont, SDRM_BIG_NUM *BN_Modulus)
 
 // == NEW CODE ==
        SDRM_BN_Copy(Mont->Mod, BN_Modulus);
-       Mont->Mod->pData[Mont->Mod->Length] = 0;        
-       
+       Mont->Mod->pData[Mont->Mod->Length] = 0;
+
        Mont->ri = (SDRM_BN_num_bits(BN_Modulus) + (SDRM_BitsInDWORD - 1)) / SDRM_BitsInDWORD * SDRM_BitsInDWORD;
 
        SDRM_BN_SHL(R, BN_One, SDRM_BitsInDWORD);
-       
+
        // Compute -m^-1 mod b
        buf[0] = BN_Modulus->pData[0];
        buf[1] = 0;
        temp->pData[0] = buf[0];
        temp->Length = 1;
        temp->sign = BN_Modulus->sign;
-       
+
        SDRM_BN_ModInv(Ri, temp, R);
        Ri->sign = 1;
        SDRM_BN_Add(Ri, Ri, R);
        Mont->N0 = Ri->pData[0];
-       
+
        r2Size = 2 * (SDRM_BitsInDWORD + Mont->ri);
        Rsquare = SDRM_BN_Init(r2Size / SDRM_BitsInDWORD + 1);
        if (Rsquare == NULL)
@@ -2377,7 +2388,7 @@ int SDRM_UINT32_num_bits_index(cc_u32 *pdSrc, cc_u32 bitIndex)
                }
                temp >>= 1;
                i++;
-       }               
+       }
        return temp & 0x00000001;
 }
 
@@ -2405,7 +2416,7 @@ int SDRM_BN_num_bits(SDRM_BIG_NUM *BN_Src)
        i = (BN_Src->Length-1) * SDRM_BitsInDWORD;
 
        j = SDRM_UINT32_num_bits(&l);
-               
+
        return(i + j);
 }
 
@@ -2433,8 +2444,8 @@ int       SDRM_UINT32_num_bits(cc_u32 *pdSrc)
        {
                temp >>= 1;
                i++;
-       }               
-       
+       }
+
        return i;
 }
 
@@ -2459,8 +2470,8 @@ int       SDRM_INT_num_bits(int Src)
        {
                Src >>= 1;
                i++;
-       }               
-       
+       }
+
        return i;
 }
 
@@ -2526,7 +2537,7 @@ int SDRM_BN_ModExp(SDRM_BIG_NUM *BN_Dst, SDRM_BIG_NUM *BN_Base, SDRM_BIG_NUM *BN
        for (i = m - 1; i >= 0; i--)
        {
                SDRM_MONT_Mul(c_, c_, c_, Mont);
-               
+
                if (SDRM_CheckBitUINT32(BN_Exponent->pData, i) == 1)
                {
                        SDRM_MONT_Mul(c_, c_, a_, Mont);
@@ -2680,7 +2691,7 @@ int SDRM_BN_CheckRelativelyPrime(SDRM_BIG_NUM *BN_Src1, SDRM_BIG_NUM *BN_Src2)
 
                return CRYPTO_ISPRIME;
        }
-       
+
        free(pbBuf);
 
        return CRYPTO_ERROR;
@@ -2710,7 +2721,7 @@ int SDRM_BN_MILLER_RABIN(SDRM_BIG_NUM* n, cc_u32 t)
        cc_u32                  i, j, tmp, srcLen, s = 1;
        cc_u8                   *pbBuf;
        cc_u32                  dSize, dAllocSize;
-       
+
        dSize = n->Size;
        dAllocSize = sizeof(SDRM_BIG_NUM) + dSize * SDRM_SIZE_OF_DWORD;
 
@@ -2737,7 +2748,7 @@ int SDRM_BN_MILLER_RABIN(SDRM_BIG_NUM* n, cc_u32 t)
                        return CRYPTO_INVALID_ARGUMENT;
                }
        }
-       
+
        while(SDRM_CheckBitUINT32(n->pData, s) == 0) {
                s++;
        }
@@ -2773,7 +2784,7 @@ int SDRM_BN_MILLER_RABIN(SDRM_BIG_NUM* n, cc_u32 t)
                {
                        SDRM_BN_ModMul(y, y, y, n);
 
-                       if (SDRM_BN_Cmp(y, BN_One) == 0) 
+                       if (SDRM_BN_Cmp(y, BN_One) == 0)
                        {
                                free(pbBuf);
                                return CRYPTO_INVALID_ARGUMENT;
@@ -2995,7 +3006,7 @@ cc_u8 * SDRM_BN2STRBIN(cc_u32 *numberBits, SDRM_BIG_NUM *BN_Src)
                                tempC[(((BN_Src->Length - 1) - i) * (SDRM_SIZE_OF_DWORD * 8)) + j] = '0';
                        }
 
-                       temp = temp << 1;       
+                       temp = temp << 1;
                }
        }
 
@@ -3012,7 +3023,7 @@ cc_u8 * SDRM_BN2STRBIN(cc_u32 *numberBits, SDRM_BIG_NUM *BN_Src)
 
                tempR[k] = tempC[i];
                k++;
-               
+
        }
        tempR[k] = '\0';
        (*numberBits) = k - 1;
@@ -3153,7 +3164,7 @@ SDRM_BIG_NUM **SDRM_BN_MassInit(cc_u32 dBufSize, cc_u32 count)
        cc_u32 bnsiz = sizeof(SDRM_BIG_NUM) + dBufSize * SDRM_SIZE_OF_DWORD;
        cc_u8* ptr;
     void * tmp;
-       
+
        SDRM_BIG_NUM** BN_Buf = (SDRM_BIG_NUM**)malloc((sizeof(SDRM_BIG_NUM*) + bnsiz) * count);
 
        if (BN_Buf == NULL)
index b7834b2dc583aba0ef24bba42295bf37cc0a265e..cbcb459e0ea6a8eb1b8753bdbac37828c88dfda1 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       des.c
- * @brief      high-speed implementation of DES
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/06
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  High-speed implementation of DES
+ */
+
+
 //////////////////////////////////////////////////////////////////////////
 // Include Header Files
 //////////////////////////////////////////////////////////////////////////
@@ -55,7 +66,7 @@ int SDRM_DES_KeySched(cc_u8 *RoundKey, cc_u8 *UserKey, cc_u32 RKPos, cc_u32 RKSt
                c = (c >> SDRM_DES_KS_SHIFT[round]) | (c << (28 - SDRM_DES_KS_SHIFT[round]));
                d = (d >> SDRM_DES_KS_SHIFT[round]) | (d << (28 - SDRM_DES_KS_SHIFT[round]));
 
-               s =     SDRM_des_skb[0][((c)      ) & 0x3f] | 
+               s =     SDRM_des_skb[0][((c)      ) & 0x3f] |
                        SDRM_des_skb[1][((c >>  6L) & 0x03) | ((c >>  7L) & 0x3c)] |
                        SDRM_des_skb[2][((c >> 13L) & 0x0f) | ((c >> 14L) & 0x30)] |
                        SDRM_des_skb[3][((c >> 20L) & 0x01) | ((c >> 21L) & 0x06)  | ((c>>22L)&0x38)];
index d8251be2705612a9c9e10a35683eb67ba7009395..7325b19a4331332f5cc95db9ecf3caa572f8cc69 100644 (file)
@@ -1,16 +1,26 @@
 /**
- * \file       ecc.c
- * @brief      ecc library based on big number
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jiyoung Moon
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/05/03
- * Note : optimized by Jiyoung Moon & Jisoon Park, August,2006.
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jiyoung Moon
+ * @brief  ECC library based on Big Number library
+ */
+
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -114,17 +124,17 @@ int SDRM_CHECK_EC_POINT_ZERO(SDRM_EC_POINT* r)
        if ((r->x->Length == 0) | (r->y->Length == 0))
        {
                //      return = 1              if input is zero
-               return 1; 
+               return 1;
        }
        else
        {
-               return 0; 
+               return 0;
        }
 }
 
 /*
  * @fn         SDRM_Mont_Jm2Jc
- * @brief      ǥȯ 1 : Modified Jacobian  =>  Chundnovsky Jacobian 
+ * @brief      ǥȯ 1 : Modified Jacobian  =>  Chundnovsky Jacobian
  *                     (A->y)  <= (A->y)/2
  *                     (A->z2) <= (A->z)^2
  *                     (A->z3) <= (A->z)^3
@@ -146,12 +156,12 @@ int SDRM_Mont_Jm2Jc(SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *new_a, SDRM_BIG_NUM *ne
                        return CRYPTO_ERROR;
                }
        }
-       
+
        if (SDRM_BN_SHR(EC_Dst->y, EC_Dst->y, 1) != CRYPTO_SUCCESS)
        {
                return CRYPTO_ERROR;
        }
-       
+
        SDRM_MONT_Mul(EC_Dst->z2, EC_Dst->z, EC_Dst->z, Mont);
        SDRM_MONT_Mul(EC_Dst->z3, EC_Dst->z, EC_Dst->z2, Mont);
 
@@ -178,12 +188,12 @@ int SDRM_Mont_Jc2Jm(SDRM_EC_POINT *A, SDRM_BIG_NUM *new_a, SDRM_BIG_NUM *new_b,
        {
                return CRYPTO_ERROR;
        }
-       
+
        if (SDRM_BN_Cmp(A->y, Mont->Mod)>=0)
        {
                SDRM_BN_Sub(A->y, A->y, Mont->Mod);
        }
-       
+
        SDRM_MONT_Mul(A->z2, A->z, A->z, Mont);
        SDRM_MONT_Mul(A->z2, A->z2, A->z2, Mont);
        SDRM_MONT_Mul(A->z2, new_a, A->z2, Mont);
@@ -207,10 +217,10 @@ int SDRM_Mont_Jc2Jm(SDRM_EC_POINT *A, SDRM_BIG_NUM *new_a, SDRM_BIG_NUM *new_b,
  */
 int SDRM_CTX_EC_Add(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_EC_POINT *EC_Src2)
 {
-       SDRM_BIG_NUM    *t1, *t2, *t3, *lambda, *lambda_sqr; 
+       SDRM_BIG_NUM    *t1, *t2, *t3, *lambda, *lambda_sqr;
        SDRM_BIG_NUM    *x3, *y3;
        cc_u8                   *pbBuf = (cc_u8*)malloc(SDRM_ECC_ALLOC_SIZE * 7);
-       
+
        if (!pbBuf)
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
@@ -218,15 +228,15 @@ int SDRM_CTX_EC_Add(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_
 
        if (SDRM_CHECK_EC_POINT_ZERO(EC_Src1))
        {
-               SDRM_EC_COPY(EC_Dst, EC_Src2); 
+               SDRM_EC_COPY(EC_Dst, EC_Src2);
                free(pbBuf);
-               return CRYPTO_SUCCESS; 
+               return CRYPTO_SUCCESS;
        }
        else if (SDRM_CHECK_EC_POINT_ZERO(EC_Src2))
        {
-               SDRM_EC_COPY(EC_Dst, EC_Src1); 
+               SDRM_EC_COPY(EC_Dst, EC_Src1);
                free(pbBuf);
-               return CRYPTO_SUCCESS; 
+               return CRYPTO_SUCCESS;
        }
 
        t1         = SDRM_BN_Alloc(pbBuf,                                                                       SDRM_ECC_BN_BUFSIZE);
@@ -252,8 +262,8 @@ int SDRM_CTX_EC_Add(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_
                        SDRM_BN_ModInv(t1, t1, ctx->ECC_p);                                             /* t1 = 1/(2 * y1) */
 
                        SDRM_BN_ModMul(t2, EC_Src1->x, EC_Src1->x, ctx->ECC_p);         /* t2 = x1^2 */
-                       SDRM_BN_ModAdd(t3, t2, t2, ctx->ECC_p);                                 /* t3 = t2 + t2 */                      
-                       SDRM_BN_ModAdd(t3, t3, t2, ctx->ECC_p);                                 /* t2 = t3 + t2 = 3 * x1^2*/                    
+                       SDRM_BN_ModAdd(t3, t2, t2, ctx->ECC_p);                                 /* t3 = t2 + t2 */
+                       SDRM_BN_ModAdd(t3, t3, t2, ctx->ECC_p);                                 /* t2 = t3 + t2 = 3 * x1^2*/
                        SDRM_BN_ModAdd(t3, t3, ctx->ECC_a, ctx->ECC_p);                 /* t3 = 3 * x1^2 + a */
 
                        SDRM_BN_ModMul(lambda, t3, t1, ctx->ECC_p);                             /* lambda = (3 * x1^2 + a) / (2 * y1) */
@@ -276,12 +286,12 @@ int SDRM_CTX_EC_Add(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_
        SDRM_BN_ModMul(t2, t1, lambda, ctx->ECC_p);                                             /* t2 = (x1 - x3) * lambda */
        SDRM_BN_ModSub(y3, t2, EC_Src1->y, ctx->ECC_p);                                 /* y3 = (x1 - x3) * lambda - y1 */
 
-       SDRM_BN_Copy(EC_Dst->x, x3); 
-       SDRM_BN_Copy(EC_Dst->y, y3); 
+       SDRM_BN_Copy(EC_Dst->x, x3);
+       SDRM_BN_Copy(EC_Dst->y, y3);
 
        free(pbBuf);
 
-       return CRYPTO_SUCCESS; 
+       return CRYPTO_SUCCESS;
 }
 
 /*
@@ -304,25 +314,25 @@ int SDRM_CTX_EC_Add_Jc(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_EC_PO
 {
        SDRM_BIG_NUM    *u1, *u2, *s1, *s2, *h, *r, *tmp1, *tmp2;
        cc_u8                   *pbBuf = (cc_u8*)malloc(SDRM_ECC_ALLOC_SIZE * 8);
-       
+
        if (!pbBuf)
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
        }
-       
+
        if (EC_Src1->IsInfinity || SDRM_CHECK_EC_POINT_ZERO(EC_Src1))
        {
-               SDRM_EC_COPY(EC_Dst, EC_Src2); 
+               SDRM_EC_COPY(EC_Dst, EC_Src2);
                free(pbBuf);
 
-               return CRYPTO_SUCCESS; 
+               return CRYPTO_SUCCESS;
        }
        else if (EC_Src2->IsInfinity || SDRM_CHECK_EC_POINT_ZERO(EC_Src2))
        {
-               SDRM_EC_COPY(EC_Dst, EC_Src1); 
+               SDRM_EC_COPY(EC_Dst, EC_Src1);
                free(pbBuf);
 
-               return CRYPTO_SUCCESS; 
+               return CRYPTO_SUCCESS;
        }
 
        u1   = SDRM_BN_Alloc(pbBuf                                                        , SDRM_ECC_BN_BUFSIZE);
@@ -361,7 +371,7 @@ int SDRM_CTX_EC_Add_Jc(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_EC_PO
        {
                if (r->Length == 0)
                {
-                       // If (h == 0) & (r == 0), CTX_EC_Double_Jc 
+                       // If (h == 0) & (r == 0), CTX_EC_Double_Jc
                        // because B, C are same point.
                        free(pbBuf);
 
@@ -402,7 +412,7 @@ int SDRM_CTX_EC_Add_Jc(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_EC_PO
        SDRM_MONT_Mul(EC_Dst->z, EC_Src1->z, EC_Src2->z, Mont);
        SDRM_MONT_Mul(EC_Dst->z, EC_Dst->z, h, Mont);
 
-       // ȿ  Ʒ -> ʿ  ܺο 
+       // ȿ  Ʒ -> ʿ  ܺο
 #if 0
        // EC_Dst->z2
        SDRM_MONT_Mul(EC_Dst->z2, EC_Dst->z, EC_Dst->z, Mont);
@@ -434,7 +444,7 @@ int SDRM_CTX_EC_Double_Jc(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_BI
 {
        SDRM_BIG_NUM    *s, *k, *tmp1, *tmp2;
        cc_u8                   *pbBuf = (cc_u8*)malloc(SDRM_ECC_ALLOC_SIZE * 4);
-       
+
        if (!pbBuf)
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
@@ -443,16 +453,16 @@ int SDRM_CTX_EC_Double_Jc(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_BI
        // If B = infinite point || (B->y) = 0, A = infinite point.
        if (EC_Src1->IsInfinity || SDRM_CHECK_EC_POINT_ZERO(EC_Src1))
        {
-               EC_Dst->IsInfinity = 1; 
+               EC_Dst->IsInfinity = 1;
                free(pbBuf);
-               return CRYPTO_SUCCESS; 
+               return CRYPTO_SUCCESS;
        }
 
        s    = SDRM_BN_Alloc(pbBuf                                                        , SDRM_ECC_BN_BUFSIZE);
        k    = SDRM_BN_Alloc((cc_u8*)s + SDRM_ECC_ALLOC_SIZE,    SDRM_ECC_BN_BUFSIZE);
        tmp1 = SDRM_BN_Alloc((cc_u8*)k + SDRM_ECC_ALLOC_SIZE,    SDRM_ECC_BN_BUFSIZE);
        tmp2 = SDRM_BN_Alloc((cc_u8*)tmp1 + SDRM_ECC_ALLOC_SIZE, SDRM_ECC_BN_BUFSIZE);
-       
+
        // s
        SDRM_MONT_Mul(s, EC_Src1->y, EC_Src1->y, Mont);                 // s = (B->y)^2
        SDRM_MONT_Mul(tmp1, s, s, Mont);                                                        // tmp1 = (B->y)^4
@@ -505,7 +515,7 @@ int SDRM_CTX_EC_Double_Jc(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_BI
 
        // EC_Dst->z2
        SDRM_MONT_Mul(EC_Dst->z2, EC_Dst->z, EC_Dst->z, Mont);
-       
+
        // EC_Dst->z3
        SDRM_MONT_Mul(EC_Dst->z3, EC_Dst->z, EC_Dst->z2, Mont);
 
@@ -535,7 +545,7 @@ int SDRM_CTX_EC_Double_Jm(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_BI
 {
        SDRM_BIG_NUM    *a, *b, *c, *tmp1;
        cc_u8                   *pbBuf = (cc_u8*)malloc(SDRM_ECC_ALLOC_SIZE * 4);
-       
+
        if (!pbBuf)
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
@@ -544,10 +554,10 @@ int SDRM_CTX_EC_Double_Jm(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_BI
        // If B is the infinite point or (B->y) is zero, A is the infinite point.
        if (EC_Src1->IsInfinity || SDRM_CHECK_EC_POINT_ZERO(EC_Src1))
        {
-               EC_Dst->IsInfinity = 1; 
+               EC_Dst->IsInfinity = 1;
                free(pbBuf);
 
-               return CRYPTO_SUCCESS; 
+               return CRYPTO_SUCCESS;
        }
 
        a    = SDRM_BN_Alloc(pbBuf, SDRM_ECC_BN_BUFSIZE);
@@ -591,7 +601,7 @@ int SDRM_CTX_EC_Double_Jm(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_BI
        }
 
        SDRM_BN_Sub(EC_Dst->y, b, EC_Dst->y);
-       
+
        if (EC_Dst->y->sign)
        {
                SDRM_BN_Add(EC_Dst->y, EC_Dst->y, Mont->Mod);
@@ -626,7 +636,7 @@ int SDRM_CTX_EC_Double_Jm(SDRM_EC_POINT *EC_Dst, SDRM_EC_POINT *EC_Src1, SDRM_BI
 int SDRM_CTX_EC_Chain(signed char *chain, cc_u32 *L_Src, cc_u32 *Len_Src, SDRM_BIG_NUM *k, int window_size)
 {
        int             i, j = 0, AddorSub, last = 0, doublings = 0;
-       int             bits_k = 0, subtract=0, pos = 0, temp_1 = 0;    
+       int             bits_k = 0, subtract=0, pos = 0, temp_1 = 0;
        cc_u32  temp = 0;
        cc_u32  numDoubling = 0;                                        // number of doubling(= lshift)
 
@@ -661,7 +671,7 @@ int SDRM_CTX_EC_Chain(signed char *chain, cc_u32 *L_Src, cc_u32 *Len_Src, SDRM_B
                }
 
                bits_k -= window_size;
-               
+
                if ((SDRM_CheckBitUINT32(k->pData, bits_k) == (cc_u32)1 - AddorSub) && (bits_k >= 0))
                {
                        temp++;
@@ -729,7 +739,7 @@ int SDRM_CTX_EC_Chain(signed char *chain, cc_u32 *L_Src, cc_u32 *Len_Src, SDRM_B
                                subtract = 10;
                        }
                }
-               
+
                j = temp >> window_size;
 
                if (temp != 0)
@@ -749,8 +759,8 @@ int SDRM_CTX_EC_Chain(signed char *chain, cc_u32 *L_Src, cc_u32 *Len_Src, SDRM_B
                {
                        for(i = temp ; i > j ; i>>=1)
                        {
-                               chain[++pos] = 0;                               
-                               numDoubling++;                  
+                               chain[++pos] = 0;
+                               numDoubling++;
                        }
                }
 
@@ -765,18 +775,18 @@ int SDRM_CTX_EC_Chain(signed char *chain, cc_u32 *L_Src, cc_u32 *Len_Src, SDRM_B
 
                for( ; doublings > 0; doublings--)
                {
-                       chain[++pos] = 0;                               
+                       chain[++pos] = 0;
                        numDoubling++;
                }
 
                if (last == 1)
                {
-                       if (AddorSub == 1) 
+                       if (AddorSub == 1)
                        {
                                chain[++pos] = -1;
                        }
                }
-                               
+
                temp = 0;
                temp_1 = 0;
        }
@@ -808,24 +818,24 @@ int SDRM_CTX_EC_kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_S
        int                             w_p = (1 << (window_size-1)) + 1;       // pre-computation number
 //     int                             add = 0, subtract = 0;                          // add : num_(addition + subtract)
                                                                                                                // subtract :  0 - before = 0 & after = 0
-                                                                                                               //                        10 - before = 1 & after = 0   
-                                                                                                               //                         1 - before = 0 & after = 1   
-                                                                                                               //                        11 - before = 1 & after = 1   
+                                                                                                               //                        10 - before = 1 & after = 0
+                                                                                                               //                         1 - before = 0 & after = 1
+                                                                                                               //                        11 - before = 1 & after = 1
                                                                                                                //      => 0 : no subtract / 1 : subtract
        SDRM_EC_POINT   *Pw[9] = {0};                                           // number of precomputation data : 9 = w_p = 2^(window_size-1) + 1
        SDRM_BIG_MONT   *Mont;
        SDRM_BIG_NUM    *new_a, *new_b;
-       SDRM_BIG_NUM    *t1, *t2;               
+       SDRM_BIG_NUM    *t1, *t2;
        signed char             chain[2 * SDRM_MAX_DIMENSION_ECC];              // DIMENSION_ECC :  ecdsa.h define
        cc_u32                  length;                                                         // addition & subtrction chain length of k1 & k2
-       cc_u32                  lenD;                                                           // number of doubling of addition & subtrction chain of k1 & k2 
+       cc_u32                  lenD;                                                           // number of doubling of addition & subtrction chain of k1 & k2
 
        cc_u8                   *pbBuf = (cc_u8*)malloc(SDRM_ECC_ALLOC_SIZE * 4);
        if (!pbBuf)
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
        }
-       
+
        // k P ȿ check
        if (k->sign)
        {
@@ -835,12 +845,12 @@ int SDRM_CTX_EC_kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_S
 
        if (EC_Src->x->sign|EC_Src->y->sign)
        {
-               free(pbBuf);    
+               free(pbBuf);
                return CRYPTO_INVALID_ARGUMENT;
        }
 
        Mont = SDRM_MONT_Init(ctx->ECC_p->Size);
-       if (Mont == NULL) 
+       if (Mont == NULL)
        {
                free(pbBuf);
                return CRYPTO_MEMORY_ALLOC_FAIL;
@@ -868,7 +878,7 @@ int SDRM_CTX_EC_kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_S
        }
 
 
-       //chain 
+       //chain
        res = SDRM_CTX_EC_Chain(chain, &length, &lenD, k, window_size);
        if (res != CRYPTO_SUCCESS)
        {
@@ -877,7 +887,7 @@ int SDRM_CTX_EC_kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_S
 
                return CRYPTO_ERROR;
        }
-       
+
        // pre-computation Data         :               Chunvosky algorithm
                // Pw[1] = EC_Src
                // Pw[2] = 3 * EC_Src
@@ -943,17 +953,17 @@ int SDRM_CTX_EC_kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_S
                                // EC_Dst = EC_Dst - Pw[(chain[i + 1]]+1)/2]
                                SDRM_EC_COPY(Pw[0], Pw[(-chain[i + 1]+1)/2]);
                                SDRM_BN_Sub(Pw[0]->y, ctx->ECC_p, Pw[0]->y);
-                               SDRM_CTX_EC_Add_Jc(EC_Dst, EC_Dst, Pw[0], new_a, new_b, Mont);  
+                               SDRM_CTX_EC_Add_Jc(EC_Dst, EC_Dst, Pw[0], new_a, new_b, Mont);
                        }
                        SDRM_Mont_Jc2Jm(EC_Dst, new_a, new_b, Mont);
                }
        }
-       
+
        // montgomery reduction of EC_Dst
        SDRM_MONT_Rzn2zn(EC_Dst->x, EC_Dst->x, Mont);
        SDRM_MONT_Rzn2zn(EC_Dst->y, EC_Dst->y, Mont);
        SDRM_MONT_Rzn2zn(EC_Dst->z, EC_Dst->z, Mont);
-       
+
        if (EC_Dst->z->Length == 0)
        {
                for(i = 0; i < 9; i++)
@@ -979,7 +989,7 @@ int SDRM_CTX_EC_kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_S
        SDRM_BN_SHL(t1, t1, 1);
        SDRM_BN_ModInv(t2, t1, ctx->ECC_p);
        SDRM_BN_ModMul(EC_Dst->y, EC_Dst->y, t2, ctx->ECC_p);
-       
+
        // Memory Free
        for(i = 0; i < 9; i++)
        {
@@ -989,7 +999,7 @@ int SDRM_CTX_EC_kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT* EC_Dst, SDRM_EC_POINT *EC_S
        free(pbBuf);
        SDRM_MONT_Free(Mont);
 
-       return CRYPTO_SUCCESS; 
+       return CRYPTO_SUCCESS;
 }
 
 /*
@@ -1012,7 +1022,7 @@ int SDRM_CTX_EC_2kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *k1,
 {
        signed char             chain[2][2 * SDRM_MAX_DIMENSION_ECC];           // addition/subtrction chain of k1  k2
        cc_u32                  length[2];                                                              // addition/subtrction chain length of k1  k2
-       cc_u32                  lenD[2];                                                                // # of doubling of addition/subtrction chain of k1  k2 
+       cc_u32                  lenD[2];                                                                // # of doubling of addition/subtrction chain of k1  k2
        cc_u32                  idx[2];
        int                             window_size = 4;                                                // window size
        int                             w2 = (1 << (window_size - 1)) + 1;              // 2^(window_size-1)+1 : the precomputation point number
@@ -1050,7 +1060,7 @@ int SDRM_CTX_EC_2kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *k1,
        new_b = SDRM_BN_Alloc((cc_u8*)new_a + SDRM_ECC_ALLOC_SIZE, SDRM_ECC_BN_BUFSIZE);
        t1    = SDRM_BN_Alloc((cc_u8*)new_b + SDRM_ECC_ALLOC_SIZE, SDRM_ECC_BN_BUFSIZE);
        t2    = SDRM_BN_Alloc((cc_u8*)t1           + SDRM_ECC_ALLOC_SIZE, SDRM_ECC_BN_BUFSIZE);
-       
+
        if (SDRM_MONT_Zn2rzn(new_a, ctx->ECC_a, Mont) != CRYPTO_SUCCESS)
        {
                free(pbBuf);
@@ -1065,11 +1075,11 @@ int SDRM_CTX_EC_2kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *k1,
                return CRYPTO_ERROR;
        }
 
-       // chain 
+       // chain
        res = SDRM_CTX_EC_Chain(chain[0], &length[0], &lenD[0], k1, window_size);
        if (res != CRYPTO_SUCCESS)
        {
-               free(pbBuf); 
+               free(pbBuf);
                SDRM_MONT_Free(Mont);
                return res;
        }
@@ -1092,7 +1102,7 @@ int SDRM_CTX_EC_2kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *k1,
                        Pw[i][j] =  SDRM_ECC_Init();
                }
        }
-       
+
        SDRM_EC_COPY(Pw[0][1], EC_Src1);
        SDRM_EC_COPY(Pw[1][1], EC_Src2);
 
@@ -1104,7 +1114,7 @@ int SDRM_CTX_EC_2kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *k1,
                SDRM_BN_Copy(Pw[i][1]->z2, Pw[i][1]->z);
                SDRM_BN_Copy(Pw[i][1]->z3, Pw[i][1]->z);
                SDRM_CTX_EC_Double_Jc(Pw[i][0], Pw[i][1], new_a, new_b, Mont);
-               
+
                for (j=2;j<w2;j++)
                {
                        SDRM_CTX_EC_Add_Jc(Pw[i][j], Pw[i][j-1], Pw[i][0], new_a, new_b, Mont);
@@ -1112,11 +1122,11 @@ int SDRM_CTX_EC_2kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *k1,
                        SDRM_MONT_Mul(Pw[i][j]->z3, Pw[i][j]->z2, Pw[i][j]->z, Mont);
                }
        }
-       
+
        EC_Dst->IsInfinity = 1;
        idx[0] = idx[1] = 1;
 
-       // 켱 doubling   ū  
+       // 켱 doubling   ū
        if (lenD[0] != lenD[1])
        {
                i = ((lenD[0] > lenD[1]) ? 0 : 1);
@@ -1142,7 +1152,7 @@ int SDRM_CTX_EC_2kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *k1,
                                        // EC_Dst = EC_Dst - Pw[i][(chain[i][idx[i]]+1)/2]
                                        SDRM_EC_COPY(Pw[i][0], Pw[i][(-chain[i][idx[i]]+1)/2]);
                                        SDRM_BN_Sub(Pw[i][0]->y, ctx->ECC_p, Pw[i][0]->y);
-                                       SDRM_CTX_EC_Add_Jc(EC_Dst, EC_Dst, Pw[i][0], new_a, new_b, Mont);       
+                                       SDRM_CTX_EC_Add_Jc(EC_Dst, EC_Dst, Pw[i][0], new_a, new_b, Mont);
                                }
                                SDRM_Mont_Jc2Jm(EC_Dst, new_a, new_b, Mont);
                        }
@@ -1232,7 +1242,7 @@ int SDRM_CTX_EC_2kP(SDRM_ECC_CTX *ctx, SDRM_EC_POINT *EC_Dst, SDRM_BIG_NUM *k1,
        SDRM_MONT_Rzn2zn(EC_Dst->x, EC_Dst->x, Mont);
        SDRM_MONT_Rzn2zn(EC_Dst->y, EC_Dst->y, Mont);
        SDRM_MONT_Rzn2zn(EC_Dst->z, EC_Dst->z, Mont);
-       
+
        if (EC_Dst->z->Length == 0)
        {
                for(i = 0; i < 2; i++)
index b00376e6137127233ca88d6827e2fbd043c5381e..98f1cc2b376c523b9bd1517547b8f17c4220947f 100644 (file)
@@ -1,23 +1,25 @@
-/** 
- * @file       fast_mathf.c
- * @brief      This file contains optimized implementations for severall basic arithmetical functions.
+/**
+ * Copyright (c) 2008-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * [Optional] Detail description (major features, interface description, flow of control, and so on)
- * @see        [Optional] Related information
-
- * Copyright 2008 by Samsung Electronics, Inc.,
- * 
- * This software is the confidential and proprietary information
- * of Samsung Electronics, Inc. ("Confidential Information").  You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Samsung.
- * 
- * \internal
- * Author : Karen Ispiryan
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2008/08/28
-*/
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Karen Ispiryan
+ * @brief  Header file for fast_math.c
+ */
+
 
 #include <stdlib.h>
 #include <string.h>
@@ -31,7 +33,7 @@
 /**
   * @fn                        SDRM_ll_Cmp
   * @brief             Compare two large unsigned integers
-  * 
+  *
   * @param             pFirstOperand [in] the first operand
   * @param             pSecondOperand [in] the second operand
   *
@@ -75,11 +77,11 @@ void SDRM_ll_Copy(BasicWord *pFirstOperand, const BasicWord *pSecondOperand, uns
 /**
   * @fn                        SDRM_ll_bit_RShift
   * @brief             Shift large unsigned integer to the right by uBits
-  * 
+  *
   * @param             pOperand [inout] pointer to the operand to be shifted
   *
   * @return            Nothing
-  * @warning   We have to be careful when using this function because it modifies uOperandLength+1 words 
+  * @warning   We have to be careful when using this function because it modifies uOperandLength+1 words
   *                            that is by 1 word bigger then operand original size.
   *                            WWW....Operand...WWW|W <- it modifies the word immediately after the last one of passed operand.
   */
@@ -100,11 +102,11 @@ void SDRM_ll_bit_RShift(IN OUT BasicWord *pOperand, IN BasicWord uOperandLength,
 /**
   * @fn                        SDRM_ll_bit_LShift
   * @brief             Shift large unsigned integer to the left by uBits
-  * 
+  *
   * @param             pOperand [inout] pointer to the operand to be shifted
   *
   * @return            Nothing
-  * @warning   We have to be careful when using this function because it modifies uOperandLength+1 words 
+  * @warning   We have to be careful when using this function because it modifies uOperandLength+1 words
   *                            that is by 1 word bigger then operand original size.
   *                            It modifies the word immediately prior to the first one of passed operand -> W|WWW....Operand...WWW
   */
@@ -118,7 +120,7 @@ void SDRM_ll_bit_LShift(IN OUT BasicWord *pOperand, IN BasicWord uOperandLength,
        {
                t = *pOperand << uBits;
                *pOperand = t | (*(pOperand - 1) >> (BASICWORD_BITS_COUNT - uBits));
-               pOperand--;             
+               pOperand--;
        }
        *pOperand <<= uBits;
 }
@@ -126,7 +128,7 @@ void SDRM_ll_bit_LShift(IN OUT BasicWord *pOperand, IN BasicWord uOperandLength,
 /**
   * @fn                        SDRM_ll_getMSW
   * @brief             Return index of most significant word.
-  * 
+  *
   * @param             pOperand [in] pointer to the large integer.
   *
   * @return            The index of most significant word.
@@ -148,7 +150,7 @@ int SDRM_ll_getMSW(IN const BasicWord *pOperand, IN BasicWord uOperandLength)
 /**
   * @fn                        SDRM_ll_getMSB
   * @brief             Find the leftmost non-zero bit in passed unsigned integer.
-  * 
+  *
   * @param             oneWord [in] value of unsigned integer
   *
   * @return            Position of leftmost non-zero bit.
@@ -177,7 +179,7 @@ int SDRM_ll_getMSB(IN BasicWord oneWord)
 /**
   * @fn                        SDRM_ll_bit_getBitValue
   * @brief             Return one bit value in the large integer number.
-  * 
+  *
   * @param             pOperand [in] pointer to large integer
   * @param             nBit     [in] bit position in the large integer.
   *
@@ -194,7 +196,7 @@ int SDRM_ll_bit_getBitValue(IN BasicWord *pOperand, IN BasicWord nBit)
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
@@ -249,7 +251,7 @@ int SDRM_ll_bit_getBitsValue(IN const BasicWord *pOperand, IN BasicWord uStartBi
 /**
   * @fn                        SDRM_ll_Add
   * @brief             Add two large unsigned integers that have the same size.
-  * 
+  *
   * @param             pFirstOperand  [in] pointer to first large integer
   * @param             pSecondOperand [in] pointer to second large integer
   * @param             uOperandsLength [in] length of the operands in words
@@ -257,9 +259,9 @@ int SDRM_ll_bit_getBitsValue(IN const BasicWord *pOperand, IN BasicWord uStartBi
   *
   * @return            carry if so.
   */
-int SDRM_ll_Add(IN const BasicWord *pFirstOperand, 
-                               IN const BasicWord *pSecondOperand, 
-                               IN BasicWord uOperandsLength, 
+int SDRM_ll_Add(IN const BasicWord *pFirstOperand,
+                               IN const BasicWord *pSecondOperand,
+                               IN BasicWord uOperandsLength,
                                OUT BasicWord *pResult)
 {
        unsigned i = 1;
@@ -284,7 +286,7 @@ int SDRM_ll_Add(IN const BasicWord *pFirstOperand,
 /**
   * @fn                        SDRM_ll_AddCarry
   * @brief             Add carry to large unsigned integer
-  * 
+  *
   * @param             oneWord  [in] value of carry
   * @param             pOperand [inout] pointer to large integer
   * @param             uOperandLength [in] length of the second operand in words
@@ -315,7 +317,7 @@ int SDRM_ll_AddCarry(IN BasicWord oneWord, IN BasicWord *pOperand, IN BasicWord
 /**
   * @fn                        SDRM_ll_Sub
   * @brief             Subtract two large unsigned integers that have the same size.
-  * 
+  *
   * @param             pFirstOperand   [in] pointer to first large integer
   * @param             pSecondOperand  [in] pointer to second large integer
   * @param             uOperandsLength [in] length of the operands in words
@@ -323,9 +325,9 @@ int SDRM_ll_AddCarry(IN BasicWord oneWord, IN BasicWord *pOperand, IN BasicWord
   *
   * @return            borrow if so.
   */
-int SDRM_ll_Sub(IN const BasicWord *pFirstOperand, 
-                               IN const BasicWord *pSecondOperand, 
-                               IN BasicWord uOperandsLength, 
+int SDRM_ll_Sub(IN const BasicWord *pFirstOperand,
+                               IN const BasicWord *pSecondOperand,
+                               IN BasicWord uOperandsLength,
                                OUT BasicWord *pResult)
 {
        register BasicWord temp, borrow = 0;
@@ -345,17 +347,17 @@ int SDRM_ll_Sub(IN const BasicWord *pFirstOperand,
   * @fn                        SDRM_ll_Mul1
   * @brief             Multiply large integer by one word.
   *                            Result = oneWord*SecondOperand.
-  * 
+  *
   * @param             oneWord                                 [in] value of first multiplayer.
   * @param             pSecondOperand                  [in] pointer to large integer
   * @param             uSecondOperandsLength   [in] length of the second operand in words
   * @param             pResult                                 [out] pointer to result of multiplication
   *
-  * @warning   Routine doesn't store the last word of multiplication result, 
+  * @warning   Routine doesn't store the last word of multiplication result,
   *                            so we have to be carefull and take care about it after calling this function.
   */
-BasicWord SDRM_ll_Mul1(IN BasicWord oneWord, 
-                                          IN BasicWord *pSecondOperand, BasicWord uSecondOperandsLength, 
+BasicWord SDRM_ll_Mul1(IN BasicWord oneWord,
+                                          IN BasicWord *pSecondOperand, BasicWord uSecondOperandsLength,
                                           IN OUT BasicWord *pResult)
 {
        register BasicWord ow = oneWord;
@@ -380,17 +382,17 @@ BasicWord SDRM_ll_Mul1(IN BasicWord oneWord,
   * @fn                        SDRM_ll_Mul1
   * @brief             Multiply large integer by one word and add result to the another large integer.
   *                            Result += oneWord*SecondOperand.
-  * 
+  *
   * @param             oneWord  [in] value of first multiplayer.
   * @param             pSecondOperand [in] pointer to large integer
   * @param             uSecondOperandsLength [in] length of the second operand in words
   * @param             pResult [inout] pointer to result of multiplication
   *
-  * @warning   Routine doesn't store the last word of multiplication result, 
+  * @warning   Routine doesn't store the last word of multiplication result,
   *                            so we have to be carefull and take care about it after calling this function.
   */
-BasicWord SDRM_ll_MulAdd1(IN BasicWord oneWord, 
-                                                 IN BasicWord *pSecondOperand, BasicWord uSecondOperandsLength, 
+BasicWord SDRM_ll_MulAdd1(IN BasicWord oneWord,
+                                                 IN BasicWord *pSecondOperand, BasicWord uSecondOperandsLength,
                                                  IN OUT BasicWord *pResult)
 {
        register BasicWord ow = oneWord;
@@ -414,15 +416,15 @@ BasicWord SDRM_ll_MulAdd1(IN BasicWord oneWord,
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-void SDRM_ll_MulAdd(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLength, 
-                                       IN BasicWord *pSecondOperand, IN BasicWord uSecondOperandsLength, 
+void SDRM_ll_MulAdd(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLength,
+                                       IN BasicWord *pSecondOperand, IN BasicWord uSecondOperandsLength,
                                        OUT BasicWord *pResult)
 {
        while (uFirstOperandsLength--)
@@ -435,15 +437,15 @@ void SDRM_ll_MulAdd(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLeng
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-void SDRM_ll_Mul(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLength, 
-                                IN BasicWord *pSecondOperand, IN BasicWord uSecondOperandsLength, 
+void SDRM_ll_Mul(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLength,
+                                IN BasicWord *pSecondOperand, IN BasicWord uSecondOperandsLength,
                                 OUT BasicWord *pResult)
 {
        *(pResult+uSecondOperandsLength) = SDRM_ll_Mul1(*pFirstOperand++, pSecondOperand, uSecondOperandsLength, pResult);
@@ -457,7 +459,7 @@ void SDRM_ll_Mul(IN BasicWord *pFirstOperand, IN BasicWord uFirstOperandsLength,
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
@@ -509,11 +511,11 @@ void SDRM_ll_Square(IN BasicWord *pOperand, IN BasicWord uOperandLength, OUT Bas
 /**
   * @fn                        SDRM_ll_Rem
   * @brief             Compute reminder of division.
-  * 
-  * @warning   This is a temporary solution. It has been created mostly for testing purposes. 
+  *
+  * @warning   This is a temporary solution. It has been created mostly for testing purposes.
   */
-int SDRM_ll_Rem(IN BasicWord *pOperand, IN BasicWord uOperandLengthInBytes, 
-                               IN BasicWord *pModule, IN BasicWord uModuleLengthInBytes, 
+int SDRM_ll_Rem(IN BasicWord *pOperand, IN BasicWord uOperandLengthInBytes,
+                               IN BasicWord *pModule, IN BasicWord uModuleLengthInBytes,
                                OUT BasicWord *pResult)
 {
        BasicWord nWordX = DIV_BY_ORD_BYTES_COUNT(uOperandLengthInBytes);
@@ -522,7 +524,7 @@ int SDRM_ll_Rem(IN BasicWord *pOperand, IN BasicWord uOperandLengthInBytes,
 
        nWordX = SDRM_ll_getMSW(pOperand, nWordX) + 1;
        nWordP = SDRM_ll_getMSW(pModule, nWordX) + 1;
-       
+
        pTempResult = (BasicWord *)calloc(nWordX+1,BASICWORD_BYTES_COUNT);
        if (!pTempResult)
        {
@@ -532,7 +534,7 @@ int SDRM_ll_Rem(IN BasicWord *pOperand, IN BasicWord uOperandLengthInBytes,
        SDRM_ll_Copy(pTempResult, pOperand, nWordX);
 
        SDRM_DWD_Classical_REDC(pTempResult, nWordX, pModule, nWordP);
-       
+
        SDRM_ll_Copy(pResult, pTempResult, nWordP);
 
        free(pTempResult);
@@ -543,7 +545,7 @@ int SDRM_ll_Rem(IN BasicWord *pOperand, IN BasicWord uOperandLengthInBytes,
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
@@ -580,16 +582,16 @@ int SDRM_ll_mont_Inverse(OUT BasicWord *out, IN BasicWord oneWord)
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-void SDRM_ll_mont_Rem(IN OUT BasicWord *pFirstOperand, 
-                                         IN BasicWord *pModule, 
-                                         IN BasicWord uModuleLength, 
+void SDRM_ll_mont_Rem(IN OUT BasicWord *pFirstOperand,
+                                         IN BasicWord *pModule,
+                                         IN BasicWord uModuleLength,
                                          IN BasicWord inv)
 {
        BasicWord lp;              /* leftmost non-zero element */
@@ -623,17 +625,17 @@ void SDRM_ll_mont_Rem(IN OUT BasicWord *pFirstOperand,
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-int SDRM_ll_mont_Square(IN BasicWord *pFirstOperand, 
-                                               IN BasicWord *pModule, 
-                                               IN BasicWord uModuleLength, 
-                                               IN BasicWord Inv, 
+int SDRM_ll_mont_Square(IN BasicWord *pFirstOperand,
+                                               IN BasicWord *pModule,
+                                               IN BasicWord uModuleLength,
+                                               IN BasicWord Inv,
                                                OUT BasicWord *pResult)
 {
        pResult[uModuleLength * 2] = 0;
@@ -643,7 +645,7 @@ int SDRM_ll_mont_Square(IN BasicWord *pFirstOperand,
        /* Compute the modulo by the Montgomery */
        SDRM_ll_mont_Rem(pResult, pModule, uModuleLength, Inv);
 
-       /* Note: The next step for making toolkit faster is to redesign Montgomery functions and remove all memory allocation 
+       /* Note: The next step for making toolkit faster is to redesign Montgomery functions and remove all memory allocation
           and copying from there. That means that exponentiation routine should be redesigne as well. */
        memcpy(pFirstOperand, pResult + uModuleLength, MUL_BY_ORD_BYTES_COUNT(uModuleLength));
        return CRYPTO_SUCCESS;
@@ -652,18 +654,18 @@ int SDRM_ll_mont_Square(IN BasicWord *pFirstOperand,
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
   * @warning   [Optional] constraints or notices
   * @see               [Optional] related information
   */
-int SDRM_ll_mont_Mul(IN BasicWord *pFirstOperand, 
-                                        IN BasicWord *pSecondOperand, 
-                                        IN BasicWord *pModule, 
-                                        IN BasicWord uModuleLengthInBytes, 
-                                        IN BasicWord Inv, 
+int SDRM_ll_mont_Mul(IN BasicWord *pFirstOperand,
+                                        IN BasicWord *pSecondOperand,
+                                        IN BasicWord *pModule,
+                                        IN BasicWord uModuleLengthInBytes,
+                                        IN BasicWord Inv,
                                         OUT BasicWord *pResult)
 {
        BasicWord P_longs;             /* number of longs in P, X and Y */
@@ -685,7 +687,7 @@ int SDRM_ll_mont_Mul(IN BasicWord *pFirstOperand,
        /* Compute the modulo by the Montgomery */
        SDRM_ll_mont_Rem(XY, pModule, P_longs, Inv);
 
-       /* Note: The next step for making toolkit faster is to redesign Montgomery functions and remove all memory allocation 
+       /* Note: The next step for making toolkit faster is to redesign Montgomery functions and remove all memory allocation
           and copying from there. That means that exponentiation routine should be redesigne as well. */
        memcpy(pResult, XY + P_longs, uModuleLengthInBytes);
        free(XY);
@@ -695,7 +697,7 @@ int SDRM_ll_mont_Mul(IN BasicWord *pFirstOperand,
 /**
   * @fn                        [Mandatory] Function name
   * @brief             [Mandatory] Description of major features and algorithms
-  * 
+  *
   * @param             [Optional] description of parameters ([one among in, out, inout])
   *
   * @return            [Optional] description of return value
@@ -704,9 +706,9 @@ int SDRM_ll_mont_Mul(IN BasicWord *pFirstOperand,
   */
 
 #define _win_pval(i) (BasicWord*)(temp_1 + (i) * uOrdsP)
-int SDRM_ll_ExpMod( IN BasicWord *pBase, IN BasicWord uBaseLengthInBytes, 
+int SDRM_ll_ExpMod( IN BasicWord *pBase, IN BasicWord uBaseLengthInBytes,
                                        IN BasicWord *pExponent, IN BasicWord uExponentLengthInBytes,
-                                       IN BasicWord *pModule, IN BasicWord uModuleLengthInBytes, 
+                                       IN BasicWord *pModule, IN BasicWord uModuleLengthInBytes,
                                        OUT BasicWord *pResult)
 {
        int nStatus = CRYPTO_SUCCESS;
@@ -821,7 +823,7 @@ int SDRM_ll_ExpMod( IN BasicWord *pBase, IN BasicWord uBaseLengthInBytes,
                {
                        SDRM_ll_mont_Mul(_win_pval(i - 1), _win_pval(n_mem), pModule, uModuleLengthInBytes, inv, _win_pval(i));
                }
-               
+
                /* OK, now let compute R mod P */
                memset(m_temp, 0, 2 * uModuleLengthInBytes + 1);
                m_temp[uOrdsP] = 1;
@@ -832,7 +834,7 @@ int SDRM_ll_ExpMod( IN BasicWord *pBase, IN BasicWord uBaseLengthInBytes,
                /* Compute the exponent */
                for(i = k; i >= win_len-1; )
                {
-                       /* Note: I don't like this solution, but it was easy and from that point of view was suitable for short development cycle. 
+                       /* Note: I don't like this solution, but it was easy and from that point of view was suitable for short development cycle.
                           During further refactoring exponent bits processing should be changed in a way that makes possible to perform
                           all computations inside of the one cycle. See some additional related comments right after the body of this cycle.*/
 
index 0ee058c1768aa48580e3fa99badaf92dec720264..fd4bea368458edd645a2970a8fd9d2f7b89285ab 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       hash.c
- * @brief      hash API function
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/08
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Hash API function
  */
 
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -318,7 +329,7 @@ int SDRM_SHA384_init(CryptoCoreContainer *crt)
        return CRYPTO_SUCCESS;
 }
 
-/*             
+/*
  * @fn         SDRM_SHA384_update
  * @brief      process a message block
  *
index e11e03477e8f543e0dbb2379dd8fc41265c5c3f8..89ad0c0e7e040f029b407de03e5d11c255a49d04 100644 (file)
@@ -1,7 +1,25 @@
-/*
- * MD5 implementation
+/**
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @brief MD5 implementation
+ */
+
+
 #include "cc_md5.h"
 
 //Constants for MD5Transform routine.
@@ -89,7 +107,7 @@ void SDRM_MD5_Update(SDRM_MD5Context *ctx, cc_u8* input, cc_u32 inputLen)
        {
                ctx->count[1]++;
        }
-       
+
        ctx->count[1] += ((cc_u32)inputLen >> 29);
 
        partLen = 64 - idx;
@@ -100,7 +118,7 @@ void SDRM_MD5_Update(SDRM_MD5Context *ctx, cc_u8* input, cc_u32 inputLen)
                memcpy(&ctx->buffer[idx], input, partLen);
                SDRM_MD5Transform(ctx->state, ctx->buffer);
 
-               for (i = partLen; i + 63 < inputLen; i += 64) 
+               for (i = partLen; i + 63 < inputLen; i += 64)
                {
                        SDRM_MD5Transform(ctx->state, &input[i]);
                }
@@ -257,7 +275,7 @@ static void SDRM_Decode (cc_u32 *output, const unsigned char *input, cc_u32 len)
        for (i = 0, j = 0; j < len; i++, j += 4)
        {
                output[i] = (
-               (((cc_u32)input[j]    )      ) | 
+               (((cc_u32)input[j]    )      ) |
                (((cc_u32)input[j + 1]) <<  8) |
                (((cc_u32)input[j + 2]) << 16) |
                (((cc_u32)input[j + 3]) << 24));
index 95c465cfae9b189ea48daa033a132eca3fe0148f..b8a202da5bccb14585b4d2e1ef43b314935ba044 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       moo.c
- * @brief      implementation of mode of operations
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/08/04
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of Mode Of Operations
  */
 
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -107,9 +118,9 @@ int SDRM_CBC_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
 {
        int i;
 
-       switch(Algorithm) 
+       switch(Algorithm)
        {
-               case ID_AES128 : 
+               case ID_AES128 :
                        for (i = 0; i < 16; i++)
                        {
                                IV[i] ^= in[i];
@@ -120,7 +131,7 @@ int SDRM_CBC_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
                        memcpy(IV, out, 16);
 
                        break;
-               case ID_AES192 : 
+               case ID_AES192 :
                        for (i = 0; i < 16; i++)
                        {
                                IV[i] ^= in[i];
@@ -131,7 +142,7 @@ int SDRM_CBC_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
                        memcpy(IV, out, 16);
 
                        break;
-               case ID_AES256 : 
+               case ID_AES256 :
                        for (i = 0; i < 16; i++)
                        {
                                IV[i] ^= in[i];
@@ -190,17 +201,17 @@ int SDRM_CBC_Dec(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV){
 
        switch(Algorithm)
        {
-               case ID_AES128 : 
+               case ID_AES128 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelDecrypt((const cc_u32*)(void*)key, 10, in, out);
                        break;
-               case ID_AES192 : 
+               case ID_AES192 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelDecrypt((const cc_u32*)(void*)key, 12, in, out);
                        break;
-               case ID_AES256 : 
+               case ID_AES256 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelDecrypt((const cc_u32*)(void*)key, 14, in, out);
@@ -249,17 +260,17 @@ int SDRM_CFB_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
 
        switch(Algorithm)
        {
-               case ID_AES128 : 
+               case ID_AES128 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 10, IV, out);
                        break;
-               case ID_AES192 : 
+               case ID_AES192 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 12, IV, out);
                        break;
-               case ID_AES256 : 
+               case ID_AES256 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 14, IV, out);
@@ -277,7 +288,7 @@ int SDRM_CFB_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
                default :
                        return CRYPTO_INVALID_ARGUMENT;
        }
-       
+
        for (i = 0; i < BlockLen; i++)
        {
                out[i] ^= buf[i];
@@ -308,17 +319,17 @@ int SDRM_CFB_Dec(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
 
        switch(Algorithm)
        {
-               case ID_AES128 : 
+               case ID_AES128 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 10, IV, out);
                        break;
-               case ID_AES192 : 
+               case ID_AES192 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 12, IV, out);
                        break;
-               case ID_AES256 : 
+               case ID_AES256 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 14, IV, out);
@@ -336,7 +347,7 @@ int SDRM_CFB_Dec(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
                default :
                        return CRYPTO_INVALID_ARGUMENT;
        }
-       
+
        for (i = 0; i < BlockLen; i++)
        {
                out[i] ^= buf[i];
@@ -367,17 +378,17 @@ int SDRM_OFB_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
 
        switch(Algorithm)
        {
-               case ID_AES128 : 
+               case ID_AES128 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 10, IV, out);
                        break;
-               case ID_AES192 : 
+               case ID_AES192 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 12, IV, out);
                        break;
-               case ID_AES256 : 
+               case ID_AES256 :
                        BlockLen = 16;
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 14, IV, out);
@@ -406,7 +417,7 @@ int SDRM_OFB_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV)
        return CRYPTO_SUCCESS;
 }
 
-/*     
+/*
  * @fn         SDRM_CTR_Enc
  * @brief      Encrypt a block with CTR mode
  *
@@ -427,7 +438,7 @@ int SDRM_CTR_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV, cc
 
        switch(Algorithm)
        {
-               case ID_AES128 : 
+               case ID_AES128 :
                        BlockLen = 16;
                        IV[12] = (cc_u8)(0xff & (counter >> 24));
                        IV[13] = (cc_u8)(0xff & (counter >> 16));
@@ -436,7 +447,7 @@ int SDRM_CTR_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV, cc
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 10, IV, out);
                        break;
-               case ID_AES192 : 
+               case ID_AES192 :
                        BlockLen = 16;
                        IV[12] = (cc_u8)(0xff & (counter >> 24));
                        IV[13] = (cc_u8)(0xff & (counter >> 16));
@@ -445,7 +456,7 @@ int SDRM_CTR_Enc(int Algorithm, cc_u8 *out, cc_u8 *in, cc_u8 *key, cc_u8 *IV, cc
                        memcpy(buf, in, BlockLen);
                        SDRM_rijndaelEncrypt((const cc_u32*)(void*)key, 12, IV, out);
                        break;
-               case ID_AES256 : 
+               case ID_AES256 :
                        BlockLen = 16;
                        IV[12] = (cc_u8)(0xff & (counter >> 24));
                        IV[13] = (cc_u8)(0xff & (counter >> 16));
index 53f5845252ae5bc6af3082e863c1e7663bd1b714..b202f0ad931e9ba6cd5bf063e467a3cad2f27b13 100644 (file)
@@ -1,16 +1,26 @@
 /**
- * \file       pkcs1_v21.c
- * @brief      PKCS#1 V1.5, V2.0(RSAES-OAEP), V2.1(RSASSA-PSS) Implemetation
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/20
- * Note : Edited for Big-Endian Machine support, 2008/12/16
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  PKCS#1 V1.5, V2.0(RSAES-OAEP), V2.1(RSASSA-PSS) Implementation
  */
 
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -49,7 +59,7 @@ int SDRM_Enpad_Rsaes_pkcs15(cc_u8 *EM, cc_u8 *m, cc_u32 mLen, cc_u32 k)
 
                EM[0] = 0x00;
                EM[1] = 0x02;
-               
+
                for (i = 0; i < 16; i++)
                {
                        Si_ANSI_X9_31[i] = ((rand()  << 16) + rand()) & 0xff;
@@ -1038,7 +1048,7 @@ static int SDRM_MGF1(int HASH_Algorithm, cc_u8* mask, cc_u8* pbSeed, cc_u32 Seed
                                SDRM_SHA256_Update(&sha256_ctx, Seed, SeedLen + 4);     //Input data
                                SDRM_SHA256_Final(&sha256_ctx, hash);                           //Get Output
                                break;
-#ifndef _OP64_NOTSUPPORTED     
+#ifndef _OP64_NOTSUPPORTED
                        case ID_SHA384 :
                                SDRM_SHA384_Init(&sha384_ctx);                                          //Init hash function
                                SDRM_SHA384_Update(&sha384_ctx, Seed, SeedLen + 4);     //Input data
index 6db4ea7e5f4818820269150f4505bf5daf124146..51fdb0ce311247f3b6d6a4c34b2ed5f3dcc780a8 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       rc4.c
- * @brief      implementation of RC4 encryption scheme
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/01
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of RC4 encryption scheme
  */
 
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -84,7 +95,7 @@ int SDRM_RC4_Setup(SDRM_RC4Context *ctx, cc_u8 *UserKey, cc_u32 keyLen)
 //             LOG4DRM_INFO(&CryptoLogCTX), "is Big Endian machine\n");
                memcpy(ctx->s, RC4_S_VALUE_BIG, 256);
        }
-       
+
        memcpy(ctx->key, UserKey, keyLen);
 
        ctx->keyLen = keyLen;
@@ -132,7 +143,7 @@ int SDRM_RC4_PRNG(SDRM_RC4Context *ctx, cc_u8 *in, cc_u32 inLen, cc_u8 *out)
 {
        cc_u32  i, j, k;
        cc_u8   temp;
-       
+
        i = ctx->i;
        j = ctx->j;
 
index be9dd2aaf05b73b57f60ca49f2ce49b496f5a545..33bd72139ea68fd19c464905dfb56e3d5550abcb 100644 (file)
@@ -1,16 +1,32 @@
+/**
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
 /* For torrentcheck.c, main() commented out */
 /* sha1.c : Implementation of the Secure Hash Algorithm */
 
 /* SHA: NIST's Secure Hash Algorithm */
 
-/*     This version written November 2000 by David Ireland of 
+/*     This version written November 2000 by David Ireland of
        DI Management Services Pty Limited <code@di-mgt.com.au>
 
-       Adapted from code in the Python Cryptography Toolkit, 
+       Adapted from code in the Python Cryptography Toolkit,
        version 1.0.0 by A.M. Kuchling 1995.
 */
 
-/* AM Kuchling's posting:- 
+/* AM Kuchling's posting:-
    Based on SHA code originally posted to sci.crypt by Peter Gutmann
    in message <30ajo5$oe8@ccu2.auckland.ac.nz>.
    Modified to test for endianness on creation of SHA objects by AMK.
@@ -19,7 +35,7 @@
 */
 
 /* Here's the first paragraph of Peter Gutmann's posting:
-   
+
 The following is my SHA (FIPS 180) code updated to allow use of the "fixed"
 SHA, thanks to Jim Gillogly and an anonymous contributor for the information on
 what's changed in the new version.  The fix is a simple change which involves
@@ -375,7 +391,7 @@ static void SDRM_SHAtoByte(unsigned char *output, unsigned int *input, unsigned
 {      /* Output SHA digest in byte array */
        unsigned int i, j;
 
-       for(i = 0, j = 0; j < len; i++, j += 4) 
+       for(i = 0, j = 0; j < len; i++, j += 4)
        {
         output[j+3] = (unsigned char)( input[i]        & 0xff);
         output[j+2] = (unsigned char)((input[i] >> 8 ) & 0xff);
@@ -387,7 +403,7 @@ static void SDRM_SHAtoByte(unsigned char *output, unsigned int *input, unsigned
 
 //unsigned char digest[20];
 //unsigned char message[3] = {'a', 'b', 'c' };
-//unsigned char *mess56 = 
+//unsigned char *mess56 =
 //     "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq";
 
 /* Correct solutions from FIPS PUB 180-1 */
index 700863d7d0d5273cad570175ccac8e0111eaf24a..1d941ffb2ae881242a38a74ebaeb552be084ac00 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       snow2.c
- * @brief      implementation of SNOW 2.0 encryption scheme
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/02
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of SNOW 2.0 encryption scheme
  */
 
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
 // pre-computated values
 ////////////////////////////////////////////////////////////////////////////
 static cc_u32 SNOW2_MUL_a[256]= {
-       0x00000000, 0xE19FCF13, 0x6B973726, 0x8A08F835, 0xD6876E4C, 0x3718A15F, 0xBD10596A, 0x5C8F9679, 
-       0x05A7DC98, 0xE438138B, 0x6E30EBBE, 0x8FAF24AD, 0xD320B2D4, 0x32BF7DC7, 0xB8B785F2, 0x59284AE1, 
-       0x0AE71199, 0xEB78DE8A, 0x617026BF, 0x80EFE9AC, 0xDC607FD5, 0x3DFFB0C6, 0xB7F748F3, 0x566887E0, 
-       0x0F40CD01, 0xEEDF0212, 0x64D7FA27, 0x85483534, 0xD9C7A34D, 0x38586C5E, 0xB250946B, 0x53CF5B78, 
-       0x1467229B, 0xF5F8ED88, 0x7FF015BD, 0x9E6FDAAE, 0xC2E04CD7, 0x237F83C4, 0xA9777BF1, 0x48E8B4E2, 
-       0x11C0FE03, 0xF05F3110, 0x7A57C925, 0x9BC80636, 0xC747904F, 0x26D85F5C, 0xACD0A769, 0x4D4F687A, 
-       0x1E803302, 0xFF1FFC11, 0x75170424, 0x9488CB37, 0xC8075D4E, 0x2998925D, 0xA3906A68, 0x420FA57B, 
-       0x1B27EF9A, 0xFAB82089, 0x70B0D8BC, 0x912F17AF, 0xCDA081D6, 0x2C3F4EC5, 0xA637B6F0, 0x47A879E3, 
-       0x28CE449F, 0xC9518B8C, 0x435973B9, 0xA2C6BCAA, 0xFE492AD3, 0x1FD6E5C0, 0x95DE1DF5, 0x7441D2E6, 
-       0x2D699807, 0xCCF65714, 0x46FEAF21, 0xA7616032, 0xFBEEF64B, 0x1A713958, 0x9079C16D, 0x71E60E7E, 
-       0x22295506, 0xC3B69A15, 0x49BE6220, 0xA821AD33, 0xF4AE3B4A, 0x1531F459, 0x9F390C6C, 0x7EA6C37F, 
-       0x278E899E, 0xC611468D, 0x4C19BEB8, 0xAD8671AB, 0xF109E7D2, 0x109628C1, 0x9A9ED0F4, 0x7B011FE7, 
-       0x3CA96604, 0xDD36A917, 0x573E5122, 0xB6A19E31, 0xEA2E0848, 0x0BB1C75B, 0x81B93F6E, 0x6026F07D, 
-       0x390EBA9C, 0xD891758F, 0x52998DBA, 0xB30642A9, 0xEF89D4D0, 0x0E161BC3, 0x841EE3F6, 0x65812CE5, 
-       0x364E779D, 0xD7D1B88E, 0x5DD940BB, 0xBC468FA8, 0xE0C919D1, 0x0156D6C2, 0x8B5E2EF7, 0x6AC1E1E4, 
-       0x33E9AB05, 0xD2766416, 0x587E9C23, 0xB9E15330, 0xE56EC549, 0x04F10A5A, 0x8EF9F26F, 0x6F663D7C, 
-       0x50358897, 0xB1AA4784, 0x3BA2BFB1, 0xDA3D70A2, 0x86B2E6DB, 0x672D29C8, 0xED25D1FD, 0x0CBA1EEE, 
-       0x5592540F, 0xB40D9B1C, 0x3E056329, 0xDF9AAC3A, 0x83153A43, 0x628AF550, 0xE8820D65, 0x091DC276, 
-       0x5AD2990E, 0xBB4D561D, 0x3145AE28, 0xD0DA613B, 0x8C55F742, 0x6DCA3851, 0xE7C2C064, 0x065D0F77, 
-       0x5F754596, 0xBEEA8A85, 0x34E272B0, 0xD57DBDA3, 0x89F22BDA, 0x686DE4C9, 0xE2651CFC, 0x03FAD3EF, 
-       0x4452AA0C, 0xA5CD651F, 0x2FC59D2A, 0xCE5A5239, 0x92D5C440, 0x734A0B53, 0xF942F366, 0x18DD3C75, 
-       0x41F57694, 0xA06AB987, 0x2A6241B2, 0xCBFD8EA1, 0x977218D8, 0x76EDD7CB, 0xFCE52FFE, 0x1D7AE0ED, 
-       0x4EB5BB95, 0xAF2A7486, 0x25228CB3, 0xC4BD43A0, 0x9832D5D9, 0x79AD1ACA, 0xF3A5E2FF, 0x123A2DEC, 
-       0x4B12670D, 0xAA8DA81E, 0x2085502B, 0xC11A9F38, 0x9D950941, 0x7C0AC652, 0xF6023E67, 0x179DF174, 
-       0x78FBCC08, 0x9964031B, 0x136CFB2E, 0xF2F3343D, 0xAE7CA244, 0x4FE36D57, 0xC5EB9562, 0x24745A71, 
-       0x7D5C1090, 0x9CC3DF83, 0x16CB27B6, 0xF754E8A5, 0xABDB7EDC, 0x4A44B1CF, 0xC04C49FA, 0x21D386E9, 
-       0x721CDD91, 0x93831282, 0x198BEAB7, 0xF81425A4, 0xA49BB3DD, 0x45047CCE, 0xCF0C84FB, 0x2E934BE8, 
-       0x77BB0109, 0x9624CE1A, 0x1C2C362F, 0xFDB3F93C, 0xA13C6F45, 0x40A3A056, 0xCAAB5863, 0x2B349770, 
-       0x6C9CEE93, 0x8D032180, 0x070BD9B5, 0xE69416A6, 0xBA1B80DF, 0x5B844FCC, 0xD18CB7F9, 0x301378EA, 
-       0x693B320B, 0x88A4FD18, 0x02AC052D, 0xE333CA3E, 0xBFBC5C47, 0x5E239354, 0xD42B6B61, 0x35B4A472, 
-       0x667BFF0A, 0x87E43019, 0x0DECC82C, 0xEC73073F, 0xB0FC9146, 0x51635E55, 0xDB6BA660, 0x3AF46973, 
+       0x00000000, 0xE19FCF13, 0x6B973726, 0x8A08F835, 0xD6876E4C, 0x3718A15F, 0xBD10596A, 0x5C8F9679,
+       0x05A7DC98, 0xE438138B, 0x6E30EBBE, 0x8FAF24AD, 0xD320B2D4, 0x32BF7DC7, 0xB8B785F2, 0x59284AE1,
+       0x0AE71199, 0xEB78DE8A, 0x617026BF, 0x80EFE9AC, 0xDC607FD5, 0x3DFFB0C6, 0xB7F748F3, 0x566887E0,
+       0x0F40CD01, 0xEEDF0212, 0x64D7FA27, 0x85483534, 0xD9C7A34D, 0x38586C5E, 0xB250946B, 0x53CF5B78,
+       0x1467229B, 0xF5F8ED88, 0x7FF015BD, 0x9E6FDAAE, 0xC2E04CD7, 0x237F83C4, 0xA9777BF1, 0x48E8B4E2,
+       0x11C0FE03, 0xF05F3110, 0x7A57C925, 0x9BC80636, 0xC747904F, 0x26D85F5C, 0xACD0A769, 0x4D4F687A,
+       0x1E803302, 0xFF1FFC11, 0x75170424, 0x9488CB37, 0xC8075D4E, 0x2998925D, 0xA3906A68, 0x420FA57B,
+       0x1B27EF9A, 0xFAB82089, 0x70B0D8BC, 0x912F17AF, 0xCDA081D6, 0x2C3F4EC5, 0xA637B6F0, 0x47A879E3,
+       0x28CE449F, 0xC9518B8C, 0x435973B9, 0xA2C6BCAA, 0xFE492AD3, 0x1FD6E5C0, 0x95DE1DF5, 0x7441D2E6,
+       0x2D699807, 0xCCF65714, 0x46FEAF21, 0xA7616032, 0xFBEEF64B, 0x1A713958, 0x9079C16D, 0x71E60E7E,
+       0x22295506, 0xC3B69A15, 0x49BE6220, 0xA821AD33, 0xF4AE3B4A, 0x1531F459, 0x9F390C6C, 0x7EA6C37F,
+       0x278E899E, 0xC611468D, 0x4C19BEB8, 0xAD8671AB, 0xF109E7D2, 0x109628C1, 0x9A9ED0F4, 0x7B011FE7,
+       0x3CA96604, 0xDD36A917, 0x573E5122, 0xB6A19E31, 0xEA2E0848, 0x0BB1C75B, 0x81B93F6E, 0x6026F07D,
+       0x390EBA9C, 0xD891758F, 0x52998DBA, 0xB30642A9, 0xEF89D4D0, 0x0E161BC3, 0x841EE3F6, 0x65812CE5,
+       0x364E779D, 0xD7D1B88E, 0x5DD940BB, 0xBC468FA8, 0xE0C919D1, 0x0156D6C2, 0x8B5E2EF7, 0x6AC1E1E4,
+       0x33E9AB05, 0xD2766416, 0x587E9C23, 0xB9E15330, 0xE56EC549, 0x04F10A5A, 0x8EF9F26F, 0x6F663D7C,
+       0x50358897, 0xB1AA4784, 0x3BA2BFB1, 0xDA3D70A2, 0x86B2E6DB, 0x672D29C8, 0xED25D1FD, 0x0CBA1EEE,
+       0x5592540F, 0xB40D9B1C, 0x3E056329, 0xDF9AAC3A, 0x83153A43, 0x628AF550, 0xE8820D65, 0x091DC276,
+       0x5AD2990E, 0xBB4D561D, 0x3145AE28, 0xD0DA613B, 0x8C55F742, 0x6DCA3851, 0xE7C2C064, 0x065D0F77,
+       0x5F754596, 0xBEEA8A85, 0x34E272B0, 0xD57DBDA3, 0x89F22BDA, 0x686DE4C9, 0xE2651CFC, 0x03FAD3EF,
+       0x4452AA0C, 0xA5CD651F, 0x2FC59D2A, 0xCE5A5239, 0x92D5C440, 0x734A0B53, 0xF942F366, 0x18DD3C75,
+       0x41F57694, 0xA06AB987, 0x2A6241B2, 0xCBFD8EA1, 0x977218D8, 0x76EDD7CB, 0xFCE52FFE, 0x1D7AE0ED,
+       0x4EB5BB95, 0xAF2A7486, 0x25228CB3, 0xC4BD43A0, 0x9832D5D9, 0x79AD1ACA, 0xF3A5E2FF, 0x123A2DEC,
+       0x4B12670D, 0xAA8DA81E, 0x2085502B, 0xC11A9F38, 0x9D950941, 0x7C0AC652, 0xF6023E67, 0x179DF174,
+       0x78FBCC08, 0x9964031B, 0x136CFB2E, 0xF2F3343D, 0xAE7CA244, 0x4FE36D57, 0xC5EB9562, 0x24745A71,
+       0x7D5C1090, 0x9CC3DF83, 0x16CB27B6, 0xF754E8A5, 0xABDB7EDC, 0x4A44B1CF, 0xC04C49FA, 0x21D386E9,
+       0x721CDD91, 0x93831282, 0x198BEAB7, 0xF81425A4, 0xA49BB3DD, 0x45047CCE, 0xCF0C84FB, 0x2E934BE8,
+       0x77BB0109, 0x9624CE1A, 0x1C2C362F, 0xFDB3F93C, 0xA13C6F45, 0x40A3A056, 0xCAAB5863, 0x2B349770,
+       0x6C9CEE93, 0x8D032180, 0x070BD9B5, 0xE69416A6, 0xBA1B80DF, 0x5B844FCC, 0xD18CB7F9, 0x301378EA,
+       0x693B320B, 0x88A4FD18, 0x02AC052D, 0xE333CA3E, 0xBFBC5C47, 0x5E239354, 0xD42B6B61, 0x35B4A472,
+       0x667BFF0A, 0x87E43019, 0x0DECC82C, 0xEC73073F, 0xB0FC9146, 0x51635E55, 0xDB6BA660, 0x3AF46973,
        0x63DC2392, 0x8243EC81, 0x084B14B4, 0xE9D4DBA7, 0xB55B4DDE, 0x54C482CD, 0xDECC7AF8, 0x3F53B5EB
 };
 
 static cc_u32 SNOW2_MUL_ainverse[256]= {
-    0x00000000, 0x180F40CD, 0x301E8033, 0x2811C0FE, 0x603CA966, 0x7833E9AB, 0x50222955, 0x482D6998, 
-       0xC078FBCC, 0xD877BB01, 0xF0667BFF, 0xE8693B32, 0xA04452AA, 0xB84B1267, 0x905AD299, 0x88559254, 
-       0x29F05F31, 0x31FF1FFC, 0x19EEDF02, 0x01E19FCF, 0x49CCF657, 0x51C3B69A, 0x79D27664, 0x61DD36A9, 
-       0xE988A4FD, 0xF187E430, 0xD99624CE, 0xC1996403, 0x89B40D9B, 0x91BB4D56, 0xB9AA8DA8, 0xA1A5CD65, 
-       0x5249BE62, 0x4A46FEAF, 0x62573E51, 0x7A587E9C, 0x32751704, 0x2A7A57C9, 0x026B9737, 0x1A64D7FA, 
-       0x923145AE, 0x8A3E0563, 0xA22FC59D, 0xBA208550, 0xF20DECC8, 0xEA02AC05, 0xC2136CFB, 0xDA1C2C36, 
-       0x7BB9E153, 0x63B6A19E, 0x4BA76160, 0x53A821AD, 0x1B854835, 0x038A08F8, 0x2B9BC806, 0x339488CB, 
-       0xBBC11A9F, 0xA3CE5A52, 0x8BDF9AAC, 0x93D0DA61, 0xDBFDB3F9, 0xC3F2F334, 0xEBE333CA, 0xF3EC7307, 
-       0xA492D5C4, 0xBC9D9509, 0x948C55F7, 0x8C83153A, 0xC4AE7CA2, 0xDCA13C6F, 0xF4B0FC91, 0xECBFBC5C, 
-       0x64EA2E08, 0x7CE56EC5, 0x54F4AE3B, 0x4CFBEEF6, 0x04D6876E, 0x1CD9C7A3, 0x34C8075D, 0x2CC74790, 
-       0x8D628AF5, 0x956DCA38, 0xBD7C0AC6, 0xA5734A0B, 0xED5E2393, 0xF551635E, 0xDD40A3A0, 0xC54FE36D, 
-       0x4D1A7139, 0x551531F4, 0x7D04F10A, 0x650BB1C7, 0x2D26D85F, 0x35299892, 0x1D38586C, 0x053718A1, 
-       0xF6DB6BA6, 0xEED42B6B, 0xC6C5EB95, 0xDECAAB58, 0x96E7C2C0, 0x8EE8820D, 0xA6F942F3, 0xBEF6023E, 
-       0x36A3906A, 0x2EACD0A7, 0x06BD1059, 0x1EB25094, 0x569F390C, 0x4E9079C1, 0x6681B93F, 0x7E8EF9F2, 
-       0xDF2B3497, 0xC724745A, 0xEF35B4A4, 0xF73AF469, 0xBF179DF1, 0xA718DD3C, 0x8F091DC2, 0x97065D0F, 
-       0x1F53CF5B, 0x075C8F96, 0x2F4D4F68, 0x37420FA5, 0x7F6F663D, 0x676026F0, 0x4F71E60E, 0x577EA6C3, 
-       0xE18D0321, 0xF98243EC, 0xD1938312, 0xC99CC3DF, 0x81B1AA47, 0x99BEEA8A, 0xB1AF2A74, 0xA9A06AB9, 
-       0x21F5F8ED, 0x39FAB820, 0x11EB78DE, 0x09E43813, 0x41C9518B, 0x59C61146, 0x71D7D1B8, 0x69D89175, 
-       0xC87D5C10, 0xD0721CDD, 0xF863DC23, 0xE06C9CEE, 0xA841F576, 0xB04EB5BB, 0x985F7545, 0x80503588, 
-       0x0805A7DC, 0x100AE711, 0x381B27EF, 0x20146722, 0x68390EBA, 0x70364E77, 0x58278E89, 0x4028CE44, 
-       0xB3C4BD43, 0xABCBFD8E, 0x83DA3D70, 0x9BD57DBD, 0xD3F81425, 0xCBF754E8, 0xE3E69416, 0xFBE9D4DB, 
-       0x73BC468F, 0x6BB30642, 0x43A2C6BC, 0x5BAD8671, 0x1380EFE9, 0x0B8FAF24, 0x239E6FDA, 0x3B912F17, 
-       0x9A34E272, 0x823BA2BF, 0xAA2A6241, 0xB225228C, 0xFA084B14, 0xE2070BD9, 0xCA16CB27, 0xD2198BEA, 
-       0x5A4C19BE, 0x42435973, 0x6A52998D, 0x725DD940, 0x3A70B0D8, 0x227FF015, 0x0A6E30EB, 0x12617026, 
-       0x451FD6E5, 0x5D109628, 0x750156D6, 0x6D0E161B, 0x25237F83, 0x3D2C3F4E, 0x153DFFB0, 0x0D32BF7D, 
-       0x85672D29, 0x9D686DE4, 0xB579AD1A, 0xAD76EDD7, 0xE55B844F, 0xFD54C482, 0xD545047C, 0xCD4A44B1, 
-       0x6CEF89D4, 0x74E0C919, 0x5CF109E7, 0x44FE492A, 0x0CD320B2, 0x14DC607F, 0x3CCDA081, 0x24C2E04C, 
-       0xAC977218, 0xB49832D5, 0x9C89F22B, 0x8486B2E6, 0xCCABDB7E, 0xD4A49BB3, 0xFCB55B4D, 0xE4BA1B80, 
-       0x17566887, 0x0F59284A, 0x2748E8B4, 0x3F47A879, 0x776AC1E1, 0x6F65812C, 0x477441D2, 0x5F7B011F, 
-       0xD72E934B, 0xCF21D386, 0xE7301378, 0xFF3F53B5, 0xB7123A2D, 0xAF1D7AE0, 0x870CBA1E, 0x9F03FAD3, 
-       0x3EA637B6, 0x26A9777B, 0x0EB8B785, 0x16B7F748, 0x5E9A9ED0, 0x4695DE1D, 0x6E841EE3, 0x768B5E2E, 
+    0x00000000, 0x180F40CD, 0x301E8033, 0x2811C0FE, 0x603CA966, 0x7833E9AB, 0x50222955, 0x482D6998,
+       0xC078FBCC, 0xD877BB01, 0xF0667BFF, 0xE8693B32, 0xA04452AA, 0xB84B1267, 0x905AD299, 0x88559254,
+       0x29F05F31, 0x31FF1FFC, 0x19EEDF02, 0x01E19FCF, 0x49CCF657, 0x51C3B69A, 0x79D27664, 0x61DD36A9,
+       0xE988A4FD, 0xF187E430, 0xD99624CE, 0xC1996403, 0x89B40D9B, 0x91BB4D56, 0xB9AA8DA8, 0xA1A5CD65,
+       0x5249BE62, 0x4A46FEAF, 0x62573E51, 0x7A587E9C, 0x32751704, 0x2A7A57C9, 0x026B9737, 0x1A64D7FA,
+       0x923145AE, 0x8A3E0563, 0xA22FC59D, 0xBA208550, 0xF20DECC8, 0xEA02AC05, 0xC2136CFB, 0xDA1C2C36,
+       0x7BB9E153, 0x63B6A19E, 0x4BA76160, 0x53A821AD, 0x1B854835, 0x038A08F8, 0x2B9BC806, 0x339488CB,
+       0xBBC11A9F, 0xA3CE5A52, 0x8BDF9AAC, 0x93D0DA61, 0xDBFDB3F9, 0xC3F2F334, 0xEBE333CA, 0xF3EC7307,
+       0xA492D5C4, 0xBC9D9509, 0x948C55F7, 0x8C83153A, 0xC4AE7CA2, 0xDCA13C6F, 0xF4B0FC91, 0xECBFBC5C,
+       0x64EA2E08, 0x7CE56EC5, 0x54F4AE3B, 0x4CFBEEF6, 0x04D6876E, 0x1CD9C7A3, 0x34C8075D, 0x2CC74790,
+       0x8D628AF5, 0x956DCA38, 0xBD7C0AC6, 0xA5734A0B, 0xED5E2393, 0xF551635E, 0xDD40A3A0, 0xC54FE36D,
+       0x4D1A7139, 0x551531F4, 0x7D04F10A, 0x650BB1C7, 0x2D26D85F, 0x35299892, 0x1D38586C, 0x053718A1,
+       0xF6DB6BA6, 0xEED42B6B, 0xC6C5EB95, 0xDECAAB58, 0x96E7C2C0, 0x8EE8820D, 0xA6F942F3, 0xBEF6023E,
+       0x36A3906A, 0x2EACD0A7, 0x06BD1059, 0x1EB25094, 0x569F390C, 0x4E9079C1, 0x6681B93F, 0x7E8EF9F2,
+       0xDF2B3497, 0xC724745A, 0xEF35B4A4, 0xF73AF469, 0xBF179DF1, 0xA718DD3C, 0x8F091DC2, 0x97065D0F,
+       0x1F53CF5B, 0x075C8F96, 0x2F4D4F68, 0x37420FA5, 0x7F6F663D, 0x676026F0, 0x4F71E60E, 0x577EA6C3,
+       0xE18D0321, 0xF98243EC, 0xD1938312, 0xC99CC3DF, 0x81B1AA47, 0x99BEEA8A, 0xB1AF2A74, 0xA9A06AB9,
+       0x21F5F8ED, 0x39FAB820, 0x11EB78DE, 0x09E43813, 0x41C9518B, 0x59C61146, 0x71D7D1B8, 0x69D89175,
+       0xC87D5C10, 0xD0721CDD, 0xF863DC23, 0xE06C9CEE, 0xA841F576, 0xB04EB5BB, 0x985F7545, 0x80503588,
+       0x0805A7DC, 0x100AE711, 0x381B27EF, 0x20146722, 0x68390EBA, 0x70364E77, 0x58278E89, 0x4028CE44,
+       0xB3C4BD43, 0xABCBFD8E, 0x83DA3D70, 0x9BD57DBD, 0xD3F81425, 0xCBF754E8, 0xE3E69416, 0xFBE9D4DB,
+       0x73BC468F, 0x6BB30642, 0x43A2C6BC, 0x5BAD8671, 0x1380EFE9, 0x0B8FAF24, 0x239E6FDA, 0x3B912F17,
+       0x9A34E272, 0x823BA2BF, 0xAA2A6241, 0xB225228C, 0xFA084B14, 0xE2070BD9, 0xCA16CB27, 0xD2198BEA,
+       0x5A4C19BE, 0x42435973, 0x6A52998D, 0x725DD940, 0x3A70B0D8, 0x227FF015, 0x0A6E30EB, 0x12617026,
+       0x451FD6E5, 0x5D109628, 0x750156D6, 0x6D0E161B, 0x25237F83, 0x3D2C3F4E, 0x153DFFB0, 0x0D32BF7D,
+       0x85672D29, 0x9D686DE4, 0xB579AD1A, 0xAD76EDD7, 0xE55B844F, 0xFD54C482, 0xD545047C, 0xCD4A44B1,
+       0x6CEF89D4, 0x74E0C919, 0x5CF109E7, 0x44FE492A, 0x0CD320B2, 0x14DC607F, 0x3CCDA081, 0x24C2E04C,
+       0xAC977218, 0xB49832D5, 0x9C89F22B, 0x8486B2E6, 0xCCABDB7E, 0xD4A49BB3, 0xFCB55B4D, 0xE4BA1B80,
+       0x17566887, 0x0F59284A, 0x2748E8B4, 0x3F47A879, 0x776AC1E1, 0x6F65812C, 0x477441D2, 0x5F7B011F,
+       0xD72E934B, 0xCF21D386, 0xE7301378, 0xFF3F53B5, 0xB7123A2D, 0xAF1D7AE0, 0x870CBA1E, 0x9F03FAD3,
+       0x3EA637B6, 0x26A9777B, 0x0EB8B785, 0x16B7F748, 0x5E9A9ED0, 0x4695DE1D, 0x6E841EE3, 0x768B5E2E,
        0xFEDECC7A, 0xE6D18CB7, 0xCEC04C49, 0xD6CF0C84, 0x9EE2651C, 0x86ED25D1, 0xAEFCE52F, 0xB6F3A5E2
 };
 
 static cc_u32 SNOW2_T0[256]= {
-       0xa56363c6, 0x847c7cf8, 0x997777ee, 0x8d7b7bf6, 0x0df2f2ff, 0xbd6b6bd6, 0xb16f6fde, 0x54c5c591, 
-       0x50303060, 0x03010102, 0xa96767ce, 0x7d2b2b56, 0x19fefee7, 0x62d7d7b5, 0xe6abab4d, 0x9a7676ec, 
-       0x45caca8f, 0x9d82821f, 0x40c9c989, 0x877d7dfa, 0x15fafaef, 0xeb5959b2, 0xc947478e, 0x0bf0f0fb, 
-       0xecadad41, 0x67d4d4b3, 0xfda2a25f, 0xeaafaf45, 0xbf9c9c23, 0xf7a4a453, 0x967272e4, 0x5bc0c09b, 
-       0xc2b7b775, 0x1cfdfde1, 0xae93933d, 0x6a26264c, 0x5a36366c, 0x413f3f7e, 0x02f7f7f5, 0x4fcccc83, 
-       0x5c343468, 0xf4a5a551, 0x34e5e5d1, 0x08f1f1f9, 0x937171e2, 0x73d8d8ab, 0x53313162, 0x3f15152a, 
-       0x0c040408, 0x52c7c795, 0x65232346, 0x5ec3c39d, 0x28181830, 0xa1969637, 0x0f05050a, 0xb59a9a2f, 
-       0x0907070e, 0x36121224, 0x9b80801b, 0x3de2e2df, 0x26ebebcd, 0x6927274e, 0xcdb2b27f, 0x9f7575ea, 
-       0x1b090912, 0x9e83831d, 0x742c2c58, 0x2e1a1a34, 0x2d1b1b36, 0xb26e6edc, 0xee5a5ab4, 0xfba0a05b, 
-       0xf65252a4, 0x4d3b3b76, 0x61d6d6b7, 0xceb3b37d, 0x7b292952, 0x3ee3e3dd, 0x712f2f5e, 0x97848413, 
-       0xf55353a6, 0x68d1d1b9, 0x00000000, 0x2cededc1, 0x60202040, 0x1ffcfce3, 0xc8b1b179, 0xed5b5bb6, 
-       0xbe6a6ad4, 0x46cbcb8d, 0xd9bebe67, 0x4b393972, 0xde4a4a94, 0xd44c4c98, 0xe85858b0, 0x4acfcf85, 
-       0x6bd0d0bb, 0x2aefefc5, 0xe5aaaa4f, 0x16fbfbed, 0xc5434386, 0xd74d4d9a, 0x55333366, 0x94858511, 
-       0xcf45458a, 0x10f9f9e9, 0x06020204, 0x817f7ffe, 0xf05050a0, 0x443c3c78, 0xba9f9f25, 0xe3a8a84b, 
-       0xf35151a2, 0xfea3a35d, 0xc0404080, 0x8a8f8f05, 0xad92923f, 0xbc9d9d21, 0x48383870, 0x04f5f5f1, 
-       0xdfbcbc63, 0xc1b6b677, 0x75dadaaf, 0x63212142, 0x30101020, 0x1affffe5, 0x0ef3f3fd, 0x6dd2d2bf, 
-       0x4ccdcd81, 0x140c0c18, 0x35131326, 0x2fececc3, 0xe15f5fbe, 0xa2979735, 0xcc444488, 0x3917172e, 
-       0x57c4c493, 0xf2a7a755, 0x827e7efc, 0x473d3d7a, 0xac6464c8, 0xe75d5dba, 0x2b191932, 0x957373e6, 
-       0xa06060c0, 0x98818119, 0xd14f4f9e, 0x7fdcdca3, 0x66222244, 0x7e2a2a54, 0xab90903b, 0x8388880b, 
-       0xca46468c, 0x29eeeec7, 0xd3b8b86b, 0x3c141428, 0x79dedea7, 0xe25e5ebc, 0x1d0b0b16, 0x76dbdbad, 
-       0x3be0e0db, 0x56323264, 0x4e3a3a74, 0x1e0a0a14, 0xdb494992, 0x0a06060c, 0x6c242448, 0xe45c5cb8, 
-       0x5dc2c29f, 0x6ed3d3bd, 0xefacac43, 0xa66262c4, 0xa8919139, 0xa4959531, 0x37e4e4d3, 0x8b7979f2, 
-       0x32e7e7d5, 0x43c8c88b, 0x5937376e, 0xb76d6dda, 0x8c8d8d01, 0x64d5d5b1, 0xd24e4e9c, 0xe0a9a949, 
-       0xb46c6cd8, 0xfa5656ac, 0x07f4f4f3, 0x25eaeacf, 0xaf6565ca, 0x8e7a7af4, 0xe9aeae47, 0x18080810, 
-       0xd5baba6f, 0x887878f0, 0x6f25254a, 0x722e2e5c, 0x241c1c38, 0xf1a6a657, 0xc7b4b473, 0x51c6c697, 
-       0x23e8e8cb, 0x7cdddda1, 0x9c7474e8, 0x211f1f3e, 0xdd4b4b96, 0xdcbdbd61, 0x868b8b0d, 0x858a8a0f, 
-       0x907070e0, 0x423e3e7c, 0xc4b5b571, 0xaa6666cc, 0xd8484890, 0x05030306, 0x01f6f6f7, 0x120e0e1c, 
-       0xa36161c2, 0x5f35356a, 0xf95757ae, 0xd0b9b969, 0x91868617, 0x58c1c199, 0x271d1d3a, 0xb99e9e27, 
-       0x38e1e1d9, 0x13f8f8eb, 0xb398982b, 0x33111122, 0xbb6969d2, 0x70d9d9a9, 0x898e8e07, 0xa7949433, 
-       0xb69b9b2d, 0x221e1e3c, 0x92878715, 0x20e9e9c9, 0x49cece87, 0xff5555aa, 0x78282850, 0x7adfdfa5, 
-       0x8f8c8c03, 0xf8a1a159, 0x80898909, 0x170d0d1a, 0xdabfbf65, 0x31e6e6d7, 0xc6424284, 0xb86868d0, 
+       0xa56363c6, 0x847c7cf8, 0x997777ee, 0x8d7b7bf6, 0x0df2f2ff, 0xbd6b6bd6, 0xb16f6fde, 0x54c5c591,
+       0x50303060, 0x03010102, 0xa96767ce, 0x7d2b2b56, 0x19fefee7, 0x62d7d7b5, 0xe6abab4d, 0x9a7676ec,
+       0x45caca8f, 0x9d82821f, 0x40c9c989, 0x877d7dfa, 0x15fafaef, 0xeb5959b2, 0xc947478e, 0x0bf0f0fb,
+       0xecadad41, 0x67d4d4b3, 0xfda2a25f, 0xeaafaf45, 0xbf9c9c23, 0xf7a4a453, 0x967272e4, 0x5bc0c09b,
+       0xc2b7b775, 0x1cfdfde1, 0xae93933d, 0x6a26264c, 0x5a36366c, 0x413f3f7e, 0x02f7f7f5, 0x4fcccc83,
+       0x5c343468, 0xf4a5a551, 0x34e5e5d1, 0x08f1f1f9, 0x937171e2, 0x73d8d8ab, 0x53313162, 0x3f15152a,
+       0x0c040408, 0x52c7c795, 0x65232346, 0x5ec3c39d, 0x28181830, 0xa1969637, 0x0f05050a, 0xb59a9a2f,
+       0x0907070e, 0x36121224, 0x9b80801b, 0x3de2e2df, 0x26ebebcd, 0x6927274e, 0xcdb2b27f, 0x9f7575ea,
+       0x1b090912, 0x9e83831d, 0x742c2c58, 0x2e1a1a34, 0x2d1b1b36, 0xb26e6edc, 0xee5a5ab4, 0xfba0a05b,
+       0xf65252a4, 0x4d3b3b76, 0x61d6d6b7, 0xceb3b37d, 0x7b292952, 0x3ee3e3dd, 0x712f2f5e, 0x97848413,
+       0xf55353a6, 0x68d1d1b9, 0x00000000, 0x2cededc1, 0x60202040, 0x1ffcfce3, 0xc8b1b179, 0xed5b5bb6,
+       0xbe6a6ad4, 0x46cbcb8d, 0xd9bebe67, 0x4b393972, 0xde4a4a94, 0xd44c4c98, 0xe85858b0, 0x4acfcf85,
+       0x6bd0d0bb, 0x2aefefc5, 0xe5aaaa4f, 0x16fbfbed, 0xc5434386, 0xd74d4d9a, 0x55333366, 0x94858511,
+       0xcf45458a, 0x10f9f9e9, 0x06020204, 0x817f7ffe, 0xf05050a0, 0x443c3c78, 0xba9f9f25, 0xe3a8a84b,
+       0xf35151a2, 0xfea3a35d, 0xc0404080, 0x8a8f8f05, 0xad92923f, 0xbc9d9d21, 0x48383870, 0x04f5f5f1,
+       0xdfbcbc63, 0xc1b6b677, 0x75dadaaf, 0x63212142, 0x30101020, 0x1affffe5, 0x0ef3f3fd, 0x6dd2d2bf,
+       0x4ccdcd81, 0x140c0c18, 0x35131326, 0x2fececc3, 0xe15f5fbe, 0xa2979735, 0xcc444488, 0x3917172e,
+       0x57c4c493, 0xf2a7a755, 0x827e7efc, 0x473d3d7a, 0xac6464c8, 0xe75d5dba, 0x2b191932, 0x957373e6,
+       0xa06060c0, 0x98818119, 0xd14f4f9e, 0x7fdcdca3, 0x66222244, 0x7e2a2a54, 0xab90903b, 0x8388880b,
+       0xca46468c, 0x29eeeec7, 0xd3b8b86b, 0x3c141428, 0x79dedea7, 0xe25e5ebc, 0x1d0b0b16, 0x76dbdbad,
+       0x3be0e0db, 0x56323264, 0x4e3a3a74, 0x1e0a0a14, 0xdb494992, 0x0a06060c, 0x6c242448, 0xe45c5cb8,
+       0x5dc2c29f, 0x6ed3d3bd, 0xefacac43, 0xa66262c4, 0xa8919139, 0xa4959531, 0x37e4e4d3, 0x8b7979f2,
+       0x32e7e7d5, 0x43c8c88b, 0x5937376e, 0xb76d6dda, 0x8c8d8d01, 0x64d5d5b1, 0xd24e4e9c, 0xe0a9a949,
+       0xb46c6cd8, 0xfa5656ac, 0x07f4f4f3, 0x25eaeacf, 0xaf6565ca, 0x8e7a7af4, 0xe9aeae47, 0x18080810,
+       0xd5baba6f, 0x887878f0, 0x6f25254a, 0x722e2e5c, 0x241c1c38, 0xf1a6a657, 0xc7b4b473, 0x51c6c697,
+       0x23e8e8cb, 0x7cdddda1, 0x9c7474e8, 0x211f1f3e, 0xdd4b4b96, 0xdcbdbd61, 0x868b8b0d, 0x858a8a0f,
+       0x907070e0, 0x423e3e7c, 0xc4b5b571, 0xaa6666cc, 0xd8484890, 0x05030306, 0x01f6f6f7, 0x120e0e1c,
+       0xa36161c2, 0x5f35356a, 0xf95757ae, 0xd0b9b969, 0x91868617, 0x58c1c199, 0x271d1d3a, 0xb99e9e27,
+       0x38e1e1d9, 0x13f8f8eb, 0xb398982b, 0x33111122, 0xbb6969d2, 0x70d9d9a9, 0x898e8e07, 0xa7949433,
+       0xb69b9b2d, 0x221e1e3c, 0x92878715, 0x20e9e9c9, 0x49cece87, 0xff5555aa, 0x78282850, 0x7adfdfa5,
+       0x8f8c8c03, 0xf8a1a159, 0x80898909, 0x170d0d1a, 0xdabfbf65, 0x31e6e6d7, 0xc6424284, 0xb86868d0,
        0xc3414182, 0xb0999929, 0x772d2d5a, 0x110f0f1e, 0xcbb0b07b, 0xfc5454a8, 0xd6bbbb6d, 0x3a16162c
 };
 
 static cc_u32 SNOW2_T1[256]= {
-       0x6363c6a5, 0x7c7cf884, 0x7777ee99, 0x7b7bf68d, 0xf2f2ff0d, 0x6b6bd6bd, 0x6f6fdeb1, 0xc5c59154, 
-       0x30306050, 0x01010203, 0x6767cea9, 0x2b2b567d, 0xfefee719, 0xd7d7b562, 0xabab4de6, 0x7676ec9a, 
-       0xcaca8f45, 0x82821f9d, 0xc9c98940, 0x7d7dfa87, 0xfafaef15, 0x5959b2eb, 0x47478ec9, 0xf0f0fb0b, 
-       0xadad41ec, 0xd4d4b367, 0xa2a25ffd, 0xafaf45ea, 0x9c9c23bf, 0xa4a453f7, 0x7272e496, 0xc0c09b5b, 
-       0xb7b775c2, 0xfdfde11c, 0x93933dae, 0x26264c6a, 0x36366c5a, 0x3f3f7e41, 0xf7f7f502, 0xcccc834f, 
-       0x3434685c, 0xa5a551f4, 0xe5e5d134, 0xf1f1f908, 0x7171e293, 0xd8d8ab73, 0x31316253, 0x15152a3f, 
-       0x0404080c, 0xc7c79552, 0x23234665, 0xc3c39d5e, 0x18183028, 0x969637a1, 0x05050a0f, 0x9a9a2fb5, 
-       0x07070e09, 0x12122436, 0x80801b9b, 0xe2e2df3d, 0xebebcd26, 0x27274e69, 0xb2b27fcd, 0x7575ea9f, 
-       0x0909121b, 0x83831d9e, 0x2c2c5874, 0x1a1a342e, 0x1b1b362d, 0x6e6edcb2, 0x5a5ab4ee, 0xa0a05bfb, 
-       0x5252a4f6, 0x3b3b764d, 0xd6d6b761, 0xb3b37dce, 0x2929527b, 0xe3e3dd3e, 0x2f2f5e71, 0x84841397, 
-       0x5353a6f5, 0xd1d1b968, 0x00000000, 0xededc12c, 0x20204060, 0xfcfce31f, 0xb1b179c8, 0x5b5bb6ed, 
-       0x6a6ad4be, 0xcbcb8d46, 0xbebe67d9, 0x3939724b, 0x4a4a94de, 0x4c4c98d4, 0x5858b0e8, 0xcfcf854a, 
-       0xd0d0bb6b, 0xefefc52a, 0xaaaa4fe5, 0xfbfbed16, 0x434386c5, 0x4d4d9ad7, 0x33336655, 0x85851194, 
-       0x45458acf, 0xf9f9e910, 0x02020406, 0x7f7ffe81, 0x5050a0f0, 0x3c3c7844, 0x9f9f25ba, 0xa8a84be3, 
-       0x5151a2f3, 0xa3a35dfe, 0x404080c0, 0x8f8f058a, 0x92923fad, 0x9d9d21bc, 0x38387048, 0xf5f5f104, 
-       0xbcbc63df, 0xb6b677c1, 0xdadaaf75, 0x21214263, 0x10102030, 0xffffe51a, 0xf3f3fd0e, 0xd2d2bf6d, 
-       0xcdcd814c, 0x0c0c1814, 0x13132635, 0xececc32f, 0x5f5fbee1, 0x979735a2, 0x444488cc, 0x17172e39, 
-       0xc4c49357, 0xa7a755f2, 0x7e7efc82, 0x3d3d7a47, 0x6464c8ac, 0x5d5dbae7, 0x1919322b, 0x7373e695, 
-       0x6060c0a0, 0x81811998, 0x4f4f9ed1, 0xdcdca37f, 0x22224466, 0x2a2a547e, 0x90903bab, 0x88880b83, 
-       0x46468cca, 0xeeeec729, 0xb8b86bd3, 0x1414283c, 0xdedea779, 0x5e5ebce2, 0x0b0b161d, 0xdbdbad76, 
-       0xe0e0db3b, 0x32326456, 0x3a3a744e, 0x0a0a141e, 0x494992db, 0x06060c0a, 0x2424486c, 0x5c5cb8e4, 
-       0xc2c29f5d, 0xd3d3bd6e, 0xacac43ef, 0x6262c4a6, 0x919139a8, 0x959531a4, 0xe4e4d337, 0x7979f28b, 
-       0xe7e7d532, 0xc8c88b43, 0x37376e59, 0x6d6ddab7, 0x8d8d018c, 0xd5d5b164, 0x4e4e9cd2, 0xa9a949e0, 
-       0x6c6cd8b4, 0x5656acfa, 0xf4f4f307, 0xeaeacf25, 0x6565caaf, 0x7a7af48e, 0xaeae47e9, 0x08081018, 
-       0xbaba6fd5, 0x7878f088, 0x25254a6f, 0x2e2e5c72, 0x1c1c3824, 0xa6a657f1, 0xb4b473c7, 0xc6c69751, 
-       0xe8e8cb23, 0xdddda17c, 0x7474e89c, 0x1f1f3e21, 0x4b4b96dd, 0xbdbd61dc, 0x8b8b0d86, 0x8a8a0f85, 
-       0x7070e090, 0x3e3e7c42, 0xb5b571c4, 0x6666ccaa, 0x484890d8, 0x03030605, 0xf6f6f701, 0x0e0e1c12, 
-       0x6161c2a3, 0x35356a5f, 0x5757aef9, 0xb9b969d0, 0x86861791, 0xc1c19958, 0x1d1d3a27, 0x9e9e27b9, 
-       0xe1e1d938, 0xf8f8eb13, 0x98982bb3, 0x11112233, 0x6969d2bb, 0xd9d9a970, 0x8e8e0789, 0x949433a7, 
-       0x9b9b2db6, 0x1e1e3c22, 0x87871592, 0xe9e9c920, 0xcece8749, 0x5555aaff, 0x28285078, 0xdfdfa57a, 
-       0x8c8c038f, 0xa1a159f8, 0x89890980, 0x0d0d1a17, 0xbfbf65da, 0xe6e6d731, 0x424284c6, 0x6868d0b8, 
+       0x6363c6a5, 0x7c7cf884, 0x7777ee99, 0x7b7bf68d, 0xf2f2ff0d, 0x6b6bd6bd, 0x6f6fdeb1, 0xc5c59154,
+       0x30306050, 0x01010203, 0x6767cea9, 0x2b2b567d, 0xfefee719, 0xd7d7b562, 0xabab4de6, 0x7676ec9a,
+       0xcaca8f45, 0x82821f9d, 0xc9c98940, 0x7d7dfa87, 0xfafaef15, 0x5959b2eb, 0x47478ec9, 0xf0f0fb0b,
+       0xadad41ec, 0xd4d4b367, 0xa2a25ffd, 0xafaf45ea, 0x9c9c23bf, 0xa4a453f7, 0x7272e496, 0xc0c09b5b,
+       0xb7b775c2, 0xfdfde11c, 0x93933dae, 0x26264c6a, 0x36366c5a, 0x3f3f7e41, 0xf7f7f502, 0xcccc834f,
+       0x3434685c, 0xa5a551f4, 0xe5e5d134, 0xf1f1f908, 0x7171e293, 0xd8d8ab73, 0x31316253, 0x15152a3f,
+       0x0404080c, 0xc7c79552, 0x23234665, 0xc3c39d5e, 0x18183028, 0x969637a1, 0x05050a0f, 0x9a9a2fb5,
+       0x07070e09, 0x12122436, 0x80801b9b, 0xe2e2df3d, 0xebebcd26, 0x27274e69, 0xb2b27fcd, 0x7575ea9f,
+       0x0909121b, 0x83831d9e, 0x2c2c5874, 0x1a1a342e, 0x1b1b362d, 0x6e6edcb2, 0x5a5ab4ee, 0xa0a05bfb,
+       0x5252a4f6, 0x3b3b764d, 0xd6d6b761, 0xb3b37dce, 0x2929527b, 0xe3e3dd3e, 0x2f2f5e71, 0x84841397,
+       0x5353a6f5, 0xd1d1b968, 0x00000000, 0xededc12c, 0x20204060, 0xfcfce31f, 0xb1b179c8, 0x5b5bb6ed,
+       0x6a6ad4be, 0xcbcb8d46, 0xbebe67d9, 0x3939724b, 0x4a4a94de, 0x4c4c98d4, 0x5858b0e8, 0xcfcf854a,
+       0xd0d0bb6b, 0xefefc52a, 0xaaaa4fe5, 0xfbfbed16, 0x434386c5, 0x4d4d9ad7, 0x33336655, 0x85851194,
+       0x45458acf, 0xf9f9e910, 0x02020406, 0x7f7ffe81, 0x5050a0f0, 0x3c3c7844, 0x9f9f25ba, 0xa8a84be3,
+       0x5151a2f3, 0xa3a35dfe, 0x404080c0, 0x8f8f058a, 0x92923fad, 0x9d9d21bc, 0x38387048, 0xf5f5f104,
+       0xbcbc63df, 0xb6b677c1, 0xdadaaf75, 0x21214263, 0x10102030, 0xffffe51a, 0xf3f3fd0e, 0xd2d2bf6d,
+       0xcdcd814c, 0x0c0c1814, 0x13132635, 0xececc32f, 0x5f5fbee1, 0x979735a2, 0x444488cc, 0x17172e39,
+       0xc4c49357, 0xa7a755f2, 0x7e7efc82, 0x3d3d7a47, 0x6464c8ac, 0x5d5dbae7, 0x1919322b, 0x7373e695,
+       0x6060c0a0, 0x81811998, 0x4f4f9ed1, 0xdcdca37f, 0x22224466, 0x2a2a547e, 0x90903bab, 0x88880b83,
+       0x46468cca, 0xeeeec729, 0xb8b86bd3, 0x1414283c, 0xdedea779, 0x5e5ebce2, 0x0b0b161d, 0xdbdbad76,
+       0xe0e0db3b, 0x32326456, 0x3a3a744e, 0x0a0a141e, 0x494992db, 0x06060c0a, 0x2424486c, 0x5c5cb8e4,
+       0xc2c29f5d, 0xd3d3bd6e, 0xacac43ef, 0x6262c4a6, 0x919139a8, 0x959531a4, 0xe4e4d337, 0x7979f28b,
+       0xe7e7d532, 0xc8c88b43, 0x37376e59, 0x6d6ddab7, 0x8d8d018c, 0xd5d5b164, 0x4e4e9cd2, 0xa9a949e0,
+       0x6c6cd8b4, 0x5656acfa, 0xf4f4f307, 0xeaeacf25, 0x6565caaf, 0x7a7af48e, 0xaeae47e9, 0x08081018,
+       0xbaba6fd5, 0x7878f088, 0x25254a6f, 0x2e2e5c72, 0x1c1c3824, 0xa6a657f1, 0xb4b473c7, 0xc6c69751,
+       0xe8e8cb23, 0xdddda17c, 0x7474e89c, 0x1f1f3e21, 0x4b4b96dd, 0xbdbd61dc, 0x8b8b0d86, 0x8a8a0f85,
+       0x7070e090, 0x3e3e7c42, 0xb5b571c4, 0x6666ccaa, 0x484890d8, 0x03030605, 0xf6f6f701, 0x0e0e1c12,
+       0x6161c2a3, 0x35356a5f, 0x5757aef9, 0xb9b969d0, 0x86861791, 0xc1c19958, 0x1d1d3a27, 0x9e9e27b9,
+       0xe1e1d938, 0xf8f8eb13, 0x98982bb3, 0x11112233, 0x6969d2bb, 0xd9d9a970, 0x8e8e0789, 0x949433a7,
+       0x9b9b2db6, 0x1e1e3c22, 0x87871592, 0xe9e9c920, 0xcece8749, 0x5555aaff, 0x28285078, 0xdfdfa57a,
+       0x8c8c038f, 0xa1a159f8, 0x89890980, 0x0d0d1a17, 0xbfbf65da, 0xe6e6d731, 0x424284c6, 0x6868d0b8,
        0x414182c3, 0x999929b0, 0x2d2d5a77, 0x0f0f1e11, 0xb0b07bcb, 0x5454a8fc, 0xbbbb6dd6, 0x16162c3a
 };
 
 static cc_u32 SNOW2_T2[256]= {
-       0x63c6a563, 0x7cf8847c, 0x77ee9977, 0x7bf68d7b, 0xf2ff0df2, 0x6bd6bd6b, 0x6fdeb16f, 0xc59154c5, 
-       0x30605030, 0x01020301, 0x67cea967, 0x2b567d2b, 0xfee719fe, 0xd7b562d7, 0xab4de6ab, 0x76ec9a76, 
-       0xca8f45ca, 0x821f9d82, 0xc98940c9, 0x7dfa877d, 0xfaef15fa, 0x59b2eb59, 0x478ec947, 0xf0fb0bf0, 
-       0xad41ecad, 0xd4b367d4, 0xa25ffda2, 0xaf45eaaf, 0x9c23bf9c, 0xa453f7a4, 0x72e49672, 0xc09b5bc0, 
-       0xb775c2b7, 0xfde11cfd, 0x933dae93, 0x264c6a26, 0x366c5a36, 0x3f7e413f, 0xf7f502f7, 0xcc834fcc, 
-       0x34685c34, 0xa551f4a5, 0xe5d134e5, 0xf1f908f1, 0x71e29371, 0xd8ab73d8, 0x31625331, 0x152a3f15, 
-       0x04080c04, 0xc79552c7, 0x23466523, 0xc39d5ec3, 0x18302818, 0x9637a196, 0x050a0f05, 0x9a2fb59a, 
-       0x070e0907, 0x12243612, 0x801b9b80, 0xe2df3de2, 0xebcd26eb, 0x274e6927, 0xb27fcdb2, 0x75ea9f75, 
-       0x09121b09, 0x831d9e83, 0x2c58742c, 0x1a342e1a, 0x1b362d1b, 0x6edcb26e, 0x5ab4ee5a, 0xa05bfba0, 
-       0x52a4f652, 0x3b764d3b, 0xd6b761d6, 0xb37dceb3, 0x29527b29, 0xe3dd3ee3, 0x2f5e712f, 0x84139784, 
-       0x53a6f553, 0xd1b968d1, 0x00000000, 0xedc12ced, 0x20406020, 0xfce31ffc, 0xb179c8b1, 0x5bb6ed5b, 
-       0x6ad4be6a, 0xcb8d46cb, 0xbe67d9be, 0x39724b39, 0x4a94de4a, 0x4c98d44c, 0x58b0e858, 0xcf854acf, 
-       0xd0bb6bd0, 0xefc52aef, 0xaa4fe5aa, 0xfbed16fb, 0x4386c543, 0x4d9ad74d, 0x33665533, 0x85119485, 
-       0x458acf45, 0xf9e910f9, 0x02040602, 0x7ffe817f, 0x50a0f050, 0x3c78443c, 0x9f25ba9f, 0xa84be3a8, 
-       0x51a2f351, 0xa35dfea3, 0x4080c040, 0x8f058a8f, 0x923fad92, 0x9d21bc9d, 0x38704838, 0xf5f104f5, 
-       0xbc63dfbc, 0xb677c1b6, 0xdaaf75da, 0x21426321, 0x10203010, 0xffe51aff, 0xf3fd0ef3, 0xd2bf6dd2, 
-       0xcd814ccd, 0x0c18140c, 0x13263513, 0xecc32fec, 0x5fbee15f, 0x9735a297, 0x4488cc44, 0x172e3917, 
-       0xc49357c4, 0xa755f2a7, 0x7efc827e, 0x3d7a473d, 0x64c8ac64, 0x5dbae75d, 0x19322b19, 0x73e69573, 
-       0x60c0a060, 0x81199881, 0x4f9ed14f, 0xdca37fdc, 0x22446622, 0x2a547e2a, 0x903bab90, 0x880b8388, 
-       0x468cca46, 0xeec729ee, 0xb86bd3b8, 0x14283c14, 0xdea779de, 0x5ebce25e, 0x0b161d0b, 0xdbad76db, 
-       0xe0db3be0, 0x32645632, 0x3a744e3a, 0x0a141e0a, 0x4992db49, 0x060c0a06, 0x24486c24, 0x5cb8e45c, 
-       0xc29f5dc2, 0xd3bd6ed3, 0xac43efac, 0x62c4a662, 0x9139a891, 0x9531a495, 0xe4d337e4, 0x79f28b79, 
-       0xe7d532e7, 0xc88b43c8, 0x376e5937, 0x6ddab76d, 0x8d018c8d, 0xd5b164d5, 0x4e9cd24e, 0xa949e0a9, 
-       0x6cd8b46c, 0x56acfa56, 0xf4f307f4, 0xeacf25ea, 0x65caaf65, 0x7af48e7a, 0xae47e9ae, 0x08101808, 
-       0xba6fd5ba, 0x78f08878, 0x254a6f25, 0x2e5c722e, 0x1c38241c, 0xa657f1a6, 0xb473c7b4, 0xc69751c6, 
-       0xe8cb23e8, 0xdda17cdd, 0x74e89c74, 0x1f3e211f, 0x4b96dd4b, 0xbd61dcbd, 0x8b0d868b, 0x8a0f858a, 
-       0x70e09070, 0x3e7c423e, 0xb571c4b5, 0x66ccaa66, 0x4890d848, 0x03060503, 0xf6f701f6, 0x0e1c120e, 
-       0x61c2a361, 0x356a5f35, 0x57aef957, 0xb969d0b9, 0x86179186, 0xc19958c1, 0x1d3a271d, 0x9e27b99e, 
-       0xe1d938e1, 0xf8eb13f8, 0x982bb398, 0x11223311, 0x69d2bb69, 0xd9a970d9, 0x8e07898e, 0x9433a794, 
-       0x9b2db69b, 0x1e3c221e, 0x87159287, 0xe9c920e9, 0xce8749ce, 0x55aaff55, 0x28507828, 0xdfa57adf, 
-       0x8c038f8c, 0xa159f8a1, 0x89098089, 0x0d1a170d, 0xbf65dabf, 0xe6d731e6, 0x4284c642, 0x68d0b868, 
+       0x63c6a563, 0x7cf8847c, 0x77ee9977, 0x7bf68d7b, 0xf2ff0df2, 0x6bd6bd6b, 0x6fdeb16f, 0xc59154c5,
+       0x30605030, 0x01020301, 0x67cea967, 0x2b567d2b, 0xfee719fe, 0xd7b562d7, 0xab4de6ab, 0x76ec9a76,
+       0xca8f45ca, 0x821f9d82, 0xc98940c9, 0x7dfa877d, 0xfaef15fa, 0x59b2eb59, 0x478ec947, 0xf0fb0bf0,
+       0xad41ecad, 0xd4b367d4, 0xa25ffda2, 0xaf45eaaf, 0x9c23bf9c, 0xa453f7a4, 0x72e49672, 0xc09b5bc0,
+       0xb775c2b7, 0xfde11cfd, 0x933dae93, 0x264c6a26, 0x366c5a36, 0x3f7e413f, 0xf7f502f7, 0xcc834fcc,
+       0x34685c34, 0xa551f4a5, 0xe5d134e5, 0xf1f908f1, 0x71e29371, 0xd8ab73d8, 0x31625331, 0x152a3f15,
+       0x04080c04, 0xc79552c7, 0x23466523, 0xc39d5ec3, 0x18302818, 0x9637a196, 0x050a0f05, 0x9a2fb59a,
+       0x070e0907, 0x12243612, 0x801b9b80, 0xe2df3de2, 0xebcd26eb, 0x274e6927, 0xb27fcdb2, 0x75ea9f75,
+       0x09121b09, 0x831d9e83, 0x2c58742c, 0x1a342e1a, 0x1b362d1b, 0x6edcb26e, 0x5ab4ee5a, 0xa05bfba0,
+       0x52a4f652, 0x3b764d3b, 0xd6b761d6, 0xb37dceb3, 0x29527b29, 0xe3dd3ee3, 0x2f5e712f, 0x84139784,
+       0x53a6f553, 0xd1b968d1, 0x00000000, 0xedc12ced, 0x20406020, 0xfce31ffc, 0xb179c8b1, 0x5bb6ed5b,
+       0x6ad4be6a, 0xcb8d46cb, 0xbe67d9be, 0x39724b39, 0x4a94de4a, 0x4c98d44c, 0x58b0e858, 0xcf854acf,
+       0xd0bb6bd0, 0xefc52aef, 0xaa4fe5aa, 0xfbed16fb, 0x4386c543, 0x4d9ad74d, 0x33665533, 0x85119485,
+       0x458acf45, 0xf9e910f9, 0x02040602, 0x7ffe817f, 0x50a0f050, 0x3c78443c, 0x9f25ba9f, 0xa84be3a8,
+       0x51a2f351, 0xa35dfea3, 0x4080c040, 0x8f058a8f, 0x923fad92, 0x9d21bc9d, 0x38704838, 0xf5f104f5,
+       0xbc63dfbc, 0xb677c1b6, 0xdaaf75da, 0x21426321, 0x10203010, 0xffe51aff, 0xf3fd0ef3, 0xd2bf6dd2,
+       0xcd814ccd, 0x0c18140c, 0x13263513, 0xecc32fec, 0x5fbee15f, 0x9735a297, 0x4488cc44, 0x172e3917,
+       0xc49357c4, 0xa755f2a7, 0x7efc827e, 0x3d7a473d, 0x64c8ac64, 0x5dbae75d, 0x19322b19, 0x73e69573,
+       0x60c0a060, 0x81199881, 0x4f9ed14f, 0xdca37fdc, 0x22446622, 0x2a547e2a, 0x903bab90, 0x880b8388,
+       0x468cca46, 0xeec729ee, 0xb86bd3b8, 0x14283c14, 0xdea779de, 0x5ebce25e, 0x0b161d0b, 0xdbad76db,
+       0xe0db3be0, 0x32645632, 0x3a744e3a, 0x0a141e0a, 0x4992db49, 0x060c0a06, 0x24486c24, 0x5cb8e45c,
+       0xc29f5dc2, 0xd3bd6ed3, 0xac43efac, 0x62c4a662, 0x9139a891, 0x9531a495, 0xe4d337e4, 0x79f28b79,
+       0xe7d532e7, 0xc88b43c8, 0x376e5937, 0x6ddab76d, 0x8d018c8d, 0xd5b164d5, 0x4e9cd24e, 0xa949e0a9,
+       0x6cd8b46c, 0x56acfa56, 0xf4f307f4, 0xeacf25ea, 0x65caaf65, 0x7af48e7a, 0xae47e9ae, 0x08101808,
+       0xba6fd5ba, 0x78f08878, 0x254a6f25, 0x2e5c722e, 0x1c38241c, 0xa657f1a6, 0xb473c7b4, 0xc69751c6,
+       0xe8cb23e8, 0xdda17cdd, 0x74e89c74, 0x1f3e211f, 0x4b96dd4b, 0xbd61dcbd, 0x8b0d868b, 0x8a0f858a,
+       0x70e09070, 0x3e7c423e, 0xb571c4b5, 0x66ccaa66, 0x4890d848, 0x03060503, 0xf6f701f6, 0x0e1c120e,
+       0x61c2a361, 0x356a5f35, 0x57aef957, 0xb969d0b9, 0x86179186, 0xc19958c1, 0x1d3a271d, 0x9e27b99e,
+       0xe1d938e1, 0xf8eb13f8, 0x982bb398, 0x11223311, 0x69d2bb69, 0xd9a970d9, 0x8e07898e, 0x9433a794,
+       0x9b2db69b, 0x1e3c221e, 0x87159287, 0xe9c920e9, 0xce8749ce, 0x55aaff55, 0x28507828, 0xdfa57adf,
+       0x8c038f8c, 0xa159f8a1, 0x89098089, 0x0d1a170d, 0xbf65dabf, 0xe6d731e6, 0x4284c642, 0x68d0b868,
        0x4182c341, 0x9929b099, 0x2d5a772d, 0x0f1e110f, 0xb07bcbb0, 0x54a8fc54, 0xbb6dd6bb, 0x162c3a16
 };
 
 static cc_u32 SNOW2_T3[256]= {
-       0xc6a56363, 0xf8847c7c, 0xee997777, 0xf68d7b7b, 0xff0df2f2, 0xd6bd6b6b, 0xdeb16f6f, 0x9154c5c5, 
-       0x60503030, 0x02030101, 0xcea96767, 0x567d2b2b, 0xe719fefe, 0xb562d7d7, 0x4de6abab, 0xec9a7676, 
-       0x8f45caca, 0x1f9d8282, 0x8940c9c9, 0xfa877d7d, 0xef15fafa, 0xb2eb5959, 0x8ec94747, 0xfb0bf0f0, 
-       0x41ecadad, 0xb367d4d4, 0x5ffda2a2, 0x45eaafaf, 0x23bf9c9c, 0x53f7a4a4, 0xe4967272, 0x9b5bc0c0, 
-       0x75c2b7b7, 0xe11cfdfd, 0x3dae9393, 0x4c6a2626, 0x6c5a3636, 0x7e413f3f, 0xf502f7f7, 0x834fcccc, 
-       0x685c3434, 0x51f4a5a5, 0xd134e5e5, 0xf908f1f1, 0xe2937171, 0xab73d8d8, 0x62533131, 0x2a3f1515, 
-       0x080c0404, 0x9552c7c7, 0x46652323, 0x9d5ec3c3, 0x30281818, 0x37a19696, 0xa0f0505, 0x2fb59a9a, 
-       0x0e090707, 0x24361212, 0x1b9b8080, 0xdf3de2e2, 0xcd26ebeb, 0x4e692727, 0x7fcdb2b2, 0xea9f7575, 
-       0x121b0909, 0x1d9e8383, 0x58742c2c, 0x342e1a1a, 0x362d1b1b, 0xdcb26e6e, 0xb4ee5a5a, 0x5bfba0a0, 
-       0xa4f65252, 0x764d3b3b, 0xb761d6d6, 0x7dceb3b3, 0x527b2929, 0xdd3ee3e3, 0x5e712f2f, 0x13978484, 
-       0xa6f55353, 0xb968d1d1, 0x00000000, 0xc12ceded, 0x40602020, 0xe31ffcfc, 0x79c8b1b1, 0xb6ed5b5b, 
-       0xd4be6a6a, 0x8d46cbcb, 0x67d9bebe, 0x724b3939, 0x94de4a4a, 0x98d44c4c, 0xb0e85858, 0x854acfcf, 
-       0xbb6bd0d0, 0xc52aefef, 0x4fe5aaaa, 0xed16fbfb, 0x86c54343, 0x9ad74d4d, 0x66553333, 0x11948585, 
-       0x8acf4545, 0xe910f9f9, 0x04060202, 0xfe817f7f, 0xa0f05050, 0x78443c3c, 0x25ba9f9f, 0x4be3a8a8, 
-       0xa2f35151, 0x5dfea3a3, 0x80c04040, 0x058a8f8f, 0x3fad9292, 0x21bc9d9d, 0x70483838, 0xf104f5f5, 
-       0x63dfbcbc, 0x77c1b6b6, 0xaf75dada, 0x42632121, 0x20301010, 0xe51affff, 0xfd0ef3f3, 0xbf6dd2d2, 
-       0x814ccdcd, 0x18140c0c, 0x26351313, 0xc32fecec, 0xbee15f5f, 0x35a29797, 0x88cc4444, 0x2e391717, 
-       0x9357c4c4, 0x55f2a7a7, 0xfc827e7e, 0x7a473d3d, 0xc8ac6464, 0xbae75d5d, 0x322b1919, 0xe6957373, 
-       0xc0a06060, 0x19988181, 0x9ed14f4f, 0xa37fdcdc, 0x44662222, 0x547e2a2a, 0x3bab9090, 0x0b838888, 
-       0x8cca4646, 0xc729eeee, 0x6bd3b8b8, 0x283c1414, 0xa779dede, 0xbce25e5e, 0x161d0b0b, 0xad76dbdb, 
-       0xdb3be0e0, 0x64563232, 0x744e3a3a, 0x141e0a0a, 0x92db4949, 0x0c0a0606, 0x486c2424, 0xb8e45c5c, 
-       0x9f5dc2c2, 0xbd6ed3d3, 0x43efacac, 0xc4a66262, 0x39a89191, 0x31a49595, 0xd337e4e4, 0xf28b7979, 
-       0xd532e7e7, 0x8b43c8c8, 0x6e593737, 0xdab76d6d, 0x018c8d8d, 0xb164d5d5, 0x9cd24e4e, 0x49e0a9a9, 
-       0xd8b46c6c, 0xacfa5656, 0xf307f4f4, 0xcf25eaea, 0xcaaf6565, 0xf48e7a7a, 0x47e9aeae, 0x10180808, 
-       0x6fd5baba, 0xf0887878, 0x4a6f2525, 0x5c722e2e, 0x38241c1c, 0x57f1a6a6, 0x73c7b4b4, 0x9751c6c6, 
-       0xcb23e8e8, 0xa17cdddd, 0xe89c7474, 0x3e211f1f, 0x96dd4b4b, 0x61dcbdbd, 0x0d868b8b, 0x0f858a8a, 
-       0xe0907070, 0x7c423e3e, 0x71c4b5b5, 0xccaa6666, 0x90d84848, 0x06050303, 0xf701f6f6, 0x1c120e0e, 
-       0xc2a36161, 0x6a5f3535, 0xaef95757, 0x69d0b9b9, 0x17918686, 0x9958c1c1, 0x3a271d1d, 0x27b99e9e, 
-       0xd938e1e1, 0xeb13f8f8, 0x2bb39898, 0x22331111, 0xd2bb6969, 0xa970d9d9, 0x07898e8e, 0x33a79494, 
-       0x2db69b9b, 0x3c221e1e, 0x15928787, 0xc920e9e9, 0x8749cece, 0xaaff5555, 0x50782828, 0xa57adfdf, 
-       0x038f8c8c, 0x59f8a1a1, 0x09808989, 0x1a170d0d, 0x65dabfbf, 0xd731e6e6, 0x84c64242, 0xd0b86868, 
+       0xc6a56363, 0xf8847c7c, 0xee997777, 0xf68d7b7b, 0xff0df2f2, 0xd6bd6b6b, 0xdeb16f6f, 0x9154c5c5,
+       0x60503030, 0x02030101, 0xcea96767, 0x567d2b2b, 0xe719fefe, 0xb562d7d7, 0x4de6abab, 0xec9a7676,
+       0x8f45caca, 0x1f9d8282, 0x8940c9c9, 0xfa877d7d, 0xef15fafa, 0xb2eb5959, 0x8ec94747, 0xfb0bf0f0,
+       0x41ecadad, 0xb367d4d4, 0x5ffda2a2, 0x45eaafaf, 0x23bf9c9c, 0x53f7a4a4, 0xe4967272, 0x9b5bc0c0,
+       0x75c2b7b7, 0xe11cfdfd, 0x3dae9393, 0x4c6a2626, 0x6c5a3636, 0x7e413f3f, 0xf502f7f7, 0x834fcccc,
+       0x685c3434, 0x51f4a5a5, 0xd134e5e5, 0xf908f1f1, 0xe2937171, 0xab73d8d8, 0x62533131, 0x2a3f1515,
+       0x080c0404, 0x9552c7c7, 0x46652323, 0x9d5ec3c3, 0x30281818, 0x37a19696, 0xa0f0505, 0x2fb59a9a,
+       0x0e090707, 0x24361212, 0x1b9b8080, 0xdf3de2e2, 0xcd26ebeb, 0x4e692727, 0x7fcdb2b2, 0xea9f7575,
+       0x121b0909, 0x1d9e8383, 0x58742c2c, 0x342e1a1a, 0x362d1b1b, 0xdcb26e6e, 0xb4ee5a5a, 0x5bfba0a0,
+       0xa4f65252, 0x764d3b3b, 0xb761d6d6, 0x7dceb3b3, 0x527b2929, 0xdd3ee3e3, 0x5e712f2f, 0x13978484,
+       0xa6f55353, 0xb968d1d1, 0x00000000, 0xc12ceded, 0x40602020, 0xe31ffcfc, 0x79c8b1b1, 0xb6ed5b5b,
+       0xd4be6a6a, 0x8d46cbcb, 0x67d9bebe, 0x724b3939, 0x94de4a4a, 0x98d44c4c, 0xb0e85858, 0x854acfcf,
+       0xbb6bd0d0, 0xc52aefef, 0x4fe5aaaa, 0xed16fbfb, 0x86c54343, 0x9ad74d4d, 0x66553333, 0x11948585,
+       0x8acf4545, 0xe910f9f9, 0x04060202, 0xfe817f7f, 0xa0f05050, 0x78443c3c, 0x25ba9f9f, 0x4be3a8a8,
+       0xa2f35151, 0x5dfea3a3, 0x80c04040, 0x058a8f8f, 0x3fad9292, 0x21bc9d9d, 0x70483838, 0xf104f5f5,
+       0x63dfbcbc, 0x77c1b6b6, 0xaf75dada, 0x42632121, 0x20301010, 0xe51affff, 0xfd0ef3f3, 0xbf6dd2d2,
+       0x814ccdcd, 0x18140c0c, 0x26351313, 0xc32fecec, 0xbee15f5f, 0x35a29797, 0x88cc4444, 0x2e391717,
+       0x9357c4c4, 0x55f2a7a7, 0xfc827e7e, 0x7a473d3d, 0xc8ac6464, 0xbae75d5d, 0x322b1919, 0xe6957373,
+       0xc0a06060, 0x19988181, 0x9ed14f4f, 0xa37fdcdc, 0x44662222, 0x547e2a2a, 0x3bab9090, 0x0b838888,
+       0x8cca4646, 0xc729eeee, 0x6bd3b8b8, 0x283c1414, 0xa779dede, 0xbce25e5e, 0x161d0b0b, 0xad76dbdb,
+       0xdb3be0e0, 0x64563232, 0x744e3a3a, 0x141e0a0a, 0x92db4949, 0x0c0a0606, 0x486c2424, 0xb8e45c5c,
+       0x9f5dc2c2, 0xbd6ed3d3, 0x43efacac, 0xc4a66262, 0x39a89191, 0x31a49595, 0xd337e4e4, 0xf28b7979,
+       0xd532e7e7, 0x8b43c8c8, 0x6e593737, 0xdab76d6d, 0x018c8d8d, 0xb164d5d5, 0x9cd24e4e, 0x49e0a9a9,
+       0xd8b46c6c, 0xacfa5656, 0xf307f4f4, 0xcf25eaea, 0xcaaf6565, 0xf48e7a7a, 0x47e9aeae, 0x10180808,
+       0x6fd5baba, 0xf0887878, 0x4a6f2525, 0x5c722e2e, 0x38241c1c, 0x57f1a6a6, 0x73c7b4b4, 0x9751c6c6,
+       0xcb23e8e8, 0xa17cdddd, 0xe89c7474, 0x3e211f1f, 0x96dd4b4b, 0x61dcbdbd, 0x0d868b8b, 0x0f858a8a,
+       0xe0907070, 0x7c423e3e, 0x71c4b5b5, 0xccaa6666, 0x90d84848, 0x06050303, 0xf701f6f6, 0x1c120e0e,
+       0xc2a36161, 0x6a5f3535, 0xaef95757, 0x69d0b9b9, 0x17918686, 0x9958c1c1, 0x3a271d1d, 0x27b99e9e,
+       0xd938e1e1, 0xeb13f8f8, 0x2bb39898, 0x22331111, 0xd2bb6969, 0xa970d9d9, 0x07898e8e, 0x33a79494,
+       0x2db69b9b, 0x3c221e1e, 0x15928787, 0xc920e9e9, 0x8749cece, 0xaaff5555, 0x50782828, 0xa57adfdf,
+       0x038f8c8c, 0x59f8a1a1, 0x09808989, 0x1a170d0d, 0x65dabfbf, 0xd731e6e6, 0x84c64242, 0xd0b86868,
        0x82c34141, 0x29b09999, 0x5a772d2d, 0x1e110f0f, 0x7bcbb0b0, 0xa8fc5454, 0x6dd6bbbb, 0x2c3a1616
 };
 
@@ -364,7 +375,7 @@ int SDRM_SNOW2_getKeyStream64(SDRM_SNOW2Context *ctx, cc_u32 *keyStream64)
                R1_next = ctx->r2 + s[(i + 5) & 0x0f];
                ctx->r2 = SNOW2_T0[BYTE0(ctx->r1)] ^ SNOW2_T1[BYTE1(ctx->r1)] ^ SNOW2_T2[BYTE2(ctx->r1)] ^ SNOW2_T3[BYTE3(ctx->r1)];
                ctx->r1 = R1_next;
-               
+
                keyStream64[i] = (ctx->r1 + s[i & 0x0f]) ^ ctx->r2 ^ s[(i + 1) & 0x0f];
        }
 
@@ -393,7 +404,7 @@ int SDRM_SNOW2_getKeyStream(SDRM_SNOW2Context *ctx, cc_u32 *keyStream)
        R1_next = ctx->r2 + s[(t + 5) & 0x0f];
        ctx->r2 = SNOW2_T0[BYTE0(ctx->r1)] ^ SNOW2_T1[BYTE1(ctx->r1)] ^ SNOW2_T2[BYTE2(ctx->r1)] ^ SNOW2_T3[BYTE3(ctx->r1)];
        ctx->r1 = R1_next;
-       
+
        *keyStream = (ctx->r1 + s[t & 0x0f]) ^ ctx->r2 ^ s[(t + 1) & 0x0f];
 
        ctx->t = (t + 1) & 0x0f;
index cda9d3c828e21eb0afd8cbb012159bbaf2201b9f..9c960acca8100bd2248e1136a2470ea68ff52cb9 100644 (file)
@@ -1,13 +1,23 @@
 /**
- * \file       cmac.c
- * @brief      funciton for c-mac code generation by AES-128
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/20
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Function for C-MAC code generation by AES-128
  */
 
 
@@ -78,17 +88,17 @@ int SDRM_CMAC_init(CryptoCoreContainer *crt, cc_u8 *Key, cc_u32 KeyLen)
        {
                for (i = 0; i < 15; i++)
                {
-                       K1[i] = (temp[i] << 1) | (temp[i+1] >> 7); 
+                       K1[i] = (temp[i] << 1) | (temp[i+1] >> 7);
                }
-               K1[15] = temp[i] << 1; 
+               K1[15] = temp[i] << 1;
        }
        else if ((temp[0] >> 7) == 0x01)
        {
                for (i = 0; i < 15; i++)
                {
-                       K1[i] = (temp[i] << 1) | (temp[i+1] >> 7); 
+                       K1[i] = (temp[i] << 1) | (temp[i+1] >> 7);
                }
-               K1[15] = temp[i] << 1; 
+               K1[15] = temp[i] << 1;
                BlockXor(K1, K1, R_b);
        }
 
@@ -96,22 +106,22 @@ int SDRM_CMAC_init(CryptoCoreContainer *crt, cc_u8 *Key, cc_u32 KeyLen)
        {
                for (i = 0; i < 15; i++)
                {
-                       K2[i] = (K1[i] << 1) | (K1[i+1] >> 7); 
+                       K2[i] = (K1[i] << 1) | (K1[i+1] >> 7);
                }
-               K2[15] = K1[i] << 1; 
+               K2[15] = K1[i] << 1;
        }
        else if ((K1[0] >> 7) == 0x01)
        {
                for (i = 0; i < 15; i++)
                {
-                       K2[i] = (K1[i] << 1) | (K1[i+1] >> 7); 
+                       K2[i] = (K1[i] << 1) | (K1[i+1] >> 7);
                }
-               K2[15] = K1[i] << 1; 
+               K2[15] = K1[i] << 1;
                BlockXor(K2, K2, R_b);
        }
 
-//     LOG4DRM_BUFFER(&CryptoLogCTX), LOG_DEBUG, "K1", K1, 16); 
-//     LOG4DRM_BUFFER(&CryptoLogCTX), LOG_DEBUG, "K2", K2, 16); 
+//     LOG4DRM_BUFFER(&CryptoLogCTX), LOG_DEBUG, "K1", K1, 16);
+//     LOG4DRM_BUFFER(&CryptoLogCTX), LOG_DEBUG, "K2", K2, 16);
 
        return CRYPTO_SUCCESS;
 }
@@ -165,7 +175,7 @@ int SDRM_CMAC_update(CryptoCoreContainer *crt, cc_u8 *msg, cc_u32 msgLen)
                ptr += SDRM_AES_BLOCK_SIZ;
        }
 
-//     LOG4DRM_BUFFER(&CryptoLogCTX), LOG_DEBUG, "Block", crt->ctx->cmacctx->IV, 16); 
+//     LOG4DRM_BUFFER(&CryptoLogCTX), LOG_DEBUG, "Block", crt->ctx->cmacctx->IV, 16);
 
        memcpy(crt->ctx->cmacctx->Block, ptr, crt->ctx->cmacctx->BlockLen);
 
@@ -257,4 +267,4 @@ int SDRM_CMAC_getMAC(CryptoCoreContainer *crt, cc_u8 *Key, cc_u32 KeyLen, cc_u8
        return SDRM_CMAC_final(crt, output, outputLen);
 }
 
-/***************************** End of File *****************************/      
+/***************************** End of File *****************************/
index 3bfffbc8b90f14b07497ad0c064ce00786aa7009..a7f087ad41f8a968661f4a71ca6f509094369290 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       ecdh.c
- * @brief      implementation of EC Diffie-Hellman Key Exchange Protocol
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/27
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of Diffie-Hellman Key Exchange Protocol
+ */
+
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
index c933f8557d625bf35cd351e4e4ddbc47bf169aee..b8bb689ee64df97fe3bd40f0e7af91bfc3c878aa 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       dsa.c
- * @brief      implementation of dsa signature/verifycation
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/23
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of DSA signature/verification
  */
 
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -49,7 +60,7 @@ void SDRM_Add_DW2BA(cc_u8* BA, cc_u32 dLen, cc_u32 val)
                {
                        for (i = dLen - 5; i != (cc_u32)-1; i--)
                        {
-                               if (++BA[i] != 0) 
+                               if (++BA[i] != 0)
                                {
                                        return;
                                }
@@ -223,7 +234,7 @@ int SDRM_DSA_GenParam(CryptoCoreContainer *crt, cc_u32 T_Siz,
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
        }
-       
+
        BN_G    = SDRM_BN_Alloc((cc_u8*)pbBuf,                           SDRM_DSA_BN_BUFSIZE);
        BN_Temp = SDRM_BN_Alloc((cc_u8*)BN_G + SDRM_DSA_ALLOC_SIZE, SDRM_DSA_BN_BUFSIZE);
 
@@ -354,7 +365,7 @@ SUCCESS :
        {
                *DSA_G_Len = BN_AL->Length * 4;
        }
-       
+
        free(pbBuf);
 
        return CRYPTO_SUCCESS;
@@ -509,7 +520,7 @@ int SDRM_DSA_sign(CryptoCoreContainer *crt, cc_u8 *hash, cc_u32 hashLen, cc_u8 *
        }
 
        free(pbBuf);
-       
+
        return CRYPTO_SUCCESS;
  }
 
index 5882576f0328dc648f2cf45ae047aa68af1ed266..67ad4fb624711ab193af6b95c78f29186ba81140 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       ecdh.c
- * @brief      implementation of EC Diffie-Hellman Key Exchange Protocol
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/27
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of EC Diffie-Hellman Key Exchange Protocol
  */
 
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -90,13 +101,13 @@ int SDRM_generateDH1stPhaseKey(CryptoCoreContainer *crt, cc_u8 *pchXk, cc_u8 *pc
                return CRYPTO_MEMORY_ALLOC_FAIL;
        }
 
-       SDRM_BN2OS(kP->x, crt->ctx->ecdsactx->uDimension >> 3, pchXv); 
+       SDRM_BN2OS(kP->x, crt->ctx->ecdsactx->uDimension >> 3, pchXv);
        SDRM_BN2OS(kP->y, crt->ctx->ecdsactx->uDimension >> 3, pchXv + (crt->ctx->ecdsactx->uDimension >> 3));
 
        free(BN_Temp);
        free(BN_Xk);
        free(kP);
-       
+
        return CRYPTO_SUCCESS;
 }
 
@@ -174,7 +185,7 @@ int SDRM_generateDHKey(CryptoCoreContainer *crt, cc_u8* pchXk, cc_u8* pchYv, cc_
 
                return CRYPTO_MEMORY_ALLOC_FAIL;
        }
-               
+
        if (SDRM_CTX_EC_kP(ctx, kP, EC_Yv, BN_Xk) == CRYPTO_MEMORY_ALLOC_FAIL)
        {
                free(BN_Xk);
@@ -184,7 +195,7 @@ int SDRM_generateDHKey(CryptoCoreContainer *crt, cc_u8* pchXk, cc_u8* pchYv, cc_
                return CRYPTO_MEMORY_ALLOC_FAIL;
        }
 
-       retVal = SDRM_BN2OS(kP->x, crt->ctx->ecdsactx->uDimension >> 3, pchKauth); 
+       retVal = SDRM_BN2OS(kP->x, crt->ctx->ecdsactx->uDimension >> 3, pchKauth);
        if (retVal != CRYPTO_SUCCESS)
        {
                free(BN_Xk);
@@ -197,7 +208,7 @@ int SDRM_generateDHKey(CryptoCoreContainer *crt, cc_u8* pchXk, cc_u8* pchYv, cc_
        free(BN_Xk);
        free(kP);
        free(EC_Yv);
-               
+
        return CRYPTO_SUCCESS;
 }
 
index 7a7918c6f39d6105071f33175cd97df52448c149..2436f09a12c7c215e5dbc45225e9e57d1c6b5865 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       ecdsa.c
- * @brief      implementation of public key signature algorithm
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/13
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of Public Key Signature Algorithm
  */
 
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -39,14 +50,14 @@ int SDRM_CTX_ECDSA_KEY_GEN(SDRM_ECC_CTX *ctx)
        cc_u32                  Seed[4];
        SDRM_BIG_NUM    *BN_d, *BN_temp;
        SDRM_EC_POINT   *kP;
-       
+
        cc_u8                   *pbBuf = NULL;
 
        if (ctx == NULL)
        {
                return CRYPTO_NULL_POINTER;
        }
-       
+
        pbBuf = (cc_u8*)malloc(SDRM_ECC_ALLOC_SIZE * 2);
        if (!pbBuf)
        {
@@ -110,10 +121,10 @@ int SDRM_CTX_ECDSA_KEY_GEN(SDRM_ECC_CTX *ctx)
  */
 int SDRM_CTX_ECDSA_SIG_GEN(SDRM_ECC_CTX *ctx, cc_u8 *sig, cc_u8 *hash, unsigned int hashLen)
 {
-       int                             i, res = -1; 
+       int                             i, res = -1;
        cc_u32                  Seed[20];
        SDRM_BIG_NUM    *BN_Tmp1, *BN_Tmp2, *BN_Tmp3;
-       SDRM_BIG_NUM    *BN_k, *BN_r, *BN_s, *BN_hash; 
+       SDRM_BIG_NUM    *BN_k, *BN_r, *BN_s, *BN_hash;
        SDRM_EC_POINT   *kP;
 
        cc_u8                   *pbBuf = NULL;
@@ -153,7 +164,7 @@ int SDRM_CTX_ECDSA_SIG_GEN(SDRM_ECC_CTX *ctx, cc_u8 *sig, cc_u8 *hash, unsigned
        {
                while(1)
                {
-                       //      1. [1, r-1] »çÀÌÀÇ ³­¼ö k ¼±ÅÃ
+                       //      1. [1, r-1] ������ ���� k ����
                        SDRM_BN_Sub(BN_Tmp1, ctx->ECC_n, BN_One);
                        do {
                                SDRM_RNG_X931((cc_u8 *)Seed, ctx->uDimension, (cc_u8*)BN_k->pData);
@@ -161,7 +172,7 @@ int SDRM_CTX_ECDSA_SIG_GEN(SDRM_ECC_CTX *ctx, cc_u8 *sig, cc_u8 *hash, unsigned
                        }
                        while((SDRM_BN_Cmp(BN_k, BN_One) < 0) || (SDRM_BN_Cmp(BN_k, BN_Tmp1) > 0));
 
-                       //      2. kP = (x1, y1), r = x1 mod n(&ctx.ECC_n) °è»ê. r = 0 À̸é k ´Ù½Ã ¼±Åà
+                       //      2. kP = (x1, y1), r = x1 mod n(&ctx.ECC_n) ���. r = 0 �̸� k �ٽ� ����
                        SDRM_EC_SET_ZERO(kP);
                        res = SDRM_CTX_EC_kP(ctx, kP, ctx->ECC_G, BN_k);
                        if (res != CRYPTO_SUCCESS)
@@ -172,24 +183,24 @@ int SDRM_CTX_ECDSA_SIG_GEN(SDRM_ECC_CTX *ctx, cc_u8 *sig, cc_u8 *hash, unsigned
                                return res;
                        }
 
-                       //SDRM_PrintBN("kP->x", kP->x); 
-                       SDRM_BN_ModRed(BN_r, kP->x, ctx->ECC_n);        
-                       if (BN_r->Length > 0)           // r = 0 À̸é k ´Ù½Ã ¼±ÅÃ
+                       //SDRM_PrintBN("kP->x", kP->x);
+                       SDRM_BN_ModRed(BN_r, kP->x, ctx->ECC_n);
+                       if (BN_r->Length > 0)           // r = 0 �̸� k �ٽ� ����
                        {
                                break;
                        }
                }
 
-       //      3. k^{-1} mod n °è»ê.
+       //      3. k^{-1} mod n ���.
                SDRM_BN_ModInv(BN_Tmp1, BN_k, ctx->ECC_n);
 
-               //SDRM_PrintBN("BN_k", BN_k); 
-               //SDRM_PrintBN("ctx->ECC_n", ctx->ECC_n); 
-               //SDRM_PrintBN("BN_Tmp1 = k^{-1} mod n", BN_Tmp1); 
+               //SDRM_PrintBN("BN_k", BN_k);
+               //SDRM_PrintBN("ctx->ECC_n", ctx->ECC_n);
+               //SDRM_PrintBN("BN_Tmp1 = k^{-1} mod n", BN_Tmp1);
 
-       //      4. s = k^{-1}(hash + dr) mod n °è»ê (d = private key). s = 0 À̸é 1¹øÀ¸·Î. 
+       //      4. s = k^{-1}(hash + dr) mod n ��� (d = private key). s = 0 �̸� 1������.
                // BN_Tmp2 = dr
-               SDRM_OS2BN(hash, hashLen, BN_hash); 
+               SDRM_OS2BN(hash, hashLen, BN_hash);
 
                SDRM_BN_ModMul(BN_Tmp2, ctx->PRIV_KEY, BN_r, ctx->ECC_n);
                SDRM_BN_ModAdd(BN_Tmp3, BN_hash, BN_Tmp2, ctx->ECC_n);
@@ -200,7 +211,7 @@ int SDRM_CTX_ECDSA_SIG_GEN(SDRM_ECC_CTX *ctx, cc_u8 *sig, cc_u8 *hash, unsigned
                }
        }
 
-//     (r, s) ¼­¸íÀ¸·Î Ãâ·Â.
+//     (r, s) �������� ���.
        //SDRM_PrintBN("BN_r", BN_r);
        //SDRM_PrintBN("BN_s", BN_s);
 
@@ -210,7 +221,7 @@ int SDRM_CTX_ECDSA_SIG_GEN(SDRM_ECC_CTX *ctx, cc_u8 *sig, cc_u8 *hash, unsigned
        free(kP);
        free(pbBuf);
 
-       return CRYPTO_SUCCESS; 
+       return CRYPTO_SUCCESS;
 }
 
 /*
@@ -233,15 +244,15 @@ int SDRM_CTX_ECDSA_SIG_VERIFY(SDRM_ECC_CTX *ctx, cc_u8 *sig, int signLen, cc_u8
 {
        int                             res;
        SDRM_BIG_NUM    *BN_tmp, *BN_u1, *BN_u2, *BN_w, *BN_hash, *pBN_r, *pBN_s;
-       SDRM_EC_POINT   *EC_temp1, *EC_temp2; 
+       SDRM_EC_POINT   *EC_temp1, *EC_temp2;
 
        cc_u8 *pbBuf = (cc_u8*)malloc(SDRM_ECC_ALLOC_SIZE * 7);
-       
+
        if (!pbBuf)
        {
                return CRYPTO_MEMORY_ALLOC_FAIL;
        }
-       
+
        BN_tmp  = SDRM_BN_Alloc( pbBuf,                                                          SDRM_ECC_BN_BUFSIZE);
        BN_u1   = SDRM_BN_Alloc((cc_u8*)BN_tmp + SDRM_ECC_ALLOC_SIZE, SDRM_ECC_BN_BUFSIZE);
        BN_u2   = SDRM_BN_Alloc((cc_u8*)BN_u1  + SDRM_ECC_ALLOC_SIZE, SDRM_ECC_BN_BUFSIZE);
@@ -249,7 +260,7 @@ int SDRM_CTX_ECDSA_SIG_VERIFY(SDRM_ECC_CTX *ctx, cc_u8 *sig, int signLen, cc_u8
        BN_hash = SDRM_BN_Alloc((cc_u8*)BN_w   + SDRM_ECC_ALLOC_SIZE, SDRM_ECC_BN_BUFSIZE);
        pBN_r   = SDRM_BN_Alloc((cc_u8*)BN_hash+ SDRM_ECC_ALLOC_SIZE, SDRM_ECC_BN_BUFSIZE);
        pBN_s   = SDRM_BN_Alloc((cc_u8*)pBN_r  + SDRM_ECC_ALLOC_SIZE, SDRM_ECC_BN_BUFSIZE);
-       
+
        EC_temp1 = SDRM_ECC_Init();
        if (EC_temp1 == NULL)
        {
@@ -273,12 +284,12 @@ int SDRM_CTX_ECDSA_SIG_VERIFY(SDRM_ECC_CTX *ctx, cc_u8 *sig, int signLen, cc_u8
                return CRYPTO_INVALID_ARGUMENT;
        }
 
-       SDRM_OS2BN(sig, ctx->uDimension / 8, pBN_r);    
-       SDRM_OS2BN(sig + ctx->uDimension / 8, ctx->uDimension / 8, pBN_s);      
+       SDRM_OS2BN(sig, ctx->uDimension / 8, pBN_r);
+       SDRM_OS2BN(sig + ctx->uDimension / 8, ctx->uDimension / 8, pBN_s);
        //SDRM_PrintBN("BN_r", pBN_r);
        //SDRM_PrintBN("BN_s", pBN_s);
 
-       //      1. r°ú sÀÇ ¹üÀ§ Á¶»ç 
+       //      1. r�� s�� ���� ����
        SDRM_BN_Sub(BN_tmp, ctx->ECC_n, BN_One);
        if ((SDRM_BN_Cmp(pBN_r, BN_One) < 0) || (SDRM_BN_Cmp(pBN_r, BN_tmp) > 0))
        {
@@ -297,9 +308,9 @@ int SDRM_CTX_ECDSA_SIG_VERIFY(SDRM_ECC_CTX *ctx, cc_u8 *sig, int signLen, cc_u8
 
                return CRYPTO_INVALID_ARGUMENT;
        }
-       
-       //      2. w = s^(-1) mod n, BN_hash °è»ê 
-       SDRM_OS2BN(hash, hashLen, BN_hash); 
+
+       //      2. w = s^(-1) mod n, BN_hash ���
+       SDRM_OS2BN(hash, hashLen, BN_hash);
        res = SDRM_BN_ModInv(BN_w, pBN_s, ctx->ECC_n);
 //SDRM_PrintBN("BN_w", BN_w);
 
@@ -313,7 +324,7 @@ int SDRM_CTX_ECDSA_SIG_VERIFY(SDRM_ECC_CTX *ctx, cc_u8 *sig, int signLen, cc_u8
        }
 
        //      3. u1 = BN_hash *w mod n, u2 = rw mod n
-       SDRM_BN_ModMul(BN_u1, BN_hash, BN_w, ctx->ECC_n);                       
+       SDRM_BN_ModMul(BN_u1, BN_hash, BN_w, ctx->ECC_n);
        SDRM_BN_ModMul(BN_u2, pBN_r,   BN_w, ctx->ECC_n);
 //SDRM_PrintBN("BN_u1", BN_u1);
 //SDRM_PrintBN("BN_u2", BN_u2);
@@ -337,14 +348,14 @@ int SDRM_CTX_ECDSA_SIG_VERIFY(SDRM_ECC_CTX *ctx, cc_u8 *sig, int signLen, cc_u8
 
                return res;
        }
-       
+
 //     SDRM_PrintBN("EC_temp1->x", EC_temp1->x);
 //     SDRM_PrintBN("ctx->ECC_n", ctx->ECC_n);
-       SDRM_BN_ModRed(BN_tmp, EC_temp1->x, ctx->ECC_n);        
+       SDRM_BN_ModRed(BN_tmp, EC_temp1->x, ctx->ECC_n);
 
 //     SDRM_PrintBN("BN_tmp", BN_tmp);
 //     SDRM_PrintBN("pBN_r", pBN_r);
-       // 5. V = rÀΠ°æ¿ì ¼­¸í ok
+       // 5. V = r�� ��� ���� ok
        res = SDRM_BN_Cmp_sign(BN_tmp, pBN_r);
        if (res != 0)
        {
@@ -353,7 +364,7 @@ int SDRM_CTX_ECDSA_SIG_VERIFY(SDRM_ECC_CTX *ctx, cc_u8 *sig, int signLen, cc_u8
                free(EC_temp1);
                free(EC_temp2);
 
-               return res; 
+               return res;
        }
 
        //Success
@@ -361,7 +372,7 @@ int SDRM_CTX_ECDSA_SIG_VERIFY(SDRM_ECC_CTX *ctx, cc_u8 *sig, int signLen, cc_u8
        free(EC_temp1);
        free(EC_temp2);
 
-       return CRYPTO_VALID_SIGN; 
+       return CRYPTO_VALID_SIGN;
 }
 
 /*
@@ -457,7 +468,7 @@ int SDRM_ECDSA_verify(CryptoCoreContainer *crt, cc_u8 *hash, cc_u32 hashLen, cc_
  * @return     CRYPTO_SUCCESS          if no error is occured
  * \n          CRYPTO_NULL_POINTER     if argument is null
  */
-int SDRM_ECC_Set_CTX(CryptoCoreContainer *crt, cc_u16 Dimension, 
+int SDRM_ECC_Set_CTX(CryptoCoreContainer *crt, cc_u16 Dimension,
                                         cc_u8* ECC_P_Data,   cc_u32 ECC_P_Len,
                                         cc_u8* ECC_A_Data,   cc_u32 ECC_A_Len,
                                         cc_u8* ECC_B_Data,   cc_u32 ECC_B_Len,
@@ -483,42 +494,42 @@ int SDRM_ECC_Set_CTX(CryptoCoreContainer *crt, cc_u16 Dimension,
 
        ECC_ctx->uDimension = Dimension;
 
-       retVal = SDRM_OS2BN(ECC_P_Data, ECC_P_Len, ECC_ctx->ECC_p); 
+       retVal = SDRM_OS2BN(ECC_P_Data, ECC_P_Len, ECC_ctx->ECC_p);
        if (retVal != CRYPTO_SUCCESS)
        {
                free(ECC_ctx);
                return retVal;
        }
 
-       retVal = SDRM_OS2BN(ECC_A_Data, ECC_A_Len, ECC_ctx->ECC_a); 
+       retVal = SDRM_OS2BN(ECC_A_Data, ECC_A_Len, ECC_ctx->ECC_a);
        if (retVal != CRYPTO_SUCCESS)
        {
                free(ECC_ctx);
                return retVal;
        }
 
-       retVal = SDRM_OS2BN(ECC_B_Data, ECC_B_Len, ECC_ctx->ECC_b); 
+       retVal = SDRM_OS2BN(ECC_B_Data, ECC_B_Len, ECC_ctx->ECC_b);
        if (retVal != CRYPTO_SUCCESS)
        {
                free(ECC_ctx);
                return retVal;
        }
 
-       retVal = SDRM_OS2BN(ECC_R_Data, ECC_R_Len, ECC_ctx->ECC_n); 
+       retVal = SDRM_OS2BN(ECC_R_Data, ECC_R_Len, ECC_ctx->ECC_n);
        if (retVal != CRYPTO_SUCCESS)
        {
                free(ECC_ctx);
                return retVal;
        }
-       
+
        ECC_ctx->ECC_G->IsInfinity = 0;
-       retVal = SDRM_OS2BN(ECC_G_X_Data, ECC_G_X_Len, ECC_ctx->ECC_G->x); 
+       retVal = SDRM_OS2BN(ECC_G_X_Data, ECC_G_X_Len, ECC_ctx->ECC_G->x);
        if (retVal != CRYPTO_SUCCESS)
        {
                free(ECC_ctx);
                return retVal;
        }
-       retVal = SDRM_OS2BN(ECC_G_Y_Data, ECC_G_Y_Len, ECC_ctx->ECC_G->y);      
+       retVal = SDRM_OS2BN(ECC_G_Y_Data, ECC_G_Y_Len, ECC_ctx->ECC_G->y);
        if (retVal != CRYPTO_SUCCESS)
        {
                free(ECC_ctx);
@@ -548,7 +559,7 @@ int SDRM_ECC_Set_CTX(CryptoCoreContainer *crt, cc_u16 Dimension,
  * \n          CRYPTO_NULL_POINTER     if argument is null
  */
 int SDRM_ECC_genKeypair (CryptoCoreContainer *crt,
-                                                cc_u8 *PrivateKey,  cc_u32 *PrivateKeyLen, 
+                                                cc_u8 *PrivateKey,  cc_u32 *PrivateKeyLen,
                                                 cc_u8 *PublicKey_X, cc_u32 *PublicKey_XLen,
                                                 cc_u8 *PublicKey_Y, cc_u32 *PublicKey_YLen)
 {
@@ -643,7 +654,7 @@ int SDRM_ECC_setKeypair(CryptoCoreContainer *crt,
 
        if (PUB_X_Data != NULL && PUB_Y_Data != NULL)
        {
-               retVal = SDRM_OS2BN(PUB_X_Data, PUB_X_Len, ECC_ctx->PUBLIC_KEY->x); 
+               retVal = SDRM_OS2BN(PUB_X_Data, PUB_X_Len, ECC_ctx->PUBLIC_KEY->x);
                if (retVal != CRYPTO_SUCCESS)
                {
                        return retVal;
index 6051eaf2cfe062e66b2b50df3ac58a006a767673..731fbbdc6b10b6e844ffb5454b4e9bf9b6154187 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       hmac.c
- * @brief      funciton for c-mac code generation by SHA1 and MD5
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/19
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Function for C-MAC code generation by SHA1 and MD5
+ */
+
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -512,7 +523,7 @@ int SDRM_getK0(cc_u8* k0, cc_u8* Key, cc_u32 KeyLen, cc_u32 Algorithm, cc_u32 B)
                                SDRM_SHA1_Init(&SHA1ctx);
                                SDRM_SHA1_Update(&SHA1ctx, Key, KeyLen);
                                SDRM_SHA1_Final(&SHA1ctx, k0);
-                               
+
                                L = SDRM_SHA1_BLOCK_SIZ;
 
                                break;
@@ -521,7 +532,7 @@ int SDRM_getK0(cc_u8* k0, cc_u8* Key, cc_u32 KeyLen, cc_u32 Algorithm, cc_u32 B)
                                SDRM_SHA224_Init(&SHA224ctx);
                                SDRM_SHA224_Update(&SHA224ctx, Key, KeyLen);
                                SDRM_SHA224_Final(&SHA224ctx, k0);
-                               
+
                                L = SDRM_SHA224_BLOCK_SIZ;
 
                                break;
@@ -530,7 +541,7 @@ int SDRM_getK0(cc_u8* k0, cc_u8* Key, cc_u32 KeyLen, cc_u32 Algorithm, cc_u32 B)
                                SDRM_SHA256_Init(&SHA256ctx);
                                SDRM_SHA256_Update(&SHA256ctx, Key, KeyLen);
                                SDRM_SHA256_Final(&SHA256ctx, k0);
-                               
+
                                L = SDRM_SHA256_BLOCK_SIZ;
 
                                break;
@@ -540,7 +551,7 @@ int SDRM_getK0(cc_u8* k0, cc_u8* Key, cc_u32 KeyLen, cc_u32 Algorithm, cc_u32 B)
                                SDRM_SHA384_Init(&SHA384ctx);
                                SDRM_SHA384_Update(&SHA384ctx, Key, KeyLen);
                                SDRM_SHA384_Final(&SHA384ctx, k0);
-                               
+
                                L = SDRM_SHA384_BLOCK_SIZ;
 
                                break;
@@ -549,7 +560,7 @@ int SDRM_getK0(cc_u8* k0, cc_u8* Key, cc_u32 KeyLen, cc_u32 Algorithm, cc_u32 B)
                                SDRM_SHA512_Init(&SHA512ctx);
                                SDRM_SHA512_Update(&SHA512ctx, Key, KeyLen);
                                SDRM_SHA512_Final(&SHA512ctx, k0);
-                               
+
                                L = SDRM_SHA512_BLOCK_SIZ;
 
                                break;
index 85fb210a3af5386ab6ad5ff8fa788dc67bc17067..42d38a172b6018bf1e69648f9b20a6994ec48ddf 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       rng.c
- * @brief      Random Number Generator Interface
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon, Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/07
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Random Number Generator Interface
+ */
+
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
index cf6628ac0215e48a18b55badd204c2ace8065b9d..e0a2a36ffea9a51581ecd1179d4a4bcc3b3f6aad 100644 (file)
@@ -1,16 +1,26 @@
 /**
- * \file       rsa.c
- * @brief      implementation of rsa encryption/decryption and signature/verifycation
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/20
- * Note : Modified for support RSA-2048(Jisoon Park, 2007/03/14)
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  Implementation of RSA encryption/decryption and signature/verification
+ */
+
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
index cbd1c48746e0b6bb5c05562922e58668b6360746..b313fe4ac4f3c0e83e71847abaa6dbc84761c666 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       symmetric.c
- * @brief      API for symmetric encryption
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon, Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/11/07
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  API for symmetric encryption
+ */
+
+
 ////////////////////////////////////////////////////////////////////////////
 // Include Header Files
 ////////////////////////////////////////////////////////////////////////////
@@ -42,22 +53,22 @@ int SDRM_getEncRoundKey(int Algorithm, cc_u8* UserKey, cc_u8* RoundKey)
 
        switch (Algorithm)
        {
-               case ID_AES128 : 
+               case ID_AES128 :
                        SDRM_rijndaelKeySetupEnc((cc_u32*)(void*)RoundKey, UserKey, 128);
                        return CRYPTO_SUCCESS;
-               case ID_AES192 : 
+               case ID_AES192 :
                        SDRM_rijndaelKeySetupEnc((cc_u32*)(void*)RoundKey, UserKey, 192);
                        return CRYPTO_SUCCESS;
-               case ID_AES256 : 
+               case ID_AES256 :
                        SDRM_rijndaelKeySetupEnc((cc_u32*)(void*)RoundKey, UserKey, 256);
                        return CRYPTO_SUCCESS;
-               case ID_DES : 
+               case ID_DES :
                        SDRM_DES_KeySched(RoundKey, UserKey, 0, 1);
                        return CRYPTO_SUCCESS;
-               case ID_TDES_EDE2 : 
+               case ID_TDES_EDE2 :
                        SDRM_TDES_KeySched(RoundKey, UserKey, 16, 1);
                        return CRYPTO_SUCCESS;
-               case ID_TDES_EDE3 : 
+               case ID_TDES_EDE3 :
                        SDRM_TDES_KeySched(RoundKey, UserKey, 24, 1);
                        return CRYPTO_SUCCESS;
                default :
@@ -88,22 +99,22 @@ int SDRM_getDecRoundKey(int Algorithm, cc_u8* UserKey, cc_u8* RoundKey)
 
        switch (Algorithm)
        {
-               case ID_AES128 : 
+               case ID_AES128 :
                        SDRM_rijndaelKeySetupDec((cc_u32*)(void*)RoundKey, UserKey, 128);
                        return CRYPTO_SUCCESS;
-               case ID_AES192 : 
+               case ID_AES192 :
                        SDRM_rijndaelKeySetupDec((cc_u32*)(void*)RoundKey, UserKey, 192);
                        return CRYPTO_SUCCESS;
-               case ID_AES256 : 
+               case ID_AES256 :
                        SDRM_rijndaelKeySetupDec((cc_u32*)(void*)RoundKey, UserKey, 256);
                        return CRYPTO_SUCCESS;
-               case ID_DES : 
+               case ID_DES :
                        SDRM_DES_KeySched(RoundKey, UserKey, 15, (cc_u32)-1);
                        return CRYPTO_SUCCESS;
-               case ID_TDES_EDE2 : 
+               case ID_TDES_EDE2 :
                        SDRM_TDES_KeySched(RoundKey, UserKey, 16, (cc_u32)-1);
                        return CRYPTO_SUCCESS;
-               case ID_TDES_EDE3 : 
+               case ID_TDES_EDE3 :
                        SDRM_TDES_KeySched(RoundKey, UserKey, 24, (cc_u32)-1);
                        return CRYPTO_SUCCESS;
                default :
@@ -246,7 +257,7 @@ int SDRM_AES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
                                retVal = SDRM_CTR_Enc(crt->alg, output, Block, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV, crt->ctx->aesctx->CTR_Count++);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_ECB : 
+                       case ID_DEC_ECB :
                                retVal = SDRM_ECB_Dec(crt->alg, output, Block, crt->ctx->aesctx->RoundKey);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
@@ -262,7 +273,7 @@ int SDRM_AES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
                                retVal = SDRM_OFB_Dec(crt->alg, output, Block, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_CTR : 
+                       case ID_DEC_CTR :
                                retVal = SDRM_CTR_Dec(crt->alg, output, Block, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV, crt->ctx->aesctx->CTR_Count++);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
@@ -281,7 +292,7 @@ int SDRM_AES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
        {
                switch(crt->ctx->aesctx->moo)
                {
-                       case ID_ENC_ECB : 
+                       case ID_ENC_ECB :
                                retVal = SDRM_ECB_Enc(crt->alg, output + tempLen, Text + i, crt->ctx->aesctx->RoundKey);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
@@ -297,11 +308,11 @@ int SDRM_AES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
                                retVal = SDRM_OFB_Enc(crt->alg, output + tempLen, Text + i, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
-                       case ID_ENC_CTR : 
+                       case ID_ENC_CTR :
                                retVal = SDRM_CTR_Enc(crt->alg, output + tempLen, Text + i, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV, crt->ctx->aesctx->CTR_Count++);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_ECB : 
+                       case ID_DEC_ECB :
                                retVal = SDRM_ECB_Dec(crt->alg, output + tempLen, Text + i, crt->ctx->aesctx->RoundKey);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
@@ -317,7 +328,7 @@ int SDRM_AES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
                                retVal = SDRM_OFB_Dec(crt->alg, output + tempLen, Text + i, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_CTR : 
+                       case ID_DEC_CTR :
                                retVal = SDRM_CTR_Dec(crt->alg, output + tempLen, Text + i, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV, crt->ctx->aesctx->CTR_Count++);
                                tempLen += SDRM_AES_BLOCK_SIZ;
                                break;
@@ -395,7 +406,7 @@ int SDRM_AES_final(CryptoCoreContainer *crt, cc_u8 *input, cc_u32 inputLen, cc_u
                }
 
                retVal = SDRM_AES_final(crt, NULL, 0, output + temp, outputLen);
-               
+
                if (outputLen)
                {
                        *outputLen += temp;
@@ -439,7 +450,7 @@ int SDRM_AES_final(CryptoCoreContainer *crt, cc_u8 *input, cc_u32 inputLen, cc_u
        //encryption
        switch(crt->ctx->aesctx->moo)
        {
-               case ID_ENC_ECB : 
+               case ID_ENC_ECB :
                        retVal = SDRM_ECB_Enc(crt->alg, output, Block, crt->ctx->aesctx->RoundKey);
                        break;
                case ID_ENC_CBC :
@@ -451,9 +462,9 @@ int SDRM_AES_final(CryptoCoreContainer *crt, cc_u8 *input, cc_u32 inputLen, cc_u
                case ID_ENC_OFB :
                        retVal = SDRM_OFB_Enc(crt->alg, output, Block, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV);
                        break;
-               case ID_ENC_CTR : 
+               case ID_ENC_CTR :
                        retVal = SDRM_CTR_Enc(crt->alg, Block, Block, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV, crt->ctx->aesctx->CTR_Count++);
-            if(crt->ctx->aesctx->padding != ID_NO_PADDING)// add by xugx to support padding 
+            if(crt->ctx->aesctx->padding != ID_NO_PADDING)// add by xugx to support padding
             {
                 BlockLen = SDRM_AES_BLOCK_SIZ;
             }
@@ -493,7 +504,7 @@ DECRYPTION:
 
        switch(crt->ctx->aesctx->moo)
        {
-               case ID_DEC_ECB : 
+               case ID_DEC_ECB :
                        retVal = SDRM_ECB_Dec(crt->alg, Block, Block, crt->ctx->aesctx->RoundKey);
                        break;
                case ID_DEC_CBC :
@@ -505,7 +516,7 @@ DECRYPTION:
                case ID_DEC_OFB :
                        retVal = SDRM_OFB_Dec(crt->alg, Block, Block, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV);
                        break;
-               case ID_DEC_CTR : 
+               case ID_DEC_CTR :
                        retVal = SDRM_CTR_Dec(crt->alg, Block, Block, crt->ctx->aesctx->RoundKey, crt->ctx->aesctx->IV, crt->ctx->aesctx->CTR_Count++);
                        break;
                default :
@@ -661,7 +672,7 @@ int SDRM_RC4_process(CryptoCoreContainer *crt, cc_u8 *in, cc_u32 inLen, cc_u8 *o
        {
                *outLen = inLen;
        }
-       
+
        return CRYPTO_SUCCESS;
 }
 
@@ -703,7 +714,7 @@ int SDRM_SNOW2_init(CryptoCoreContainer *crt, cc_u32 mode, cc_u32 PADDING, cc_u8
  * @brief      process message block
  *
  * @param      crt                                             [in]crypto env structure
- * @param      in                                              [in]message block       
+ * @param      in                                              [in]message block
  * @param      inLen                                   [in]byte-length of Text
  * @param      out                                             [out]processed message
  * @param      outLen                                  [out]byte-length of output
@@ -744,13 +755,13 @@ int SDRM_SNOW2_process(CryptoCoreContainer *crt, cc_u8 *in, cc_u32 inLen, cc_u8
                                out[loc + 3] = (cc_u8)(in[loc + 3] ^ ((keyStream64[j]      ) & 0xff));
                        }
                }
-       } 
+       }
        else
        {                               //big endian machine
                for (i = 0; i < BlockLen; i++)
                {
                        SDRM_SNOW2_getKeyStream64(crt->ctx->snow2ctx, keyStream64);
-                       
+
                        for (j = 0; j < 16; j++)
                        {
                                ((cc_u32*)(void*)out)[j] = ((cc_u32*)(void*)in)[j] ^ keyStream64[j];
@@ -837,7 +848,7 @@ int SDRM_DES_init(CryptoCoreContainer *crt, cc_u32 mode, cc_u32 PADDING, cc_u8 *
        {
                SDRM_getDecRoundKey(ID_DES, key, (cc_u8*)(crt->ctx->desctx->RoundKey));
        }
-       
+
        crt->ctx->desctx->BlockLen = 0;
        crt->ctx->desctx->CTR_Count = 0;
 
@@ -918,7 +929,7 @@ int SDRM_DES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
                                retVal = SDRM_CTR_Enc(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV, crt->ctx->desctx->CTR_Count++);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_ECB : 
+                       case ID_DEC_ECB :
                                retVal = SDRM_ECB_Dec(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -934,7 +945,7 @@ int SDRM_DES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
                                retVal = SDRM_OFB_Dec(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_CTR : 
+                       case ID_DEC_CTR :
                                retVal = SDRM_CTR_Dec(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV, crt->ctx->desctx->CTR_Count++);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -953,7 +964,7 @@ int SDRM_DES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
        {
                switch(crt->ctx->desctx->moo)
                {
-                       case ID_ENC_ECB : 
+                       case ID_ENC_ECB :
                                retVal = SDRM_ECB_Enc(ID_DES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->desctx->RoundKey);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -969,11 +980,11 @@ int SDRM_DES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
                                retVal = SDRM_OFB_Enc(ID_DES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_ENC_CTR : 
+                       case ID_ENC_CTR :
                                retVal = SDRM_CTR_Enc(ID_DES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV, crt->ctx->desctx->CTR_Count++);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_ECB : 
+                       case ID_DEC_ECB :
                                retVal = SDRM_ECB_Dec(ID_DES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->desctx->RoundKey);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -989,7 +1000,7 @@ int SDRM_DES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_u
                                retVal = SDRM_OFB_Dec(ID_DES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_CTR : 
+                       case ID_DEC_CTR :
                                retVal = SDRM_CTR_Dec(ID_DES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV, crt->ctx->desctx->CTR_Count++);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -1094,7 +1105,7 @@ int SDRM_DES_final(CryptoCoreContainer *crt, cc_u8 *input, cc_u32 inputLen, cc_u
        //encryption
        switch(crt->ctx->desctx->moo)
        {
-               case ID_ENC_ECB : 
+               case ID_ENC_ECB :
                        retVal = SDRM_ECB_Enc(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey);
                        break;
                case ID_ENC_CBC :
@@ -1106,7 +1117,7 @@ int SDRM_DES_final(CryptoCoreContainer *crt, cc_u8 *input, cc_u32 inputLen, cc_u
                case ID_ENC_OFB :
                        retVal = SDRM_OFB_Enc(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV);
                        break;
-               case ID_ENC_CTR : 
+               case ID_ENC_CTR :
                        retVal = SDRM_CTR_Enc(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV, crt->ctx->desctx->CTR_Count++);
                        break;
                default :
@@ -1139,7 +1150,7 @@ DECRYPTION:
 
        switch(crt->ctx->desctx->moo)
        {
-               case ID_DEC_ECB : 
+               case ID_DEC_ECB :
                        retVal = SDRM_ECB_Dec(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey);
                        break;
                case ID_DEC_CBC :
@@ -1151,7 +1162,7 @@ DECRYPTION:
                case ID_DEC_OFB :
                        retVal = SDRM_OFB_Dec(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV);
                        break;
-               case ID_DEC_CTR : 
+               case ID_DEC_CTR :
                        retVal = SDRM_CTR_Dec(ID_DES, output, Block, (cc_u8*)crt->ctx->desctx->RoundKey, crt->ctx->desctx->IV, crt->ctx->desctx->CTR_Count++);
                        break;
                default :
@@ -1284,7 +1295,7 @@ int SDRM_TDES_init(CryptoCoreContainer *crt, cc_u32 mode, cc_u32 PADDING, cc_u8
                        SDRM_getDecRoundKey(ID_TDES_EDE3, key, (cc_u8*)(crt->ctx->tdesctx->RoundKey));
                }
        }
-       
+
        crt->ctx->tdesctx->BlockLen = 0;
        crt->ctx->tdesctx->CTR_Count = 0;
 
@@ -1365,7 +1376,7 @@ int SDRM_TDES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_
                                retVal = SDRM_CTR_Enc(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV, crt->ctx->tdesctx->CTR_Count++);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_ECB : 
+                       case ID_DEC_ECB :
                                retVal = SDRM_ECB_Dec(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -1381,7 +1392,7 @@ int SDRM_TDES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_
                                retVal = SDRM_OFB_Dec(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_CTR : 
+                       case ID_DEC_CTR :
                                retVal = SDRM_CTR_Dec(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV, crt->ctx->tdesctx->CTR_Count++);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -1400,7 +1411,7 @@ int SDRM_TDES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_
        {
                switch(crt->ctx->tdesctx->moo)
                {
-                       case ID_ENC_ECB : 
+                       case ID_ENC_ECB :
                                retVal = SDRM_ECB_Enc(ID_TDES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->tdesctx->RoundKey);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -1416,11 +1427,11 @@ int SDRM_TDES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_
                                retVal = SDRM_OFB_Enc(ID_TDES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_ENC_CTR : 
+                       case ID_ENC_CTR :
                                retVal = SDRM_CTR_Enc(ID_TDES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV, crt->ctx->tdesctx->CTR_Count++);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_ECB : 
+                       case ID_DEC_ECB :
                                retVal = SDRM_ECB_Dec(ID_TDES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->tdesctx->RoundKey);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -1436,7 +1447,7 @@ int SDRM_TDES_process(CryptoCoreContainer *crt, cc_u8 *Text, cc_u32 TextLen, cc_
                                retVal = SDRM_OFB_Dec(ID_TDES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
-                       case ID_DEC_CTR : 
+                       case ID_DEC_CTR :
                                retVal = SDRM_CTR_Dec(ID_TDES, output + *outputLen, Text + i, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV, crt->ctx->tdesctx->CTR_Count++);
                                *outputLen += SDRM_DES_BLOCK_SIZ;
                                break;
@@ -1542,7 +1553,7 @@ int SDRM_TDES_final(CryptoCoreContainer *crt, cc_u8 *input, cc_u32 inputLen, cc_
        //encryption
        switch(crt->ctx->tdesctx->moo)
        {
-               case ID_ENC_ECB : 
+               case ID_ENC_ECB :
                        retVal = SDRM_ECB_Enc(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey);
                        break;
                case ID_ENC_CBC :
@@ -1554,7 +1565,7 @@ int SDRM_TDES_final(CryptoCoreContainer *crt, cc_u8 *input, cc_u32 inputLen, cc_
                case ID_ENC_OFB :
                        retVal = SDRM_OFB_Enc(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV);
                        break;
-               case ID_ENC_CTR : 
+               case ID_ENC_CTR :
                        retVal = SDRM_CTR_Enc(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV, crt->ctx->tdesctx->CTR_Count++);
                        break;
                default :
@@ -1587,7 +1598,7 @@ DECRYPTION:
 
        switch(crt->ctx->tdesctx->moo)
        {
-               case ID_DEC_ECB : 
+               case ID_DEC_ECB :
                        retVal = SDRM_ECB_Dec(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey);
                        break;
                case ID_DEC_CBC :
@@ -1599,7 +1610,7 @@ DECRYPTION:
                case ID_DEC_OFB :
                        retVal = SDRM_OFB_Dec(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV);
                        break;
-               case ID_DEC_CTR : 
+               case ID_DEC_CTR :
                        retVal = SDRM_CTR_Dec(ID_TDES, output, Block, (cc_u8*)crt->ctx->tdesctx->RoundKey, crt->ctx->tdesctx->IV, crt->ctx->tdesctx->CTR_Count++);
                        break;
                default :
index 269a1225a07c29f07280c363e56a9c585d45c295..1698bac5e21d623a54324620db9a14f9aa72ef71 100644 (file)
@@ -1,15 +1,26 @@
 /**
- * \file       tdes.c
- * @brief      high-speed implementation of Triple DES-EDE
+ * Copyright (c) 2006-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * - Copyright : Samsung Electronics CO.LTD.,
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * \internal
- * Author : Jisoon Park
- * Dept : DRM Lab, Digital Media Laboratory
- * Creation date : 2006/12/06
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Jisoon Park
+ * @brief  High-speed implementation of Triple DES-EDE
+ */
+
+
 //////////////////////////////////////////////////////////////////////////
 // Include Header Files
 //////////////////////////////////////////////////////////////////////////
index d87800688621ac6737ef20139f0ed850751661da..ad5db6e5e37cd1cf4dca51ca2a4fc1e79d850951 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
+
 #ifndef _SECRUITY_FILE_OP_H_
 #define _SECRUITY_FILE_OP_H_
 
@@ -28,7 +29,7 @@ class file_op {
 public:
 
        /**
-        * @brief write file 
+        * @brief write file
         *
         * write buffer into file.
         * @param[in] filename File full path.
@@ -41,7 +42,7 @@ public:
            unsigned int size);
 
        /**
-        * @brief read file 
+        * @brief read file
         *
         * Read file into buffer.
         * @param[in] filename File full path.
@@ -54,7 +55,7 @@ public:
            unsigned int& size);
 
        /**
-        * @brief remove file 
+        * @brief remove file
         *
         * Read file into buffer.
         * @param[in] filename File full path.
index a7d4e76b68a80ce0af4d4c6b7acc222df3340c32..1e57a1e34a9d69fa9e18935d14ca3c0432c3da8a 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
+
 #ifndef _SWD_SECURE_FILE_H_
 #define _SWD_SECURE_FILE_H_
 
@@ -95,7 +96,7 @@ typedef struct {
 
 /**
  * @brief Secure file implementation calss
- * 
+ *
  * Implementation class of Interface  ss_secure_file, provide all secure storage operations.
  * @author ryan
  * @date 2013.07
@@ -153,7 +154,7 @@ public:
        /**
         * @brief Write data into secure storage.
         *
-        * Write data from provided buffer into secure storage, 
+        * Write data from provided buffer into secure storage,
         * and encrypt data encryption key with provided RSA public key and attach it to secure storage file.
         * @param[in] buffer Point to data buffer.
         * @param[in] buf_size Size of data in bytes.
@@ -181,7 +182,7 @@ public:
         * @param[in] rsa_n_data RSA public exponent.
         * @param[in] rsa_n_len RSA public exponent size in bytes.
         * @param[in] rsa_d_data RSA private key.
-        * @param[in] rsa_d_len RSA private key size in bytes. 
+        * @param[in] rsa_d_len RSA private key size in bytes.
         * @return If success, real size in bytes of read data will be retured, if fails, -1 will be returned.
         */
        int read_ex(unsigned char** ret_buf, unsigned int* read_size,
@@ -192,7 +193,7 @@ public:
        /**
         * @brief Validate secure storage file structure.
         *
-        * Validate the secure storage file structure. 
+        * Validate the secure storage file structure.
         * @retval 0 if success.
         * @retval -1 if fail.
         */
index c538e1c82e2f3e570a96e0fa73b2ebce828be7d5..be55f8c4b3eafdee4517158116400f0b409d8d76 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
index ae69f689375230058c127d58a04f5f6b41bbc7ea..63d6e059acd8eb6337b2d3e004bf43799b092bc1 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
+
 #ifndef _SWDSS_SS_API_H_
 #define _SWDSS_SS_API_H_
 
@@ -27,7 +28,7 @@ extern "C" {
  * @brief init secure storage
  *
  * set credential members
- * @param[in] strategy 
+ * @param[in] strategy
  * @return ref to ss_ret_val_e enum.
  */
 int ss_init(int strategy);   // check swdss_ta_service is ready
@@ -67,7 +68,7 @@ int ss_write(unsigned char* buffer, unsigned int data_size, unsigned int offset,
  *
  * Read data from secure storage into provided buffer.
  * @param[out] ret_buf Point to data buffer read from secure storage,buffer is allocated inside the API,use ss_free_buffer to free.
- * @param[out] data_size size of data read from secure storage, when SS_OPT_PARTIAL_RW is set, this is firstly used as an in parameter to indicate required read size.  
+ * @param[out] data_size size of data read from secure storage, when SS_OPT_PARTIAL_RW is set, this is firstly used as an in parameter to indicate required read size.
  * @param[in] base_path Path that data will be stored, if set to NULL, default path will be used.
  * @param[in] data_name Data name associated with data.
  * @param[in] offset Start address for partial reading, only takes effect when SS_OPT_PARTIAL_RW is set.
@@ -82,7 +83,7 @@ int ss_read(unsigned char** ret_buf, unsigned int* data_size,
 /**
  * @brief Write data into secure storage.
  *
- * Write data from provided buffer into secure storage, 
+ * Write data from provided buffer into secure storage,
  * and encrypt data encryption key with provided RSA public key and attach it to secure storage file.
  * @param[in] buffer Point to data buffer.The buffer should be freed by API caller.
  * @param[in] data_size Size of data in bytes.
@@ -108,7 +109,7 @@ int ss_write_ex(unsigned char* buffer, unsigned int data_size,
  *
  * Read data from secure storage into provided buffer, content key will be recovered by provided RSA private key.
  * @param[out] ret_buf Point to data buffer read from secure storage,the buffer is allocated inside the API, calo ss_free_buffer to free.
- * @param[out] data_size size of data read from secure storage, when SS_OPT_PARTIAL_RW is set, this is firstly used as an in parameter to indicate required read size. 
+ * @param[out] data_size size of data read from secure storage, when SS_OPT_PARTIAL_RW is set, this is firstly used as an in parameter to indicate required read size.
  * @param[in] base_path Path that data will be stored, if set to NULL, default path will be used.
  * @param[in] data_name Data name associated with data.
  * @param[in] offset Start address for partial reading, only takes effect when SS_OPT_PARTIAL_RW is set.
@@ -117,7 +118,7 @@ int ss_write_ex(unsigned char* buffer, unsigned int data_size,
  * @param[in] rsa_n_data RSA public exponent.
  * @param[in] rsa_n_len RSA public exponent size in bytes.
  * @param[in] rsa_d_data RSA private key.
- * @param[in] rsa_d_len RSA private key size in bytes. 
+ * @param[in] rsa_d_len RSA private key size in bytes.
  * @return ref to ss_ret_val_e enum.
  */
 int ss_read_ex(unsigned char** ret_buf, unsigned int* data_size,
@@ -129,7 +130,7 @@ int ss_read_ex(unsigned char** ret_buf, unsigned int* data_size,
 /**
  * @brief Validate secure storage file structure.
  *
- * Validate the secure storage file structure. 
+ * Validate the secure storage file structure.
  * @param [in] data_name Data name associated with data.
  * @param [in] cred Application credential.
  * @param [in] options Data access options.
index ff7715d3d949d41e53592a39709083503a1c2435..8ddaf6887fea32000fd3ffa7fd88e8bbc34bb1f7 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 /**
- * @file crypto.h
- * @brief Crypto class header.
+ * @file
  * @author ryan woo
+ * @brief  Crypto class header.
  * @version 1.0
  * @date 2013.7.23
- *
  */
 
+
 #ifndef _SS_TA_CRYPTO_H_
 #define _SS_TA_CRYPTO_H_
 
@@ -44,7 +44,7 @@ void gen_rand_vec(CBT_OCTET* vec, CBT_UINT32 size);
  * @brief      Crypto Basic class
  *
  * Copyright 2011 by Samsung Electronics, Inc.,
- * 
+ *
  * This software is the confidential and proprietary information
  * of Samsung Electronics, Inc. ("Confidential Information").  You
  * shall not disclose such Confidential Information and shall use
@@ -112,7 +112,7 @@ public:
            unsigned long RSA_E_Len);
 
        /**
-        * @fn  static int RSADecrypt(uint8_t* dest, unsigned long* 
+        * @fn  static int RSADecrypt(uint8_t* dest, unsigned long*
         *                       dest_len, const uint8_t* src, unsigned
         *                       long data_len, const uint8_t*
         *                       RSA_N_Data,   unsigned long RSA_N_Len,
index 909838ab970737adae2879dc198dcc094c021e5e..ec102010d8b7193f2c4713b67fe50a0a832fc841 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
+
 #ifndef _SS_MISC_H_
 #define _SS_MISC_H_
 
index a157a1ee4b64cf5dc7af905f4bbbe20f94e707df..8dbe22dc9a76441209e493d4957dbb9589c9d3a0 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
+
 #ifndef _SWD_SS_TMP_STORE_H_
 #define _SWD_SS_TMP_STORE_H_
 
index 275cf38c5ebe4b27d8c1a3f6151d67cd3cfdfe78..3200df7b32e244c9434bede2db6b477becd4b9b7 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 
+
 #ifndef _SWD_SS_COMMON_H_
 #define _SWD_SS_COMMON_H_
 
index 290fb502c1db7d547bce3a1ab9952c146eb6874c..db18c1871b43b7d1a77d35bb84707900cc6d96bb 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
+
 #include "file_op.h"
 #include <errno.h>
 #include <stdlib.h>
@@ -137,7 +138,7 @@ int file_op::read_file(const char* filename, unsigned char** buffer,
 
 int file_op::remove_file(const char* filename) {
        SLOGI("[%s][%d] Entering file_op::remove_file", __FUNCTION__, __LINE__);
-    pthread_mutex_lock(&delLock);    
+    pthread_mutex_lock(&delLock);
        bool ret = is_file_exists(filename);
        if (ret) {
                ret = remove(filename);
@@ -153,7 +154,7 @@ int file_op::remove_file(const char* filename) {
                pthread_mutex_unlock(&delLock);
                return SS_RET_CANT_FIND_REQUESTED_DATA;
        }
-    pthread_mutex_unlock(&delLock);    
+    pthread_mutex_unlock(&delLock);
        SLOGI("[%s][%d] Succeed to remove file...", __FUNCTION__, __LINE__);
 
        return SS_RET_SUCCESS;
index 9e4c0bd44e3f307a08e19bb6c246470858bb9d24..d1cfbdaf49596ef73e5d9a26eb56d18c0c2b999e 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 
+
 #include "ss_crypto.h"
 #include "secure_file.h"
 #include <ctype.h>
index d70ad7a9196acada9b9f4dcb47dc2884e9a33488..5619d11f545b0bc2e6910797c134eac1a26155b2 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
-#include "ss_api.h"
+
+ #include "ss_api.h"
 #include "secure_file.h"
 #include "slog.h"
 
index dc1d8209ced927f54b5072f371237c8c3adbfcda..ba7b0f7cc34afcc4e9908ddc67025c975cb24885 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #include "ss_crypto.h"
index 78dc64d872c9fe056898e21ebea8c5f23ebadf83..cb7b18ccbac724ba471ee7c728c4673172cb7d9c 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
+
 #include "ss_misc.h"
 #include <string.h>
 
index 4d19920f8330b0cf754ee50ff2f45e8a327e85f9..dc272d1399a2c33a723f4ae39761f075e026f758 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
+
+
 #include "ss_temp_store.h"
 #include "slog.h"
 
index 105cdfc4398453ed3d402397818cec8fe6c8d73f..1fe5d9aaf719e37d1fd54ea1ee02e8e7c1665d5f 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ssf_time.cpp
- *
- *    Description:  SSF time functions
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  30 June 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Cheryl (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Cheryl (cb) (cheryl.b@samsung.com)
+ * @brief  API of Samsung Crypto Library
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
@@ -73,7 +78,7 @@ void TEE_GetSystemTime(TEE_Time* time) {
  * the call to TEE_Wait is greater than or equal to the requested timeout.
  * However, there may be additional implementation-dependent delays due to
  * the scheduling of TEE tasks.
- * This function is cancellable, i.e. if the current task\92s cancelled flag is
+ * This function is cancellable, i.e. if the current tasks cancelled flag is
  * set and the TA has unmasked the effects of cancellation, then this
  * function returns earlier than the requested timeout with the return code
  * TEE_ERROR_CANCEL. See section 4.10 for more details about cancellations.
index 47ff5f05b5644222912d28a349c3c9499abd1b13..e48313e64b00710f29a6c7e304893f9b16b13690 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
-/** 
- * @file uci_cryptocore.h 
- * @brief UCI codec. 
- * @author guoxing.xu 
- * @version 1.0 
+/**
+ * @file
+ * @author guoxing.xu
+ * @brief  UCI codec
+ * @version 1.0
  * @date 2014.3
- **/
+ */
+
+
 #ifndef _UCI_AES_XCBC_MAC_H
 #define _UCI_AES_XCBC_MAC_H
 #include "uci_type.h"
index ebf40ee048c8dcf02ae85303d0e65ea397e7f203..c52ae844f79d6eeba727e8b60cbddb976d281e89 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 
 /**
- * @file UCI_API.h
- * @brief UCI codec.
+ * @file
  * @author guoxing.xu
+ * @brief  UCI codec
  * @version 1.0
  * @date 2013.7
- **/
+ */
 
 /**
  * @addtogroup g_uci
index 3ac27de2de3b390355dbb842362787fcdcf8d953..4c844ca91cc8764b1adea21efe42bd8ffe32c7cf 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 
 /**
- * @file uci_cryptocore.h
- * @brief UCI codec.
+ * @file
  * @author guoxing.xu
+ * @brief  UCI codec
  * @version 1.0
  * @date 2013.7
- **/
+ */
+
+
 #ifndef _UCI_CRYPTOCORE_H
 #define _UCI_CRYPTOCORE_H
 #include "uci_type.h"
index 1d2b7176582c3d21f19b546e00920cd049d8159f..d8e4b7a5a62cc40e60b50dcdd19a8d0fc52d60a8 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 
 /**
- * @file uci_hwcrypto.h
- * @brief hwcrypto codec.
+ * @file
  * @author guoxing.xu
+ * @brief  hwcrypto codec
  * @version 1.0
  * @date 2013.7
- **/
+ */
+
+
 #ifndef _UCI_HWCRYPTO_H
 #define _UCI_HWCRYPTO_H
 #include "uci_type.h"
index c1bb305ed9ebdc53af36055bb73c385bc23bbdaf..5d12e6b0e7f54f2ac63fcb4a057e49fe3bb934a1 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
-/** 
- * @file uci_internal.h 
- * @brief UCI codec. 
- * @author guoxing.xu 
- * @version 1.0 
+/**
+ * @file
+ * @author guoxing.xu
+ * @brief  UCI codec
+ * @version 1.0
  * @date 2013.7
- **/
+ */
+
+
 #ifndef _UCI_INTERNAL_H
 #define _UCI_INTERNAL_H
 
index 840dfefe19cd71798d01619bff3c20ce808d8d47..74962e755a634322b392b72ecca01bbbc4995fc9 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 
 /**
- * @file uci_type.h
- * @brief UCI codec.
+ * @file
  * @author guoxing.xu
+ * @brief UCI codec
  * @version 1.0
  * @date 2013.7
- **/
+ */
+
+
 #ifndef _UCI_TYPE_H
 #define _UCI_TYPE_H
 
index ae3f3b01adc8e859c193f66e4c954fce9fb7266f..da5dbe7fc53b5308cbd5c7e6a4463018dccb294c 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
-/** 
- * @file uci_hwcrypto.cpp 
- * @brief UCI codec. 
- * @author guoxing.xu 
- * @version 1.0 
+/**
+ * @file
+ * @author guoxing.xu
+ * @brief  UCI codec
+ * @version 1.0
  * @date 2014.3
- **/
+ */
+
+
 /*according to RFC3566*/
 #include "uci_aes_xcbc_mac.h"
 #include <string.h>
@@ -35,15 +37,15 @@ static unsigned char k3[] = {0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
 
 int xcbc_init(aes_xcbc_state *xcbc, unsigned char *key, unsigned int keylen) {
        /*
-        
+
         (1)  Derive 3 128-bit keys (K1, K2 and K3) from the 128-bit secret
         key K, as follows:
         K1 = 0x01010101010101010101010101010101 encrypted with Key K
         K2 = 0x02020202020202020202020202020202 encrypted with Key K
         K3 = 0x03030303030303030303030303030303 encrypted with Key K
-        
+
         (2)    Define E[0](iv) = 0x00000000000000000000000000000000
-        
+
         */
        if (keylen != 16) {
                return 0;
@@ -64,11 +66,11 @@ int xcbc_init(aes_xcbc_state *xcbc, unsigned char *key, unsigned int keylen) {
 }
 int xcbc_process(aes_xcbc_state *xcbc, unsigned char *in, unsigned int inlen) {
        /*
-        
+
         (3)  For each block M[i], where i = 1 ... n-1:
         XOR M[i] with E[i-1], then encrypt the result with Key K1,
         yielding E[i].
-        
+
         */
        unsigned int x;
        if (xcbc == NULL) {
@@ -113,14 +115,14 @@ int xcbc_done(aes_xcbc_state *xcbc, unsigned char *out, unsigned int *outlen) {
                /*
                 (4)
                 b)     If the blocksize of M[n] is less than 128 bits:
-                
+
                 i)  Pad M[n] with a single "1" bit, followed by the number of
                 "0" bits (possibly none) required to increase M[n]'s
                 blocksize to 128 bits.
-                
+
                 ii) XOR M[n] with E[n-1] and Key K3, then encrypt the result
                 with Key K1, yielding E[n].
-                
+
                 */
                xcbc->IV[xcbc->buflen] ^= 0x80;
                for (x = 0; x < xcbc->blocksize; x++) {
index 656de1e56dc4871fd85eb871c6a1395fa83e7338..c68357d8897a90a3bdb29ee85f4b31373029c087 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 /**
- * @file uci_api.cpp
- * @brief UCI codec.
+ * @file
  * @author guoxing.xu
+ * @brief  UCI codec
  * @version 1.0
  * @date 2013.9.6
- **/
+ */
 
 #include "uci_api.h"
 #include <stdio.h>
index 74f7ed45be28cc64d885c1ba0129e654818af86f..2824ee7a22da3a207a0703bc78a4e380169abde0 100644 (file)
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 
 /**
- * @file uci_cryptocore.cpp
- * @brief UCI codec.
+ * @file
  * @author guoxing.xu
+ * @brief  UCI codec
  * @version 1.0
  * @date 2013.9.9
- **/
+ */
+
 
 #include "uci_cryptocore.h"
 #include <CC_API.h>
index 2862c1dd11cc7c78c123a550acb38a660deb99ae..19d0ef616332a57091b780fcab9a37c725a8f7e2 100644 (file)
@@ -1,27 +1,29 @@
-/*
-* Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-#define PC_I586
+/**
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 
 /**
-* @file uci_hwcrypto.cpp
-* @brief UCI codec.
-* @author guoxing.xu
-* @version 1.0
-* @date 2013.11
-**/
+ * @file
+ * @author guoxing.xu
+ * @brief  UCI codec
+ * @version 1.0
+ * @date 2013.11
+ */
+
+#define PC_I586
+
 #ifndef PC_I586
 #include <fcntl.h>
 #include <crypto.h>
index 30b14de2551620661f7d00a870ee370bd615e7cc..d7fed74f9171bdfdf8aece7382a05da2dd4bdb60 100644 (file)
@@ -1,17 +1,25 @@
+/**\r
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
+ *\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
+ *\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
+ */\r
 \r
-/** \r
- * @file               app_debug.h\r
- * @brief              \r
- * @author             longhai.wu (longhai.wu@samsung.com)\r
- * @version    0.9 Initial Draft Version\r
- * @date               2013/04/13\r
- *     - Revision History :\r
- * Version        Date                         Author                  Detail description \r
- * --------------------------------------------------------------------\r
- *      0.9    2013/04/03                longhai.wu     \r
- * --------------------------------------------------------------------\r
+/**\r
+ * @file\r
+ * @author longhai.wu (longhai.wu@samsung.com)\r
  */\r
\r
+\r
+\r
 #ifndef _APP_DEBUG_H_\r
 #define _APP_DEBUG_H_\r
 #include <stdio.h>\r
@@ -24,17 +32,17 @@ extern int g_app_svc_dbglvl;
 unsigned char one_time_print_buffer_test[10240];\r
 \r
 //!disable all msg\r
-#define TRUSTAPP_DEBUG_LEVEL_NON     0 \r
+#define TRUSTAPP_DEBUG_LEVEL_NON     0\r
 //!enable message level > ERROR\r
-#define TRUSTAPP_DEBUG_LEVEL_ERR     1 \r
+#define TRUSTAPP_DEBUG_LEVEL_ERR     1\r
 //!enable message level > WARNING\r
-#define TRUSTAPP_DEBUG_LEVEL_WRN     2 \r
+#define TRUSTAPP_DEBUG_LEVEL_WRN     2\r
 //!enable message level > DEBUG\r
-#define TRUSTAPP_DEBUG_LEVEL_DBG     3 \r
+#define TRUSTAPP_DEBUG_LEVEL_DBG     3\r
 //!enable message level > LOG/INFO\r
-#define TRUSTAPP_DEBUG_LEVEL_LOG     4 \r
+#define TRUSTAPP_DEBUG_LEVEL_LOG     4\r
 //!enable all level\r
-#define TRUSTAPP_DEBUG_LEVEL_ALL     5 \r
+#define TRUSTAPP_DEBUG_LEVEL_ALL     5\r
 \r
 \r
 #define APP_SVC_ERR(title, format,...) do{sprintf(one_time_print_buffer,"[%s][ERR]" format, title,##__VA_ARGS__);\\r
index 54f8582ba3e084add5b554799e1d425184efd06d..f6b6ad49e7821c7791e9dfb093a32144ad98059e 100644 (file)
@@ -19,6 +19,7 @@
  * @author  Jaemin Ryu (jm77.ryu@samsung.com)
  */
 
+
 #ifndef _CRYPTO_INTERNAL_H_
 #define _CRYPTO_INTERNAL_H_
 
index 87350c02f2815e33d56cadee5eeb2c5cfe4d3417..4957b18cb01a80c93bc983540f18ea6afaac177f 100644 (file)
@@ -1,12 +1,25 @@
-/*
- * permission.h
+/**
+ * Copyright (c) 2011-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * This source file is proprietary property of Samsung Electronics Co., Ltd.
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * Copyright (C) 2011 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @brief Permission definitions
+ */
+
+
 #ifndef __PERMISSION_H__
 #define __PERMISSION_H__
 
index 2d50d8d5f2b2074907c4d4a2c5ca29e22f8bf062..e377c2b0b75d7b2abba47ff2e4fb9ece1234daa0 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ssfclient.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  SSF client header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  20 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  Cheryl (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Cheryl (cb), cheryl.b@samsung.com
+ * @brief  SSF client header file
+ */
+
+
 #ifndef SSF_CLIENT_H_
 #define SSF_CLIENT_H_
 
index 0726a10d35bc148bd75b24eae1ceb55ec8d9f810..09a0569e7b255d83c5424ad29d2c8999b7084290 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ssflib.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  SSF Lib header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  20 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SSF lib header file
+ */
+
+
 #ifndef SSF_LIB_H_
 #define SSF_LIB_H_
 
index 7b3976730526e99be0d3801aa59dbf2d5b33fafd..fa5a1d5cf858b58a721fe23fc1fc427b61c239df 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ssf_storage.h
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  SSF Storage header file
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  20 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  Krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SSF storage header file
+ */
+
+
 #ifndef SSF_STORAGE_H_
 #define SSF_STORAGE_H_
 
index 8db9d2618fed14e275a6f46fb5752875eff051a7..441733d918d3ba6b62b56d311019c76965b736bc 100644 (file)
@@ -1,16 +1,25 @@
-/** \r
- * @file               app_debug.h\r
- * @brief              \r
- * @author             longhai.wu (longhai.wu@samsung.com)\r
- * @version    0.9 Initial Draft Version\r
- * @date               2013/04/13\r
- *     - Revision History :\r
- * Version        Date                         Author                  Detail description \r
- * --------------------------------------------------------------------\r
- *      0.9    2013/04/03                longhai.wu     \r
- * --------------------------------------------------------------------\r
+/**\r
+ * Copyright (c) 2013-2017 Samsung Electronics Co., Ltd All Rights Reserved\r
+ *\r
+ *    Licensed under the Apache License, Version 2.0 (the "License");\r
+ *    you may not use this file except in compliance with the License.\r
+ *    You may obtain a copy of the License at\r
+ *\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
  */\r
 \r
+/**\r
+ * @file\r
+ * @author longhai.wu (longhai.wu@samsung.com)\r
+ */\r
+\r
+\r
 #include <stdio.h>\r
 #include <string.h>\r
 #include <app_debug.h>\r
@@ -24,9 +33,9 @@ int g_app_svc_dbglvl = TRUSTAPP_DEBUG_LEVEL_NON;
 \r
 int app_open_log_file( char *processName)\r
 {\r
-       \r
+\r
        /* save log to LOGFILE */\r
-       \r
+\r
        m_fd = open( portname,O_RDWR | O_NOCTTY | O_NONBLOCK);\r
        if(m_fd < 0)\r
        {\r
@@ -34,7 +43,7 @@ int app_open_log_file( char *processName)
        }\r
 \r
        write(m_fd,processName,strlen(processName));\r
-       \r
+\r
        memset(one_time_print_buffer,0,sizeof(one_time_print_buffer));\r
        return 0;\r
 \r
@@ -53,7 +62,7 @@ void app_print_log(unsigned char logBuffer[])
 }\r
 \r
 #else\r
-#define SVC1_LOGFILE   "/opt/usr/apps/tz_simulator/data/SWDLog.txt" \r
+#define SVC1_LOGFILE   "/opt/usr/apps/tz_simulator/data/SWDLog.txt"\r
 \r
 static FILE *fp = NULL;\r
 \r
@@ -65,17 +74,17 @@ int g_app_svc_dbglvl = TRUSTAPP_DEBUG_LEVEL_NON;
 \r
 int app_open_log_file(char *processName)\r
 {\r
-       \r
+\r
        /* save log to LOGFILE */\r
        fp = fopen(SVC1_LOGFILE, "a+");\r
        if(!fp)\r
        {\r
                return -1;\r
        }\r
-       \r
-       fprintf(fp,"Trust App name : %s.\n",processName);       \r
+\r
+       fprintf(fp,"Trust App name : %s.\n",processName);\r
        fflush(fp);\r
-       \r
+\r
        memset(one_time_print_buffer,0,sizeof(one_time_print_buffer));\r
        return 0;\r
 \r
index 2ba88d9cf63e1baa2261a70f89e6a520c6950471..97fc47badb790f3e52c91e2943b948d1185250ea 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ssf_arithmetic.c
- *
- *    Description:  SSF arithmetic functions
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  29 June 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Cheryl (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Cheryl (cb), cheryl.b@samsung.com
+ * @brief  SSF arithmetic functions
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index eb8a1f959b20e9b9e40ef466ccc7f1598976945f..14b7f8dd98148ef3d3f3cf1fbb219f5a2a4cac37 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ssfclient.c
- *
- *    Description:  SSF client functions
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  20 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  Cheryl (cb), cheryl.b@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Cheryl (cb), cheryl.b@samsung.com
+ * @brief  SSF client functions
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 4a2eb3624503007456d3291e7bf696dae4be440a..96f948965421d92ab7731ecb992a9e7e9bd97cd5 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ssf_crypto.c
- *
- *    Description:  SSF crypto functions
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SSF crypto functions
+ */
+
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
index 288e7401af8bacdeccaeb092f5224843035bc132..b9d290594782e76c791fc398b37c6de7e45931b9 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ssflib.c
- *
- *    Description:  SSF Library functions
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  20 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SSF library functions
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 75d0b408123bef9a1dbec0b26c328f657f232249..fd6d5b3592b9832e730ff603025470777b3ae81f 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
- *
- *       Filename:  ssf_malloc.c
- *
- *    Description:  SSF malloc functions
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *         Author:  krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SSF malloc functions
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index e08f5f22def2388f4e4210acc49ba1674c91243e..cf51be1d522d0691a9226d448abe9064e4d97784 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ssf_panic.c
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  SSF oanic functions
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SSF panic functions
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index eadfba4ffe4602e837e0af99757a204f19ad28da..4c489f830280a3f0e2a6bf1146e35bb67f42d42a 100644 (file)
@@ -1,12 +1,25 @@
-/*
- * ssf_permission.c
+/**
+ * Copyright (c) 2011-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- * This source file is proprietary property of Samsung Electronics Co., Ltd.
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- * Copyright (C) 2011 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @brief Permission functions
+ */
+
+
 #include <stdlib.h>
 #include <permission.h>
 #include <error.h>
index 0bfc99f9bfa4a57d256786bcb68bf193275a434b..8f6b021390f93ae19ed6ae128d4810afbaf4ea24 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ssf_storage.c
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  SSF storage functions
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  23 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SSF storage functions
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index a9e1998eba114b1992c90634354d48fc79327cbb..cfb339697cb044b8ed5496e100407ab493030abe 100644 (file)
@@ -1,21 +1,26 @@
-/*
- * =====================================================================================
+/**
+ * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *       Filename:  ssf_taentrypoint.c
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
  *
- *    Description:  SSF TA Internal functions
+ *        http://www.apache.org/licenses/LICENSE-2.0
  *
- *        Version:  1.0
- *        Created:  20 April 2015 12:41:39  IST
- *       Revision:  Original
- *       Compiler:  gcc
- *
- *         Author:  krishna (Kr), k.devale@samsung.com
- *   Organization:  Samsung Electronics
- *
- * =====================================================================================
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
+/**
+ * @file
+ * @author Krishna Raghottam Devale (k.devale@samsung.com)
+ * @brief  SSF TA Internal functions
+ */
+
+
 /*-----------------------------------------------------------------------------
  *  Include files
  *-----------------------------------------------------------------------------*/
index 8cb8ad192ba561f2c1c6bd1a74498273a1b84e5b..40e4602babd709a01b8714de6044b150de1884d7 100644 (file)
@@ -1,3 +1,22 @@
+# Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+#
+#    Licensed under the Apache License, Version 2.0 (the "License");
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+# @file
+# @author  Lukasz Kostyra (l.kostyra@samsung.com)
+# @brief   CMakeLists for systemd configuration files
+#
+
 CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/systemd/tef-simulator.service.in
                ${CMAKE_SOURCE_DIR}/systemd/tef-simulator.service @ONLY)