Home
last modified time | relevance | path

Searched refs:g_obj (Results 1 – 9 of 9) sorted by relevance

/base/security/crypto_framework/test/unittest/src/
Dcrypto_signature_exception_test.cpp42 HcfObjectBase g_obj = { variable
50 HcfResult ret = EngineSignInit((HcfSignSpi *)&g_obj, nullptr, &sk);
53 ret = EngineSignInit((HcfSignSpi *)&g_obj, nullptr, &sk);
57 DestroyRsaSign((HcfObjectBase *)&g_obj);
60 DestroyRsaVerify((HcfObjectBase *)&g_obj);
66 HcfResult ret = EngineVerifyInit((HcfVerifySpi *)&g_obj, nullptr, &pk);
69 ret = EngineVerifyInit((HcfVerifySpi *)&g_obj, nullptr, &pk);
75 HcfResult ret = EngineSignUpdate((HcfSignSpi *)&g_obj, nullptr);
82 ret = EngineSignUpdate((HcfSignSpi *)&g_obj, &blob);
87 ret = EngineSignUpdate((HcfSignSpi *)&g_obj, &input);
[all …]
Dcrypto_dsa_exception_test.cpp44 HcfObjectBase g_obj = { variable
212 DestroyDsaKeyGeneratorSpiImpl(&g_obj);
215 DestroyDsaPriKey(&g_obj);
218 GetDsaPriKeyAlgorithm((HcfKey *)&g_obj);
223 ret = GetDsaPriKeyEncoded((HcfKey *)&g_obj, nullptr);
227 ret = GetDsaPriKeyEncoded((HcfKey *)&g_obj, &blob);
230 (void)GetDsaPubKeyFormat((HcfKey *)&g_obj);
232 (void)GetDsaPriKeyFormat((HcfKey *)&g_obj);
240 ret = GetBigIntegerSpecFromDsaPubKey((const HcfPubKey *)&g_obj, DSA_P_BN, nullptr);
244 GetBigIntegerSpecFromDsaPubKey((const HcfPubKey *)&g_obj, DSA_P_BN, &p);
[all …]
Dcrypto_ecc_asy_key_generator_test.cpp141 HcfObjectBase g_obj = { variable
277 generator->base.destroy(&g_obj);
320 const char *algName = generator->getAlgoName((HcfAsyKeyGenerator *)&g_obj);
425 res = generator->generateKeyPair((HcfAsyKeyGenerator *)&g_obj, nullptr, &keyPair);
511 keyPair->base.destroy(&g_obj);
581 keyPair->pubKey->base.base.destroy(&g_obj);
636 const char *format = keyPair->pubKey->base.getFormat((HcfKey *)&g_obj);
693 const char *algName = keyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
759 res = keyPair->pubKey->base.getEncoded((HcfKey *)&g_obj, &blob);
833 keyPair->priKey->clearMem((HcfPriKey *)&g_obj);
[all …]
Dcrypto_dsa_asy_key_generator_test.cpp128 HcfObjectBase g_obj = { variable
285 ret = generator->generateKeyPair((HcfAsyKeyGenerator *)&g_obj, nullptr, &keyPair);
319 dsa2048KeyPair_->base.destroy((HcfObjectBase *)&g_obj);
348 dsa2048KeyPair_->pubKey->base.base.destroy((HcfObjectBase *)&g_obj);
362 const char *alg = dsa2048KeyPair_->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
396 HcfResult ret = dsa2048KeyPair_->pubKey->base.getEncoded((HcfKey *)&g_obj, &blob);
Dcrypto_sm2_asy_key_generator_test.cpp71 HcfObjectBase g_obj = { variable
174 generator->base.destroy(&g_obj);
217 const char *algName = generator->getAlgoName((HcfAsyKeyGenerator *)&g_obj);
268 res = generator->generateKeyPair((HcfAsyKeyGenerator *)&g_obj, nullptr, &keyPair);
1508 …res = spiObj->engineConvertKey((HcfAsyKeyGeneratorSpi *)&g_obj, nullptr, nullptr, nullptr, &keyPai…
Dcrypto_rsa_cipher_test.cpp96 static HcfObjectBase g_obj = { variable
1916 res = cipher->setCipherSpecUint8Array(reinterpret_cast<HcfCipher *>(&g_obj),
2035 … res = cipher->getCipherSpecString(reinterpret_cast<HcfCipher *>(&g_obj), OAEP_MD_NAME_STR, &ret);
2149 …res = cipher->getCipherSpecUint8Array(reinterpret_cast<HcfCipher *>(&g_obj), OAEP_MGF1_PSRC_UINT8A…
2267 …res = cipher->setCipherSpecUint8Array(reinterpret_cast<HcfCipher *>(&g_obj), OAEP_MGF1_PSRC_UINT8A…
2452 res = spiObj->init(reinterpret_cast<HcfCipherGeneratorSpi *>(&g_obj),
2498 spiObj->base.destroy(&g_obj);
2591 res = spiObj->doFinal(reinterpret_cast<HcfCipherGeneratorSpi *>(&g_obj), &input, &output);
Dcrypto_rsa_asy_key_generator_test.cpp74 HcfObjectBase g_obj = { variable
1329 res = spiObj->engineGenerateKeyPair((HcfAsyKeyGeneratorSpi *)&g_obj, &keyPair);
1386 spiObj->base.destroy(&g_obj);
1406 res = spiObj->engineConvertKey((HcfAsyKeyGeneratorSpi *)&g_obj,
1464 spiObj->base.destroy(&g_obj);
Dcrypto_ecc_asy_key_generator_by_spec_test.cpp135 HcfObjectBase g_obj = { variable
1131 generator->base.destroy(&g_obj);
1191 const char *algName = generator->getAlgName((HcfAsyKeyGeneratorBySpec *)&g_obj);
1374 res = generator->generateKeyPair((HcfAsyKeyGeneratorBySpec *)&g_obj, &keyPair);
1712 keyPair->base.destroy(&g_obj);
1850 keyPair->pubKey->base.base.destroy(&g_obj);
2042 const char *format = keyPair->pubKey->base.getFormat((HcfKey *)&g_obj);
2236 const char *algName = keyPair->pubKey->base.getAlgorithm((HcfKey *)&g_obj);
2986 res = keyPair->pubKey->base.getEncoded((HcfKey *)&g_obj, &blob);
3148 keyPair->priKey->clearMem((HcfPriKey *)&g_obj);
[all …]
/base/msdp/device_status/frameworks/js/napi/src/
Ddevicestatus_napi.cpp42 thread_local DeviceStatusNapi *g_obj = nullptr; variable
82 return g_obj; in GetDeviceStatusNapi()
105 if (g_obj != nullptr) { in ~DeviceStatusNapi()
106 delete g_obj; in ~DeviceStatusNapi()
107 g_obj = nullptr; in ~DeviceStatusNapi()
313 if (!g_obj->RemoveAllCallback(type)) { in GetParameters()
325 if (!g_obj->Off(type, args[2])) { in GetParameters()
337 if (g_obj == nullptr) { in SubscribeDeviceStatusCallback()
338 g_obj = new (std::nothrow) DeviceStatusNapi(env); in SubscribeDeviceStatusCallback()
339 CHKPP(g_obj); in SubscribeDeviceStatusCallback()
[all …]