Home
last modified time | relevance | path

Searched refs:napiSymKey (Results 1 – 2 of 2) sorted by relevance

/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_sym_key.cpp43 NapiSymKey *napiSymKey = nullptr; in JsClearMem() local
46 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&napiSymKey)); in JsClearMem()
47 if (status != napi_ok || napiSymKey == nullptr) { in JsClearMem()
52 HcfSymKey *key = napiSymKey->GetSymKey(); in JsClearMem()
Dnapi_sym_key_generator.cpp197 NapiSymKey *napiSymKey = new (std::nothrow) NapiSymKey(context->returnSymKey); in AsyncKeyReturn() local
198 if (napiSymKey == nullptr) { in AsyncKeyReturn()
205 napi_status ret = napi_wrap(env, instance, napiSymKey, in AsyncKeyReturn()
207 NapiSymKey *napiSymKey = static_cast<NapiSymKey *>(data); in AsyncKeyReturn() local
208 delete napiSymKey; in AsyncKeyReturn()
215 delete napiSymKey; in AsyncKeyReturn()