mirror of
https://gitee.com/openharmony/security_huks
synced 2024-11-23 14:50:06 +00:00
修改codecheck
Signed-off-by: hhhFun <fanghaojie@huawei.com>
This commit is contained in:
parent
4e6c0346aa
commit
d64711ff51
@ -563,6 +563,7 @@ static napi_value JSCipherRsa(napi_env env, napi_callback_info info)
|
||||
rsaAsyncContext->ret = GetRsaInput(env, argv[0], rsaAsyncContext);
|
||||
if (rsaAsyncContext->ret != ERROR_SUCCESS) {
|
||||
DeleteRsaAsyncContext(env, rsaAsyncContext);
|
||||
delete rsaAsyncContext;
|
||||
CIPHER_LOG_E("Failed to get rsa input.");
|
||||
return nullptr;
|
||||
}
|
||||
@ -610,6 +611,7 @@ static napi_value JSCipherAes(napi_env env, napi_callback_info info)
|
||||
aesAsyncContext->ret = GetAesInput(env, argv[0], aesAsyncContext);
|
||||
if (aesAsyncContext->ret != ERROR_SUCCESS) {
|
||||
DeleteAesAsyncContext(env, aesAsyncContext);
|
||||
delete aesAsyncContext;
|
||||
CIPHER_LOG_E("Failed to get aes input.");
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user