Home
last modified time | relevance | path

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

/base/security/crypto_framework/frameworks/cj/src/
H A Dcrypto_ffi.cpp464 HcfCcmParamsSpec *ccmParamsSpec = reinterpret_cast<HcfCcmParamsSpec *>( in FfiOHOSCipherInitByCcm() local
466 if (ccmParamsSpec == nullptr) { in FfiOHOSCipherInitByCcm()
467 LOGE("ccmParamsSpec malloc failed!"); in FfiOHOSCipherInitByCcm()
473 ccmParamsSpec->tag = spec.authTag; in FfiOHOSCipherInitByCcm()
477 HcfFree(ccmParamsSpec); in FfiOHOSCipherInitByCcm()
481 ccmParamsSpec->tag = authTag; in FfiOHOSCipherInitByCcm()
483 ccmParamsSpec->base.getType = GetCcmParamsSpecType; in FfiOHOSCipherInitByCcm()
484 ccmParamsSpec->iv = spec.iv; in FfiOHOSCipherInitByCcm()
485 ccmParamsSpec->aad = spec.add; in FfiOHOSCipherInitByCcm()
486 HcfParamsSpec *paramsSpec = reinterpret_cast<HcfParamsSpec *>(ccmParamsSpec); in FfiOHOSCipherInitByCcm()
[all...]
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_utils.cpp468 HcfCcmParamsSpec *ccmParamsSpec = reinterpret_cast<HcfCcmParamsSpec *>(HcfMalloc(sizeof(HcfCcmParamsSpec), 0)); in GetCcmParamsSpec() local
469 if (ccmParamsSpec == nullptr) { in GetCcmParamsSpec()
470 LOGE("ccmParamsSpec malloc failed!"); in GetCcmParamsSpec()
495 ccmParamsSpec->base.getType = GetCcmParamsSpecType; in GetCcmParamsSpec()
496 ccmParamsSpec->iv = *iv; in GetCcmParamsSpec()
497 ccmParamsSpec->aad = *aad; in GetCcmParamsSpec()
498 ccmParamsSpec->tag = opMode == DECRYPT_MODE ? *tag : authTag; in GetCcmParamsSpec()
499 *paramsSpec = reinterpret_cast<HcfParamsSpec *>(ccmParamsSpec); in GetCcmParamsSpec()
506 HcfFree(ccmParamsSpec); in GetCcmParamsSpec()

Completed in 6 milliseconds