mirror of
https://github.com/openharmony/xts_device_attest_lite.git
synced 2026-06-30 21:57:55 -04:00
updata mbedtls 3.6.5
Signed-off-by: haige1234 <lijianghai3@h-partners.com>
This commit is contained in:
@@ -70,10 +70,6 @@ config("devattest_core_small_config") {
|
||||
|
||||
config("devattest_core_hi3861_config") {
|
||||
visibility = [ ":*" ]
|
||||
|
||||
include_dirs = [
|
||||
"//device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include",
|
||||
]
|
||||
}
|
||||
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
|
||||
@@ -244,7 +244,9 @@ static int32_t DecryptAesCbc(AesCryptBufferDatas* datas, const uint8_t* aesKey,
|
||||
ATTEST_LOG_ERROR("[DecryptAesCbc] Set padding mode failed, ret = -0x%x", ret);
|
||||
return ret;
|
||||
}
|
||||
ret = cipherCtx.get_padding(datas->output, datas->inputLen, datas->outputLen);
|
||||
size_t invalid_padding = 0;
|
||||
(void)cipherCtx.get_padding(datas->output, datas->inputLen, datas->outputLen, &invalid_padding);
|
||||
ret = (int)invalid_padding;
|
||||
if (ret != ATTEST_OK) {
|
||||
ATTEST_LOG_ERROR("[DecryptAesCbc] Get padding failed, ret = -0x%x", ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user