Home
last modified time | relevance | path

Searched refs:verify (Results 1 – 25 of 62) sorted by relevance

123

/base/security/crypto_framework/test/unittest/src/
Dcrypto_ecc_verify_test.cpp138 HcfVerify *verify = nullptr; variable
139 int32_t res = HcfVerifyCreate("ECC224|SHA1", &verify);
142 ASSERT_NE(verify, nullptr);
144 HcfObjDestroy(verify);
149 HcfVerify *verify = nullptr; variable
150 int32_t res = HcfVerifyCreate("ECC224|SHA224", &verify);
153 ASSERT_NE(verify, nullptr);
155 HcfObjDestroy(verify);
160 HcfVerify *verify = nullptr; variable
161 int32_t res = HcfVerifyCreate("ECC224|SHA256", &verify);
[all …]
Dcrypto_sm2_verify_test.cpp87 HcfVerify *verify = nullptr; variable
88 int32_t res = HcfVerifyCreate("SM2|SM3", &verify);
91 ASSERT_NE(verify, nullptr);
93 HcfObjDestroy(verify);
98 HcfVerify *verify = nullptr; variable
99 int32_t res = HcfVerifyCreate(nullptr, &verify);
102 ASSERT_EQ(verify, nullptr);
107 HcfVerify *verify = nullptr; variable
109 "ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD", &verify);
112 ASSERT_EQ(verify, nullptr);
[all …]
Dcrypto_dsa_verify_test.cpp42 HcfVerify *verify = nullptr; variable
43 HcfResult ret = HcfVerifyCreate("DSA2048|NoHash", &verify);
46 ASSERT_NE(verify, nullptr);
48 const char *verifyClassName = verify->base.getClass();
49 HcfObjDestroy(verify);
55 HcfVerify *verify = nullptr; variable
56 HcfResult ret = HcfVerifyCreate("DSA2048|NoHash", &verify);
59 ASSERT_NE(verify, nullptr);
61 verify->base.destroy(&(verify->base));
66 HcfVerify *verify = nullptr; variable
[all …]
Dcrypto_ecc_no_length_verify_test.cpp308 HcfVerify *verify = nullptr; variable
309 int32_t res = HcfVerifyCreate("ECC|SHA1", &verify);
312 ASSERT_NE(verify, nullptr);
314 HcfObjDestroy(verify);
319 HcfVerify *verify = nullptr; variable
320 int32_t res = HcfVerifyCreate("ECC|SHA224", &verify);
323 ASSERT_NE(verify, nullptr);
325 HcfObjDestroy(verify);
330 HcfVerify *verify = nullptr; variable
331 int32_t res = HcfVerifyCreate("ECC|SHA256", &verify);
[all …]
Dcrypto_rsa_verify_test.cpp155 HcfVerify *verify = nullptr; variable
156 int32_t res = HcfVerifyCreate("RSA1024|PSS|SHA256", &verify);
158 ASSERT_EQ(verify, nullptr);
160 HcfObjDestroy(verify);
165 HcfVerify *verify = nullptr; variable
166 int32_t res = HcfVerifyCreate("RSA1024|PSS|SHA256|MGF1_SHA256", &verify);
168 ASSERT_NE(verify, nullptr);
170 HcfObjDestroy(verify);
177 HcfVerify *verify = nullptr; variable
178 res = HcfVerifyCreate("RSA1024|PSS|SHA256|MGF1_SHA256", &verify);
[all …]
Dcrypto_dsa_sign_test.cpp544 HcfVerify *verify = nullptr; variable
545 ret = HcfVerifyCreate("DSA2048|NoHash", &verify);
547 EXPECT_NE(verify, nullptr);
549 ret = verify->init(verify, nullptr, dsa2048KeyPair_->pubKey);
552 EXPECT_EQ(verify->verify(verify, &srcData, &signData), true);
554 HcfObjDestroy(verify);
586 HcfVerify *verify = nullptr; variable
587 ret = HcfVerifyCreate("DSA2048|NoHash", &verify);
589 EXPECT_NE(verify, nullptr);
591 ret = verify->init(verify, nullptr, dsa2048KeyPair_->pubKey);
[all …]
Dcrypto_signature_exception_test.cpp201 HcfVerify *verify = nullptr; variable
202 HcfResult res = HcfVerifyCreate("DSA1024|SHA256", &verify);
204 ASSERT_NE(verify, nullptr);
206 HcfVerifySpi verifyObj { .base = *(HcfObjectBase *)verify };
217 verify->base.destroy((HcfObjectBase *)verify);
Dcrypto_sm2_sign_test.cpp622 HcfVerify *verify = nullptr; variable
623 res = HcfVerifyCreate("SM2|SM3", &verify);
625 ASSERT_NE(verify, nullptr);
627 verify->init(verify, nullptr, sm2256KeyPair_->pubKey);
630 verify->update(verify, &input);
633 bool flag = verify->verify(verify, nullptr, &out);
636 verify->update(verify, &input);
639 flag = verify->verify(verify, nullptr, &out2);
645 HcfObjDestroy(verify);
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfverifycreate_fuzzer/
Dhcfverifycreate_fuzzer.cpp59 HcfVerify *verify = nullptr; in TestVerify() local
60 res = HcfVerifyCreate("ECC224|SHA384", &verify); in TestVerify()
71 (void)verify->init(verify, nullptr, ecc224KeyPair->pubKey); in TestVerify()
72 (void)verify->update(verify, &mockInput); in TestVerify()
73 (void)verify->verify(verify, nullptr, &out); in TestVerify()
77 HcfObjDestroy(verify); in TestVerify()
83 HcfVerify *verify = nullptr; in HcfVerifyCreateFuzzTest() local
85 HcfResult res = HcfVerifyCreate(algoName.c_str(), &verify); in HcfVerifyCreateFuzzTest()
89 HcfObjDestroy(verify); in HcfVerifyCreateFuzzTest()
/base/update/sys_installer_lite/frameworks/source/
DBUILD.gn18 "//base/update/sys_installer_lite/frameworks/source/verify/app_rsa.c",
19 "//base/update/sys_installer_lite/frameworks/source/verify/app_sha256.c",
20 "//base/update/sys_installer_lite/frameworks/source/verify/hota_verify.c",
26 "//base/update/sys_installer_lite/frameworks/source/verify",
42 "//base/update/sys_installer_lite/frameworks/source/verify/app_rsa.c",
43 "//base/update/sys_installer_lite/frameworks/source/verify/app_sha256.c",
44 "//base/update/sys_installer_lite/frameworks/source/verify/hota_verify.c",
50 "//base/update/sys_installer_lite/frameworks/source/verify",
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_verify.cpp38 HcfVerify *verify = nullptr; member
55 HcfVerify *verify = nullptr; member
71 HcfVerify *verify = nullptr; member
173 ctx->verify = napiVerify->GetVerify(); in BuildVerifyJsInitCtx()
211 ctx->verify = napiVerify->GetVerify(); in BuildVerifyJsUpdateCtx()
275 ctx->verify = napiVerify->GetVerify(); in BuildVerifyJsDoFinalCtx()
375 ctx->errCode = ctx->verify->init(ctx->verify, ctx->params, ctx->pubKey); in VerifyJsInitAsyncWorkProcess()
398 ctx->errCode = ctx->verify->update(ctx->verify, ctx->data); in VerifyJsUpdateAsyncWorkProcess()
421 ctx->isVerifySucc = ctx->verify->verify(ctx->verify, ctx->data, ctx->signatureData); in VerifyJsDoFinalAsyncWorkProcess()
524 NapiVerify::NapiVerify(HcfVerify *verify) in NapiVerify() argument
[all …]
/base/startup/hvb/
DREADME.md5 Open**H**armony **V**erified **B**oot (HVB) component is used to verify and authenticate system ima…
19 … library. It will be integrated by Bootloader to verify initial images, and integrated by init to
/base/security/device_security_level/services/dslm/
Ddslm_credential.c60 VerifyDslmCredFunc *verify = cb->verifyFunc; in DefaultVerifyDslmCred() local
61 if (verify != NULL) { in DefaultVerifyDslmCred()
62 return verify(device, challenge, credBuff, credInfo); in DefaultVerifyDslmCred()
/base/security/device_security_level/oem_property/ohos/standard/
Ddslm_cred_tool.py377verify = ssl.digest_verify_with_pub_key(root_pk_bytes, root_pk_bytes, root_self_sign_bytes, '-sha3…
378 if not verify:
383verify = ssl.digest_verify_with_pub_key(root_pk_bytes, oem_pk_bytes, oem_sign_bytes, '-sha384')
384 if not verify:
389verify = ssl.digest_verify_with_pub_key(oem_pk_bytes, device_pk_bytes, device_sign_bytes, '-sha384…
390 if not verify:
394 verify = ssl.digest_verify_with_pub_key(device_pk_bytes, payload.encode('utf8'),
396 if not verify:
397 verify = ssl.digest_verify_with_pub_key(device_pk_bytes, payload.encode('utf8'),
399 if not verify:
/base/security/certificate_framework/interfaces/innerkits/certificate/
Dcertificate.h30 CfResult (*verify)(HcfCertificate *self, HcfPubKey *key); member
Dx509_crl.h35 CfResult (*verify)(HcfX509Crl *self, HcfPubKey *key); member
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/
Dhks_teec.h68 const struct HksBlob *verify, bool isVerify);
79 int32_t HksTeeProvisionVerify(const struct HksBlob *verify, struct HksBlob *challenge,
/base/security/appverify/interfaces/innerkits/appverify_lite/
DBUILD.gn35 shared_library("verify") {
55 group("verify") {
/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
Dnapi_verify.h29 explicit NapiVerify(HcfVerify *verify);
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_sm2_sign_verify_test.cpp435 struct GenerateKeyCaseParam verify; member
477 ret = InitParamSet(&verifyParamSet, param.verify.params.data(), param.verify.params.size()); in HksSm2SignVerifyTestRun()
481 ret = ((ret == param.verify.result) ? HKS_SUCCESS : ret); in HksSm2SignVerifyTestRun()
491 ret = ((ret == param.verify.result) ? HKS_SUCCESS : ret); in HksSm2SignVerifyTestRun()
/base/security/crypto_framework/interfaces/innerkits/crypto_operation/
Dsignature.h62 bool (*verify)(HcfVerify *self, HcfBlob *data, HcfBlob *signatureData); member
/base/update/sys_installer_lite/frameworks/test/unittest/common/
DBUILD.gn20 "//base/update/sys_installer_lite/frameworks/source/verify",
/base/security/appverify/
DBUILD.gn38 "//base/security/appverify/interfaces/innerkits/appverify_lite:verify",
/base/security/appverify/interfaces/innerkits/appverify_lite/unittest/
DBUILD.gn45 "//base/security/appverify/interfaces/innerkits/appverify_lite:verify",
/base/security/code_signature/
DREADME.md5 …ity mechanism on OpenHarmony to protect integrity of the application and verify the validity of th…

123