diff --git a/CryptoArchitectureKit/crypto_architecture_kit.h b/CryptoArchitectureKit/crypto_architecture_kit.h index 6ed8533955c81d8c91322ba259e129461e6e111b..ae3f93243b09aa04c202512e86d605ed40ce984b 100644 --- a/CryptoArchitectureKit/crypto_architecture_kit.h +++ b/CryptoArchitectureKit/crypto_architecture_kit.h @@ -19,7 +19,6 @@ * * @brief Provides an entry to the crypto header files for you to reference. * - * @syscap SystemCapability.Security.CryptoFramework * @since 12 */ @@ -53,4 +52,4 @@ /** @} */ -#endif /* CRYPTO_ARCHITECTURE_KIT_H*/ \ No newline at end of file +#endif /* CRYPTO_ARCHITECTURE_KIT_H */ \ No newline at end of file diff --git a/CryptoArchitectureKit/crypto_asym_cipher.h b/CryptoArchitectureKit/crypto_asym_cipher.h index d6ab307212546b8c8b7bbfa768a63b67b7bc1cd7..3846be1733cfac6c843e75f837bb7f97065647d9 100644 --- a/CryptoArchitectureKit/crypto_asym_cipher.h +++ b/CryptoArchitectureKit/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/CryptoArchitectureKit/crypto_digest.h b/CryptoArchitectureKit/crypto_digest.h index 52227bfe81985db9be558baf6b106b537d809ea7..bac24951a8b1c1fdc48364749b839435dd28ebcc 100644 --- a/CryptoArchitectureKit/crypto_digest.h +++ b/CryptoArchitectureKit/crypto_digest.h @@ -97,11 +97,8 @@ OH_Crypto_ErrCode OH_CryptoDigest_Final(OH_CryptoDigest *ctx, Crypto_DataBlob *o * @brief Get the digest length of the digest context. * * @param ctx Indicates the digest context. - * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful. - * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid. - * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported. - * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed. - * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto opertion failed. + * @return Return the digest length. + * If the input parameter ctx is NULL, 401 is returned, in other failure scenarios, 0 is returned. * @since 12 */ uint32_t OH_CryptoDigest_GetLength(OH_CryptoDigest *ctx); @@ -119,11 +116,6 @@ const char *OH_CryptoDigest_GetAlgoName(OH_CryptoDigest *ctx); * @brief Destroy the digest context. * * @param ctx Indicates the digest context. - * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful. - * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid. - * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported. - * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed. - * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto opertion failed. * @since 12 */ void OH_DigestCrypto_Destroy(OH_CryptoDigest *ctx); diff --git a/CryptoArchitectureKit/crypto_signature.h b/CryptoArchitectureKit/crypto_signature.h index 7982b278f2c9dc5dc9d7347cf010e4f9a27d4d40..904488648d32fe387da5a8fa36231452dd9e2d3c 100644 --- a/CryptoArchitectureKit/crypto_signature.h +++ b/CryptoArchitectureKit/crypto_signature.h @@ -323,7 +323,7 @@ typedef struct OH_CryptoEccSignatureSpec OH_CryptoEccSignatureSpec; /** * @brief Creates the ECC signature spec, also support SM2 signature. * - * @param EccSignature Indicates the ECC signature in DER format, if EccSignature parameter is NULL, + * @param eccSignature Indicates the ECC signature in DER format, if eccSignature parameter is NULL, * an empty ECC signature spec will be created. * @param spec Indicates the output ECC signature spec. * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful. @@ -333,7 +333,7 @@ typedef struct OH_CryptoEccSignatureSpec OH_CryptoEccSignatureSpec; * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto operation failed. * @since 20 */ -OH_Crypto_ErrCode OH_CryptoEccSignatureSpec_Create(Crypto_DataBlob *EccSignature, +OH_Crypto_ErrCode OH_CryptoEccSignatureSpec_Create(Crypto_DataBlob *eccSignature, OH_CryptoEccSignatureSpec **spec); /**