Home
last modified time | relevance | path

Searched refs:ivParamsSpec (Results 1 - 2 of 2) sorted by relevance

/base/security/crypto_framework/frameworks/cj/src/
H A Dcrypto_ffi.cpp390 HcfIvParamsSpec *ivParamsSpec = reinterpret_cast<HcfIvParamsSpec *>( in FfiOHOSCipherInitByIv() local
392 if (ivParamsSpec == nullptr) { in FfiOHOSCipherInitByIv()
393 LOGE("ivParamsSpec malloc failed!"); in FfiOHOSCipherInitByIv()
396 ivParamsSpec->base.getType = GetIvParamsSpecType; in FfiOHOSCipherInitByIv()
397 ivParamsSpec->iv = blob1; in FfiOHOSCipherInitByIv()
399 HcfParamsSpec *paramsSpec = reinterpret_cast<HcfParamsSpec *>(ivParamsSpec); in FfiOHOSCipherInitByIv()
400 ivParamsSpec = nullptr; in FfiOHOSCipherInitByIv()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_utils.cpp368 HcfIvParamsSpec *ivParamsSpec = reinterpret_cast<HcfIvParamsSpec *>(HcfMalloc(sizeof(HcfIvParamsSpec), 0)); in GetIvParamsSpec() local
369 if (ivParamsSpec == nullptr) { in GetIvParamsSpec()
370 LOGE("ivParamsSpec malloc failed!"); in GetIvParamsSpec()
377 HcfFree(ivParamsSpec); in GetIvParamsSpec()
380 ivParamsSpec->base.getType = GetIvParamsSpecType; in GetIvParamsSpec()
381 ivParamsSpec->iv = *iv; in GetIvParamsSpec()
382 *paramsSpec = reinterpret_cast<HcfParamsSpec *>(ivParamsSpec); in GetIvParamsSpec()

Completed in 7 milliseconds