From 04f6bc8888a29a697ca234deaea9b2991665c256 Mon Sep 17 00:00:00 2001 From: ailu1 Date: Sun, 17 Dec 2023 17:17:29 +0800 Subject: [PATCH] add anon key attest Signed-off-by: ailu1 --- security/huks/include/native_huks_api.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/security/huks/include/native_huks_api.h b/security/huks/include/native_huks_api.h index f052661e2..867a4756b 100644 --- a/security/huks/include/native_huks_api.h +++ b/security/huks/include/native_huks_api.h @@ -180,6 +180,21 @@ struct OH_Huks_Result OH_Huks_IsKeyItemExist(const struct OH_Huks_Blob *keyAlias struct OH_Huks_Result OH_Huks_AttestKeyItem(const struct OH_Huks_Blob *keyAlias, const struct OH_Huks_ParamSet *paramSet, struct OH_Huks_CertChain *certChain); +/** + * @brief Obtain the key certificate chain. + * + * @param keyAlias Indicates the pointer to the alias of the target key. + * @param paramSet Indicates the pointer to the parameters required for obtaining the key certificate. + * @param certChain Indicates the pointer to the key certificate chain obtained. + * @return Returns {@link OH_Huks_ErrCode#OH_HUKS_SUCCESS} if the operation is successful; + * returns an error code otherwise. + * @since 11 + * @version 1.0 + * @note this is a networking duration interface caller need to get the certChain in asynchronous thread + */ +struct OH_Huks_Result OH_Huks_AnonAttestKeyItem(const struct OH_Huks_Blob *keyAlias, + const struct OH_Huks_ParamSet *paramSet, struct OH_Huks_CertChain *certChain); + /** * @brief Initializes the key session interface and obtains a handle (mandatory) and challenge value (optional). * -- Gitee