Add high level documentation to HAL API 30/320930/5
authorJan Wojtkowski <j.wojtkowski@samsung.com>
Tue, 11 Mar 2025 08:23:41 +0000 (09:23 +0100)
committerJan Wojtkowski <j.wojtkowski@samsung.com>
Tue, 18 Mar 2025 08:10:57 +0000 (09:10 +0100)
Change-Id: Ie3d983493e7181ebf6aab8fe4dfc9ff9cf29ca56

doc/hal_security_doc.h
doc/hal_security_keys_doc.h [new file with mode: 0644]

index 7041f2a5bfb9874d6059bc7df30870db357893ab..c47b0eb9a36e0f1a68555914e9a8c68a28d51835 100644 (file)
  *    <td>Provides functions to handle device certificates and signing operations</td>
  * </tr>
  * <tr>
+ *    <td>@ref HALAPI_HAL_SECURITY_KEYS_MODULE</td>
+ *    <td>Provides functions to handle keys and data related operations</td>
+ * </tr>
+ * <tr>
  *    <td>@ref HALAPI_HAL_SECURITY_AUTH_MODULE</td>
  *    <td>Provides functions to handle the authentication per user</td>
  * </tr>
diff --git a/doc/hal_security_keys_doc.h b/doc/hal_security_keys_doc.h
new file mode 100644 (file)
index 0000000..dec7fb5
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+
+#ifndef __TIZEN_HAL_SECURITY_KEYS_DOC_H__
+#define __TIZEN_HAL_SECURITY_KEYS_DOC_H__
+
+
+/**
+ * @file hal_security_keys_doc.h
+ * @brief This file contains high level documentation of the HAL Security Keys module.
+ */
+
+/**
+ * @ingroup HALAPI_HAL_SECURITY
+ * @defgroup HALAPI_HAL_SECURITY_KEYS_MODULE Security Keys
+ * @brief The @ref HALAPI_HAL_SECURITY_KEYS_MODULE provides functions to handle keys and data related operations.
+ *
+ * @section HALAPI_HAL_SECURITY_KEYS_MODULE_HEADER Required Header
+ *   \#include <hal/hal-security-keys.h>
+ *
+ * @section HALAPI_HAL_SECURITY_KEYS_MODULE_OVERVIEW Overview
+ * The Security Keys provides functions to handle keys and data related operations
+ *
+ * The Security Keys functions provide methods to:
+ * - Create IV
+ * - Create/Destroy keys (AES, RSA, DSA, ECDSA, KEM)
+ * - Import/Export wrapped keys
+ * - Encapsulate/Decapsulate KEM keys
+ * - Import/Export data
+ * - Wrap/Unwrap concatenated data
+ * - Encrypt/Decrypt data
+ * - Initialize and perform cipher operations
+ * - Create and verify signatures
+ * - Derive keys (ECDH, KBKDF, KBKDF hybrid)
+ * - Get key chunk size
+ *
+ * For more information on the Security Keys features and the macros, see HAL Security programming guides and tutorials.
+ */
+
+#endif /* __TIZEN_HAL_SECURITY_KEYS_DOC_H__ */