!1765 huks api lint fix

Merge pull request !1765 from zww/master
This commit is contained in:
openharmony_ci 2024-11-19 14:06:33 +00:00 committed by Gitee
commit bf2c7f6728
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 19 additions and 10 deletions

View File

@ -13,9 +13,6 @@
* limitations under the License.
*/
#ifndef NATIVE_HUKS_API_H
#define NATIVE_HUKS_API_H
/**
* @addtogroup HuksKeyApi
* @{
@ -34,12 +31,18 @@
*
* @brief Defines the Universal Keystore Kit APIs.
*
* @library libhuks_ndk.z.so
* @syscap SystemCapability.Security.Huks
*
* include "huks/include/native_huks_type.h"
* @kit UniversalKeystoreKit
* @since 9
* @version 1.0
*/
#ifndef NATIVE_HUKS_API_H
#define NATIVE_HUKS_API_H
#include "native_huks_type.h"
#ifdef __cplusplus
@ -309,7 +312,7 @@ struct OH_Huks_Result OH_Huks_AnonAttestKeyItem(const struct OH_Huks_Blob *keyAl
* @param handle Indicates the pointer to the handle of the key session obtained.
* This handle is required for subsequent operations, including {@link OH_Huks_UpdateSession},
* {@link OH_Huks_FinishSession}, and {@link OH_Huks_AbortSession}.
* @param challenge Indicates the pointer to the challenge value obtained.
* @param token Indicates the pointer to the token used for key access control.
* @return {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} 0 - If the operation is successful.
* {@link OH_Huks_ErrCode#OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT} 401 - If keyAlias or paramSet or handle or
* token is invalid.

View File

@ -13,9 +13,6 @@
* limitations under the License.
*/
#ifndef NATIVE_HUKS_PARAM_H
#define NATIVE_HUKS_PARAM_H
/**
* @addtogroup HuksParamSetApi
* @{
@ -36,12 +33,18 @@
*
* @brief Provides APIs for constructing, using, and destroying parameter sets.
*
* @library libhuks_ndk.z.so
* @syscap SystemCapability.Security.Huks
*
* include "huks/include/native_huks_type.h"
* @kit UniversalKeystoreKit
* @since 9
* @version 1.0
*/
#ifndef NATIVE_HUKS_PARAM_H
#define NATIVE_HUKS_PARAM_H
#include "native_huks_type.h"
#ifdef __cplusplus

View File

@ -13,9 +13,6 @@
* limitations under the License.
*/
#ifndef NATIVE_OH_HUKS_TYPE_H
#define NATIVE_OH_HUKS_TYPE_H
/**
* @addtogroup HuksTypeApi
* @{
@ -33,11 +30,17 @@
*
* @brief Defines the structure and enumeration.
*
* @library libhuks_ndk.z.so
* @syscap SystemCapability.Security.Huks
*
* @kit UniversalKeystoreKit
* @since 9
* @version 1.0
*/
#ifndef NATIVE_OH_HUKS_TYPE_H
#define NATIVE_OH_HUKS_TYPE_H
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>