Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 25 of 452) sorted by relevance

12345678910>>...19

/ohos5.0/base/security/certificate_framework/frameworks/core/v1.0/certificate/
H A Dcert_chain_validator.c37 char *algorithm; member
45 const char *algorithm; member
56 if (strcmp(CERT_PATH_VALIDATOR_ABILITY_SET[i].algorithm, algorithm) == 0) { in FindAbility()
81 CfFree(validatorImpl->algorithm); in DestroyCertChainValidator()
82 validatorImpl->algorithm = NULL; in DestroyCertChainValidator()
168 const char *algo = (const char *)impl->algorithm; in GetAlgorithm()
178 const HcfCertChainValidatorFuncSet *func = FindAbility(algorithm); in HcfCertChainValidatorCreate()
201 uint32_t algoNameLen = strlen(algorithm) + 1; in HcfCertChainValidatorCreate()
202 returnValidator->algorithm = (char *)CfMalloc(algoNameLen, 0); in HcfCertChainValidatorCreate()
203 if (returnValidator->algorithm == NULL) { in HcfCertChainValidatorCreate()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-crypto-architecture-kit/
H A D_crypto_asym_key_api.md130 | CRYPTO_DSA_P_DATABLOB | Prime modulus **p** in the DSA algorithm. |
132 | CRYPTO_DSA_G_DATABLOB | Parameter **g** in the DSA algorithm. |
134 | CRYPTO_DSA_PK_DATABLOB | Public key **pk** in the DSA algorithm. |
141 | CRYPTO_ECC_H_INT | Cofactor **h** in the ECC algorithm. |
148 | CRYPTO_RSA_N_DATABLOB | Modulus **n** in the RSA algorithm. |
151 | CRYPTO_DH_P_DATABLOB | Prime **p** in the DH algorithm. |
152 | CRYPTO_DH_G_DATABLOB | Parameter **g** in the DH algorithm. |
154 | CRYPTO_DH_SK_DATABLOB | Private key **sk** in the DH algorithm. |
155 | CRYPTO_DH_PK_DATABLOB | Public key **pk** in the DH algorithm. |
297 Obtains the asymmetric key algorithm.
[all …]
H A D_crypto_sym_key_api.md38 …talgoname) ([OH_CryptoSymKey](#oh_cryptosymkey) \*keyCtx) | Obtains the algorithm of a symmetric k…
102 Obtains the algorithm of a symmetric key.
114 Symmetric key algorithm obtained.
148 **17630001**: Failed to call an API of a third-party algorithm library.
183 **17630001**: Failed to call an API of a third-party algorithm library.
194 Creates a symmetric key generator instance based on the given algorithm name.
202 | algoName | Pointer to the algorithm used to generate the symmetric key. For example, **'AES256'**…
217 **17630001**: Failed to call an API of a third-party algorithm library.
270 **17630001**: Failed to call an API of a third-party algorithm library.
281 Obtains the algorithm of a symmetric key generator instance.
[all …]
H A D_crypto_digest_api.md32 …toDigest](#oh_cryptodigest) \*\*ctx) | Creates an MD instance based on the given algorithm name. |
36 …odigest_getalgoname) ([OH_CryptoDigest](#oh_cryptodigest) \*ctx) | Obtains the digest algorithm. |
67 Creates an MD instance based on the given algorithm name.
75 | algoName | Pointer to the algorithm used to generate the MD instance. For example, **'SHA256'**. …
90 **17630001**: Failed to call an API of a third-party algorithm library.
124 **17630001**: Failed to call an API of a third-party algorithm library.
139 Obtains the digest algorithm.
151 MD algorithm obtained.
184 **17630001**: Failed to call an API of a third-party algorithm library.
218 **17630001**: Failed to call an API of a third-party algorithm library.
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_indicator_layout_test_ng.cpp50 algorithm->Measure(&layoutWrapper);
75 algorithm->Measure(&layoutWrapper);
105 algorithm->Layout(&layoutWrapper);
136 algorithm->Layout(&layoutWrapper);
165 algorithm->Layout(&layoutWrapper);
195 algorithm->Layout(&layoutWrapper);
225 algorithm->Layout(&layoutWrapper);
254 algorithm->Layout(&layoutWrapper);
321 algorithm->Measure(&layoutWrapper);
363 algorithm->Layout(&layoutWrapper);
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/
H A Dgrid_irregular_layout_test.cpp55 algorithm->crossGap_ = 5.0f;
56 algorithm->mainGap_ = 1.0f;
57 algorithm->LayoutChildren(0.0f, 0);
96 EXPECT_EQ(algorithm->crossLens_, cmp);
99 EXPECT_EQ(algorithm->mainGap_, 1.0f);
143 EXPECT_EQ(algorithm->mainGap_, 1.0f);
234 algorithm->overScroll_ = false;
630 algorithm->UpdateLayoutInfo();
1068 CheckAlignStart(algorithm, info);
1069 CheckAlignCenter(algorithm, info);
[all …]
/ohos5.0/base/update/updater/services/package/pkg_algorithm/
H A Dpkg_algorithm.cpp47 algorithm->Final(digest); in FinalDigest()
63 if (algorithm == nullptr) { in Pack()
67 algorithm->Init(); in Pack()
88 algorithm->Update(buffer, readLen); in Pack()
93 ret = FinalDigest(algorithm, context, true); in Pack()
110 if (algorithm == nullptr) { in Unpack()
114 algorithm->Init(); in Unpack()
134 algorithm->Update(buffer, readLen); in Unpack()
156 if (algorithm == nullptr) { in UnpackWithVerify()
160 algorithm->Init(); in UnpackWithVerify()
[all …]
H A Dpkg_algo_deflate.cpp57 const PkgStreamPtr outStream, const DigestAlgorithm::DigestAlgorithmPtr algorithm) in PackCalculate() argument
85 algorithm->Calculate(crcResult, inBuffer, readLen); in PackCalculate()
114 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Pack() local
115 if (algorithm == nullptr) { in Pack()
119 return PackCalculate(context, inStream, outStream, algorithm); in Pack()
153 const PkgStreamPtr outStream, DigestAlgorithm::DigestAlgorithmPtr algorithm) in UnpackCalculate() argument
191 algorithm->Calculate(crcResult, outBuffer, inflateLen); in UnpackCalculate()
200 …DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(context.di… in Unpack() local
201 if (algorithm == nullptr) { in Unpack()
210 return UnpackCalculate(context, inStream, outStream, algorithm); in Unpack()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/navrouter/
H A Dnavrouter_model_test_ng.cpp967 algorithm->isInitialTitle_ = true;
976 algorithm->isInitialTitle_ = false;
985 algorithm->isInitialTitle_ = false;
1028 algorithm->isInitialTitle_ = false;
1036 algorithm->isInitialTitle_ = false;
1263 ASSERT_NE(algorithm, nullptr);
1344 ASSERT_NE(algorithm, nullptr);
1544 algorithm->isInitialTitle_ = true;
1551 algorithm->isInitialTitle_ = true;
1555 algorithm->isInitialTitle_ = true;
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenuitemgroup_test_ng.cpp250 ASSERT_TRUE(algorithm);
288 algorithm->headerIndex_ = 0;
289 algorithm->footerIndex_ = 0;
316 ASSERT_TRUE(algorithm);
333 algorithm->headerIndex_ = 0;
335 algorithm->footerIndex_ = 0;
373 ASSERT_TRUE(algorithm);
399 ASSERT_NE(algorithm->itemPosition_.find(0), algorithm->itemPosition_.end());
470 algorithm->headerIndex_ = -1;
471 algorithm->footerIndex_ = 0;
[all …]
/ohos5.0/foundation/communication/netstack/frameworks/native/tls_socket/src/
H A Dtls_key.cpp33 DecodeDer(type, algorithm, fileName, passPhrase); in TLSKey()
35 DecodePem(type, algorithm, fileName, passPhrase); in TLSKey()
39 TLSKey::TLSKey(const SecureData &data, KeyAlgorithm algorithm, const SecureData &passPhrase) in TLSKey() argument
44 DecodeData(data, algorithm, passPhrase); in TLSKey()
148 keyAlgorithm_ = algorithm; in DecodeData()
169 keyAlgorithm_ = algorithm; in DecodeDer()
203 void TLSKey::SwitchAlgorithm(KeyType type, KeyAlgorithm algorithm, BIO *bio) in SwitchAlgorithm() argument
205 switch (algorithm) { in SwitchAlgorithm()
240 NETSTACK_LOGE("algorithm = %{public}d is error", algorithm); in SwitchAlgorithm()
251 keyAlgorithm_ = algorithm; in DecodePem()
[all …]
/ohos5.0/base/update/updater/services/package/pkg_package/
H A Dpkg_upgradefile.h159 DigestAlgorithm::DigestAlgorithmPtr algorithm, std::vector<std::string> &fileNames);
161 DigestAlgorithm::DigestAlgorithmPtr algorithm, std::vector<std::string> &fileNames);
165 DigestAlgorithm::DigestAlgorithmPtr &algorithm);
167 int32_t Verify(size_t start, DigestAlgorithm::DigestAlgorithmPtr algorithm,
173 size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm);
174 int32_t ReadReserveData(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr &algorithm);
177 int32_t ReadImgHashData(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm);
179 size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm);
182 int32_t VerifyFile(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm,
184 int32_t VerifyFileV1(size_t &parsedLen, DigestAlgorithm::DigestAlgorithmPtr algorithm,
[all …]
H A Dpkg_upgradefile.cpp325 algorithm->Update(buffer, buffer.length); in ReadImgHashTLV()
336 algorithm->Update(dataBuf, dataBuf.length); in ReadImgHashTLV()
391 DigestAlgorithm::DigestAlgorithmPtr algorithm) in ReadPackageInfo() argument
514 ret = ReadImgHashData(parsedLen, algorithm); in VerifyFileV2()
551 algorithm->Update(buffer, readBytes); in Verify()
556 algorithm->Final(digest); in Verify()
571 algorithm->Final(digest); in VerifyHeader()
733 if (algorithm == nullptr) { in ReadUpgradePkgHeader()
738 algorithm->Init(); in ReadUpgradePkgHeader()
742 algorithm->Update(buffer, realLen); in ReadUpgradePkgHeader()
[all …]
/ohos5.0/docs/en/application-dev/security/CryptoArchitectureKit/
H A Dcrypto-generate-message-digest-overview.md3algorithm allows a fixed-length digest to be generated from data of arbitrary size by using the ha…
6 When the same digest algorithm is used, the generated digest (hash value) has the following feature…
11 …d length no matter the length of messages. (The digest length is determined by the algorithm used).
18 The **Supported Type** column in the following table lists the algorithm to be used when an **Md** …
H A Dcrypto-sym-key-generation-conversion-spec.md7 …ifications. The string parameters supported by each algorithm are provided in the specific algorit…
12 Advanced Encryption Standard (AES) is the most common symmetric encryption algorithm.
23 …in a string parameter. The string parameter consists of the symmetric key algorithm and key length.
43 …in a string parameter. The string parameter consists of the symmetric key algorithm and key length.
52 ShangMi 4 (SM4) is a symmetric algorithm.
60 - Both the encryption algorithm and the key expansion algorithm use a 32-round non-linear iteration…
62 … a string parameter. The string parameter consists of the symmetric key algorithm and key length w…
71 Hash-based Message Authentication Code (HMAC) is a hash-based message authentication code algorithm
81 - You are advised to use the output length of the message digest (MD) algorithm as the key length.
85 … of the MD generated, the string parameter consists of the MAC algorithm and MD algorithm with a v…
H A Dcrypto-key-derivation-overview.md3 A key derivation function (KDF) is a cryptographic algorithm that derives one or more secrete keys …
11 …ed to specify the algorithm specifications in a string parameter. The string parameter consists of…
29 …eed to specify the algorithm specifications in a string parameter. The string parameter consists o…
H A Dcrypto-sign-sig-verify-overview.md30 | md | MD algorithm.|
32 | mgf1_md | MD algorithm used in MGF1.|
43 … the algorithm specifications in a string parameter. The string parameter consists of the asymmetr…
60 | RSA | PKCS1 | MD algorithm that meets the length requirements| 10+ |
117 | RSA | PSS | MD algorithm that meets the length requirements| MGF1_ MD algorithm that meets the le…
148 > 2. If the padding mode is **PKCS1** and an MD algorithm is set, the data to be signed must be the…
161 | RSA | PKCS1 | MD algorithm that meets the length requirements| OnlySign | 12+ |
184 | RSA | PKCS1 | MD algorithm that meets the length requirements| Recover | 12+ |
244 > If DSA is used with the digest algorithm **NoHash**, signing or signature verification by segment…
249 SM2 is a digital signature algorithm based on ECC.
[all …]
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-ai-aiframework-devguide.md260algorithm plug-in access specifications. Each plug-in needs to implement specified APIs to impleme…
276algorithm's extended information to plug-ins.<br>**Return value**: **0** if the operation is succe…
290algorithm execution result.| **event**: used to enumerate the algorithm execution result. The valu…
400 // Call the AieClientPrepare API provided by the client to load the algorithm plug-in.
453 …ess | Executes the inference algorithm synchronously. For KWS, this API synchronously executes the…
457 … AieClientRelease | Release | Releases the algorithm model. For KWS, this API releases the specifi…
479 … // Naming rule: [algorithm name+algorithm version], for example, [asr\_keyword\_spotting+20001002]
506 // Add the name of the KWS algorithm: asr\_keyword\_spotting.
507 …// Name the algorithm variable in the same way as the algorithm type ID in ALGORITHM\_TYPE\_ID\_LI…
510 const std::string ALGORITHM_ID_INVALID = "invalid algorithm id";
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Dsheet_coverage_test_ng.cpp1348 EXPECT_NE(algorithm->getOffsetFunc_.find(targetPlacement), algorithm->getOffsetFunc_.end());
1351 algorithm->getOffsetFunc_.clear();
1352 EXPECT_EQ(algorithm->getOffsetFunc_.find(targetPlacement), algorithm->getOffsetFunc_.end());
1371 algorithm->sheetRadius_ = 10;
1377 algorithm->sheetRadius_ = 100;
1397 algorithm->sheetRadius_ = 10;
1398 algorithm->sheetWidth_ = 100;
1402 algorithm->sheetWidth_));
1405 algorithm->sheetRadius_ = 50;
1407 algorithm->sheetWidth_));
[all …]
/ohos5.0/foundation/communication/netstack/frameworks/native/tls_socket/include/
H A Dtls_key.h42 TLSKey(const SecureData &data, KeyAlgorithm algorithm, const SecureData &passPhrase);
43 TLSKey(const std::string &fileName, KeyAlgorithm algorithm, const SecureData &passPhrase,
56 void DecodeData(const SecureData &data, KeyAlgorithm algorithm, const SecureData &passPhrase);
57 …void DecodeDer(KeyType type, KeyAlgorithm algorithm, const std::string &fileName, const SecureData…
58 …void DecodePem(KeyType type, KeyAlgorithm algorithm, const std::string &fileName, const SecureData…
60 void SwitchAlgorithm(KeyType type, KeyAlgorithm algorithm, BIO *bio);
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.22/
H A Dchangelogs-crypto_framework.md11 When DSA algorithm is used for signing or signature verification with the digest algorithm set to *…
17 Before the change:<br>When DSA is used for signing with the digest algorithm set to **NoHash**, cal…
19 After the change:<br>When DSA is used for signing with the digest algorithm set to **NoHash**, call…
21 Before the change:<br>When DSA is used to verify the signature data with the digest algorithm set t…
23 After the change:<br>When DSA is used to verify the signature data with the digest algorithm set to…
39 When DSA is used for signing or signature verification and the digest algorithm is set to **NoHash*…
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/smooth_zoom/
H A Dsmooth_zoom.cpp23 std::shared_ptr<IZoomAlgorithm> algorithm; in GetZoomAlgorithm() local
26 algorithm = std::make_shared<CubicBezier>(); in GetZoomAlgorithm()
29 algorithm = std::make_shared<CubicBezier>(); in GetZoomAlgorithm()
32 return algorithm; in GetZoomAlgorithm()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/navigation/
H A Dnavigation_test_ng.cpp629 NavigationLayoutAlgorithm algorithm; variable
675 algorithm->realNavBarWidth_ = -1.0f;
701 algorithm->userSetMinContentFlag_ = true;
703 algorithm->CheckSizeInSplit(0, 0, 0, 0);
706 algorithm->CheckSizeInSplit(50, 0, 0, 0);
707 algorithm->realNavBarWidth_ = 60;
708 algorithm->CheckSizeInSplit(50, 0, 0, 0);
714 algorithm->CheckSizeInSplit(50, 0, 0, 0);
718 algorithm->realNavBarWidth_ = 0;
722 algorithm->realNavBarWidth_ = 60;
[all …]
/ohos5.0/base/startup/hvb/tools/
H A Dreadme.md23 ​ --algorithm SHA256_RSA2048 //签名算法
31 …086bcb8cf37f991733f2696 --pubkey boot_pub.pem --privkey boot_priv.pem --algorithm SHA256_RSA2048 -…
49 ​ --algorithm SHA256_RSA2048 //签名算法
57 …cb8cf37f991733f2696 --pubkey system_pub.pem --privkey system_priv.pem --algorithm SHA256_RSA2048 …
73 ​ --algorithm SHA256_RSA2048 //签名算法
89 ….pem --privkey test_priv.pem --partition rvt --partition_size 4194304 --algorithm SHA256_RSA2048 -…
/ohos5.0/base/security/device_security_level/oem_property/common/
H A Ddslm_credential_utils.c62 uint32_t algorithm; member
98 const struct DataBuffer *pbkData, uint32_t algorithm);
180 … int32_t ret = EcdsaVerify(&root->publicKey, &root->signature, &root->publicKey, root->algorithm); in VerifyCredentialCb()
196 … ret = EcdsaVerify(&last->publicKey, &last->signature, &intermediate->publicKey, last->algorithm); in VerifyCredentialCb()
277 static uint32_t GetAlgorithmType(const char *algorithm) in GetAlgorithmType() argument
279 if (algorithm == NULL) { in GetAlgorithmType()
283 if (strncmp(algorithm, "SHA256withECDSA", strlen("SHA256withECDSA")) == 0) { in GetAlgorithmType()
287 if (strncmp(algorithm, "SHA384withECDSA", strlen("SHA384withECDSA")) == 0) { in GetAlgorithmType()
523 const struct DataBuffer *pbkData, uint32_t algorithm) in EcdsaVerify() argument
533 if ((algorithm != TYPE_ECDSA_SHA_256) && (algorithm != TYPE_ECDSA_SHA_384)) { in EcdsaVerify()
[all …]

12345678910>>...19