diff --git a/interfaces/innerkits/syspara/param_comm.c b/interfaces/innerkits/syspara/param_comm.c index fa9d7962002f2a76026c111909514e4d4df1d924..c1a7e7ef0506797a9e7c5e1cd9436046d8027ff1 100644 --- a/interfaces/innerkits/syspara/param_comm.c +++ b/interfaces/innerkits/syspara/param_comm.c @@ -137,9 +137,9 @@ static int GetSha256Value(const char *input, char *udid, int udidSize) mbedtls_sha256_context context; mbedtls_sha256_init(&context); - mbedtls_sha256_starts_ret(&context, 0); - mbedtls_sha256_update_ret(&context, (const unsigned char *)input, strlen(input)); - mbedtls_sha256_finish_ret(&context, hash); + mbedtls_sha256_starts(&context, 0); + mbedtls_sha256_update(&context, (const unsigned char *)input, strlen(input)); + mbedtls_sha256_finish(&context, hash); for (size_t i = 0; i < HASH_LENGTH; i++) { unsigned char value = hash[i]; @@ -216,4 +216,4 @@ INIT_LOCAL_API const char *GetFullName_(void) { static const char *fillname = NULL; return GetProperty("const.ohos.fullname", &fillname); -} \ No newline at end of file +}