From f11f4cd6ba945e6048a70aaf72e6eff4d2bf635a Mon Sep 17 00:00:00 2001 From: lichaochen Date: Fri, 25 Jul 2025 15:57:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3native=E5=A4=B4=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8Esdkc=E4=BB=93=E5=A4=B4=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E5=B7=AE=E5=BC=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lichaochen --- interfaces/kits/native/include/crypto_asym_cipher.h | 1 + interfaces/kits/native/include/crypto_asym_key.h | 2 +- interfaces/kits/native/include/crypto_common.h | 7 +++++-- interfaces/kits/native/include/crypto_digest.h | 4 ++-- interfaces/kits/native/include/crypto_sym_cipher.h | 2 +- interfaces/kits/native/include/crypto_sym_key.h | 2 +- 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/interfaces/kits/native/include/crypto_asym_cipher.h b/interfaces/kits/native/include/crypto_asym_cipher.h index d6ab307..3846be1 100644 --- a/interfaces/kits/native/include/crypto_asym_cipher.h +++ b/interfaces/kits/native/include/crypto_asym_cipher.h @@ -102,6 +102,7 @@ OH_Crypto_ErrCode OH_CryptoAsymCipher_Final(OH_CryptoAsymCipher *ctx, const Cryp * @brief Destroys the asymmetric cipher context. * * @param ctx Indicates the asymmetric cipher context. + * @since 20 */ void OH_CryptoAsymCipher_Destroy(OH_CryptoAsymCipher *ctx); diff --git a/interfaces/kits/native/include/crypto_asym_key.h b/interfaces/kits/native/include/crypto_asym_key.h index 4997e5e..44803b8 100644 --- a/interfaces/kits/native/include/crypto_asym_key.h +++ b/interfaces/kits/native/include/crypto_asym_key.h @@ -279,7 +279,7 @@ OH_Crypto_ErrCode OH_CryptoPubKey_GetParam(OH_CryptoPubKey *key, CryptoAsymKey_P * @brief Sets the password to the asymmetric key generator context. * * Call this method to set the password if you need to convert encrypted private key data to a key pair using - * {@link OH_CryptoAsymKeyGenerator_Convert} + * {@link OH_CryptoAsymKeyGenerator_Convert}.\n * * @param ctx Indicates the asymmetric key generator context. * @param password Indicates the password. diff --git a/interfaces/kits/native/include/crypto_common.h b/interfaces/kits/native/include/crypto_common.h index 9da7d4e..12ae6d2 100644 --- a/interfaces/kits/native/include/crypto_common.h +++ b/interfaces/kits/native/include/crypto_common.h @@ -28,7 +28,7 @@ * @brief Defines the crypto common APIs. * * @library libohcrypto.so - * @kit Crypto Architecture Kit + * @kit CryptoArchitectureKit * @syscap SystemCapability.Security.CryptoFramework * @since 12 */ @@ -69,7 +69,10 @@ typedef enum { CRYPTO_NOT_SUPPORTED = 801, /** Indicates the memory error. */ CRYPTO_MEMORY_ERROR = 17620001, - /** Indicates that parameter check failed. */ + /** + * Indicates that parameter check failed. + * @since 20 + */ CRYPTO_PARAMETER_CHECK_FAILED = 17620003, /** Indicates that crypto operation error. */ CRYPTO_OPERTION_ERROR = 17630001, diff --git a/interfaces/kits/native/include/crypto_digest.h b/interfaces/kits/native/include/crypto_digest.h index 1af6115..bac2495 100644 --- a/interfaces/kits/native/include/crypto_digest.h +++ b/interfaces/kits/native/include/crypto_digest.h @@ -25,10 +25,10 @@ /** * @file crypto_digest.h * - * @brief Defines the digest apis. + * @brief Defines the digest APIs. * * @library libohcrypto.so - * @kit Crypto Architecture Kit + * @kit CryptoArchitectureKit * @syscap SystemCapability.Security.CryptoFramework * @since 12 */ diff --git a/interfaces/kits/native/include/crypto_sym_cipher.h b/interfaces/kits/native/include/crypto_sym_cipher.h index 3e4245f..95a6e46 100644 --- a/interfaces/kits/native/include/crypto_sym_cipher.h +++ b/interfaces/kits/native/include/crypto_sym_cipher.h @@ -29,7 +29,7 @@ * @brief Defines the symmetric key cipher APIs. * * @library libohcrypto.so - * @kit Crypto Architecture Kit + * @kit CryptoArchitectureKit * @syscap SystemCapability.Security.CryptoFramework * @since 12 */ diff --git a/interfaces/kits/native/include/crypto_sym_key.h b/interfaces/kits/native/include/crypto_sym_key.h index 840d104..b2ebf9e 100644 --- a/interfaces/kits/native/include/crypto_sym_key.h +++ b/interfaces/kits/native/include/crypto_sym_key.h @@ -28,7 +28,7 @@ * @brief Defines the symmetric key APIs. * * @library libohcrypto.so - * @kit Crypto Architecture Kit + * @kit CryptoArchitectureKit * @syscap SystemCapability.Security.CryptoFramework * @since 12 */ -- Gitee