Searched refs:napiPubKey (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
H A D | napi_key_pair.cpp | 49 NapiPubKey *napiPubKey = new (std::nothrow) NapiPubKey(key); in WrapPubKey() local 50 if (napiPubKey == nullptr) { in WrapPubKey() 54 napi_value pubKey = napiPubKey->ConvertToJsPubKey(env); in WrapPubKey() 56 env, pubKey, napiPubKey, in WrapPubKey() 58 NapiPubKey *napiPubKey = static_cast<NapiPubKey *>(data); in WrapPubKey() local 59 HcfObjDestroy(napiPubKey->GetPubKey()); in WrapPubKey() 60 delete napiPubKey; in WrapPubKey() 65 delete napiPubKey; in WrapPubKey()
|
H A D | napi_pub_key.cpp | 69 NapiPubKey *napiPubKey = nullptr; in JsGetEncoded() local 71 if (status != napi_ok || napiPubKey == nullptr) { in JsGetEncoded() 77 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetEncoded() 106 NapiPubKey *napiPubKey = nullptr; in JsGetEncodedDer() local 123 if (status != napi_ok || napiPubKey == nullptr) { in JsGetEncodedDer() 129 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetEncodedDer() 175 NapiPubKey *napiPubKey = nullptr; in JsGetEncodedPem() local 177 if (status != napi_ok || napiPubKey == nullptr) { in JsGetEncodedPem() 183 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetEncodedPem() 258 NapiPubKey *napiPubKey = nullptr; in JsGetAsyKeySpec() local [all …]
|
H A D | napi_asy_key_spec_generator.cpp | 220 if (napiPubKey == nullptr) { in PubKeyAsyncWorkReturn() 230 env, instance, napiPubKey, in PubKeyAsyncWorkReturn() 234 delete napiPubKey; in PubKeyAsyncWorkReturn() 241 HcfObjDestroy(napiPubKey->GetPubKey()); in PubKeyAsyncWorkReturn() 242 delete napiPubKey; in PubKeyAsyncWorkReturn() 499 if (napiPubKey == nullptr) { in JsGeneratePubKeySync() 506 instance = napiPubKey->ConvertToJsPubKey(env); in JsGeneratePubKeySync() 508 env, instance, napiPubKey, in JsGeneratePubKeySync() 512 delete napiPubKey; in JsGeneratePubKeySync() 517 HcfObjDestroy(napiPubKey->GetPubKey()); in JsGeneratePubKeySync() [all …]
|
H A D | napi_key_agreement.cpp | 142 NapiPubKey *napiPubKey = nullptr; in BuildKeyAgreementJsCtx() local 143 status = napi_unwrap(env, argv[index], reinterpret_cast<void **>(&napiPubKey)); in BuildKeyAgreementJsCtx() 144 if (status != napi_ok || napiPubKey == nullptr) { in BuildKeyAgreementJsCtx() 151 ctx->pubKey = napiPubKey->GetPubKey(); in BuildKeyAgreementJsCtx() 283 NapiPriKey **napiPriKey, NapiPubKey **napiPubKey) in GetPriKeyAndPubKeyFromParam() argument 296 status = napi_unwrap(env, pubKeyParam, reinterpret_cast<void **>(napiPubKey)); in GetPriKeyAndPubKeyFromParam() 302 if (*napiPubKey == nullptr) { in GetPriKeyAndPubKeyFromParam() 331 NapiPubKey *napiPubKey = nullptr; in JsGenerateSecretSync() local 332 …esult ret = GetPriKeyAndPubKeyFromParam(env, argv[PARAM0], argv[PARAM1], &napiPriKey, &napiPubKey); in JsGenerateSecretSync() 340 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGenerateSecretSync()
|
H A D | napi_verify.cpp | 233 NapiPubKey *napiPubKey = nullptr; in BuildVerifyJsInitCtx() local 234 status = napi_unwrap(env, argv[index], reinterpret_cast<void **>(&napiPubKey)); in BuildVerifyJsInitCtx() 235 if (status != napi_ok || napiPubKey == nullptr) { in BuildVerifyJsInitCtx() 242 ctx->pubKey = napiPubKey->GetPubKey(); in BuildVerifyJsInitCtx() 750 NapiPubKey *napiPubKey = nullptr; in JsInitSync() local 751 status = napi_unwrap(env, argv[PARAM0], reinterpret_cast<void **>(&napiPubKey)); in JsInitSync() 752 if (status != napi_ok || napiPubKey == nullptr) { in JsInitSync() 759 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsInitSync()
|
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/src/ |
H A D | napi_pub_key.cpp | 70 NapiPubKey *napiPubKey = nullptr; in JsGetEncoded() local 71 napi_unwrap(env, thisVar, reinterpret_cast<void **>(&napiPubKey)); in JsGetEncoded() 73 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetEncoded()
|