• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * @file hks_device_provision.h
3  *
4  * Copyright (c) 2020 Huawei Device Co., Ltd.
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 /**
19  * Description: device pki provision, verify; efuse write, verify function \n
20  * Author: Huawei \n
21  * Create: 2020-03-26
22  */
23 
24  /**
25  * @defgroup iot_hks
26  * @ingroup hks
27  */
28 
29 #ifndef HKS_DEVICE_PROVISION_H
30 #define HKS_DEVICE_PROVISION_H
31 
32 #include "hks_types.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /**
39 * @ingroup  iot_hks
40 * @brief Production write efuse and certificate import verification function.
41   CNcomment:产线写入efuse和证书导入验证功能。CNend
42 *
43 * @par 描述:
44 *           Production write efuse and certificate import verification function.
45   CNcomment:产线写入efuse和证书导入验证功能。CNend
46 *
47 * @attention None
48 * @param  cmd       [IN] type #uint32_t,Command word id. CNcomment: 命令字id。CNend
49 * @param  input     [IN] type #const struct hks_blob *,keybox data for pki provision function;
50   common name information for certificate.
51   CNcomment:证书导入keybox数据或者为证书common name信息。CNend
52 * @param  output    [OUT] type #struct hks_blob *,reserved parameters, not used. CNcomment:保留参数,暂不使用。CNend
53 * @retval #0       Success.
54 * @retval #Other   Failure.
55 * @par 依赖:
56 *            @li hks_types.h:describes hks_types SDK interfaces.CNcomment:描述hks_types SDK的接口。CNend
57 * @see hks_pki_provision
58 */
59 HKS_DLL_API_PUBLIC int32_t hks_pki_provision(uint32_t cmd, const struct hks_blob *input, struct hks_blob *output);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* HKS_DEVICE_PROVISION_H */
66