Home
last modified time | relevance | path

Searched refs:alg (Results 1 – 25 of 176) sorted by relevance

12345678

/external/tpm2/
DCryptSelfTest.c25 TPM_ALG_ID alg; in CryptRunSelfTests() local
28 for(alg = TPM_ALG_FIRST; alg <= TPM_ALG_LAST; alg++) in CryptRunSelfTests()
30 if(TEST_BIT(alg, *toTest)) in CryptRunSelfTests()
32 TPM_RC result = CryptTestAlgorithm(alg, toTest); in CryptRunSelfTests()
96 TPM_ALG_ID alg; in CryptIncrementalSelfTest() local
104 TPM_ALG_ID alg = toTest->algorithms[i]; in CryptIncrementalSelfTest() local
106 if((alg > TPM_ALG_LAST) || !TEST_BIT(alg, g_implementedAlgorithms)) in CryptIncrementalSelfTest()
108 SET_BIT(alg, toTestVector); in CryptIncrementalSelfTest()
116 for(alg = TPM_ALG_FIRST; in CryptIncrementalSelfTest()
117 toDoList->count < MAX_ALG_LIST_SIZE && alg <= TPM_ALG_LAST; in CryptIncrementalSelfTest()
[all …]
DEncryptDecrypt.c31 TPM_ALG_ID alg; in TPM2_EncryptDecrypt() local
62 alg = symKey->publicArea.parameters.symDetail.sym.algorithm; in TPM2_EncryptDecrypt()
63 blockSize = CryptGetSymmetricBlockSize(alg, keySize); in TPM2_EncryptDecrypt()
89 alg, in TPM2_EncryptDecrypt()
99 alg, in TPM2_EncryptDecrypt()
/external/boringssl/src/crypto/x509/
Dx_algor.c78 int X509_ALGOR_set0(X509_ALGOR *alg, const ASN1_OBJECT *aobj, int ptype, void *pval)
80 if (!alg)
84 if (alg->parameter == NULL)
85 alg->parameter = ASN1_TYPE_new();
86 if (alg->parameter == NULL)
89 if (alg)
91 if (alg->algorithm)
92 ASN1_OBJECT_free(alg->algorithm);
93 alg->algorithm = (ASN1_OBJECT*) aobj;
99 if (alg->parameter)
[all …]
/external/webrtc/webrtc/base/
Dmessagedigest.cc38 MessageDigest* MessageDigestFactory::Create(const std::string& alg) { in Create() argument
40 MessageDigest* digest = new OpenSSLDigest(alg); in Create()
48 if (alg == DIGEST_MD5) { in Create()
50 } else if (alg == DIGEST_SHA_1) { in Create()
57 bool IsFips180DigestAlgorithm(const std::string& alg) { in IsFips180DigestAlgorithm() argument
63 return alg == DIGEST_SHA_1 || in IsFips180DigestAlgorithm()
64 alg == DIGEST_SHA_224 || in IsFips180DigestAlgorithm()
65 alg == DIGEST_SHA_256 || in IsFips180DigestAlgorithm()
66 alg == DIGEST_SHA_384 || in IsFips180DigestAlgorithm()
67 alg == DIGEST_SHA_512; in IsFips180DigestAlgorithm()
[all …]
Dmessagedigest.h43 static MessageDigest* Create(const std::string& alg);
47 bool IsFips180DigestAlgorithm(const std::string& alg);
60 size_t ComputeDigest(const std::string& alg, const void* input, size_t in_len,
68 std::string ComputeDigest(const std::string& alg, const std::string& input);
70 bool ComputeDigest(const std::string& alg, const std::string& input,
91 size_t ComputeHmac(const std::string& alg, const void* key, size_t key_len,
101 std::string ComputeHmac(const std::string& alg, const std::string& key,
104 bool ComputeHmac(const std::string& alg, const std::string& key,
/external/chromium-trace/catapult/third_party/gsutil/gslib/
Dhashing_helper.py381 for alg in self._digesters:
382 self._digesters_previous[alg] = self._digesters[alg].copy()
407 for alg in self._digesters:
408 self._digesters_previous[alg] = self._digesters[alg].copy()
409 self._digesters[alg].update(data)
442 for alg in self._digesters:
443 self._digesters[alg] = self._hash_algs[alg]()
451 for alg in self._digesters:
452 self._digesters[alg] = self._digesters_previous[alg]
457 for alg in self._digesters:
[all …]
/external/libchrome/crypto/
Dsymmetric_key_win.cc54 ALG_ID alg, in ImportRawKey() argument
70 key_header->hdr.aiKeyAlg = alg; in ImportRawKey()
76 if (alg == CALG_HMAC) { in ImportRawKey()
108 ALG_ID alg = GetAESAlgIDForKeySize(key_size_in_bits); in GenerateAESKey() local
109 if (alg == 0) in GenerateAESKey()
127 ok = CryptGenKey(safe_provider.get(), alg, CRYPT_EXPORTABLE, in GenerateAESKey()
140 bool CheckHMACKeySize(size_t key_size_in_bits, ALG_ID alg) { in CheckHMACKeySize() argument
142 switch (alg) { in CheckHMACKeySize()
171 ALG_ID alg, in GenerateHMACKey() argument
179 if (!CheckHMACKeySize(key_size_in_bits, alg)) in GenerateHMACKey()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKeyPairGenerator2Test.java198 String alg = validValues[i].concat(post); in GetInstance01() local
199 kpG = KeyPairGenerator.getInstance(alg); in GetInstance01()
201 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance01()
237 String alg = validValues[i].concat(post); in GetInstance02() local
239 KeyPairGenerator.getInstance(alg, prov); in GetInstance02()
241 .concat(alg).concat(")")); in GetInstance02()
246 String alg = validValues[i].concat(post); in GetInstance02() local
249 KeyPairGenerator.getInstance(alg, invalidValues[j]); in GetInstance02()
251 .concat(alg).concat(" provider: ").concat( in GetInstance02()
259 String alg = validValues[i].concat(post); in GetInstance02() local
[all …]
/external/opencv3/modules/video/test/ocl/
Dtest_optflow_tvl1flow.cpp85 cv::Ptr<cv::DualTVL1OpticalFlow> alg = cv::createOptFlow_DualTVL1(); in OCL_TEST_P() local
88 alg->setScaleStep(scaleStep); in OCL_TEST_P()
89 alg->setMedianFiltering(medianFiltering); in OCL_TEST_P()
94 OCL_ON(alg->calc(frame0, frame1, uflow)); in OCL_TEST_P()
99 alg->setUseInitialFlow(useInitFlow); in OCL_TEST_P()
101 OCL_OFF(alg->calc(frame0, frame1, flow)); in OCL_TEST_P()
102 OCL_ON(alg->calc(frame0, frame1, uflow)); in OCL_TEST_P()
/external/opencv3/modules/video/perf/opencl/
Dperf_optflow_dualTVL1.cpp90 cv::Ptr<cv::DualTVL1OpticalFlow> alg = cv::createOptFlow_DualTVL1(); variable
93 alg->setScaleStep(scaleStep);
94 alg->setMedianFiltering(medianFiltering);
99 alg->calc(uFrame0, uFrame1, uFlow);
103 alg->setUseInitialFlow(useInitFlow);
105 alg->calc(uFrame0, uFrame1, uFlow);
/external/opencv3/modules/cudaimgproc/perf/
Dperf_hough.cpp251 cv::Ptr<cv::GeneralizedHoughBallard> alg = cv::cuda::createGeneralizedHoughBallard(); in PERF_TEST_P() local
258 alg->setTemplate(cv::cuda::GpuMat(templ)); in PERF_TEST_P()
260 TEST_CYCLE() alg->detect(d_edges, d_dx, d_dy, positions); in PERF_TEST_P()
266 cv::Ptr<cv::GeneralizedHoughBallard> alg = cv::createGeneralizedHoughBallard(); in PERF_TEST_P() local
270 alg->setTemplate(templ); in PERF_TEST_P()
272 TEST_CYCLE() alg->detect(edges, dx, dy, positions); in PERF_TEST_P()
320 cv::Ptr<cv::GeneralizedHoughGuil> alg = cv::cuda::createGeneralizedHoughGuil(); in PERF_TEST_P() local
321 alg->setMaxAngle(90.0); in PERF_TEST_P()
322 alg->setAngleStep(2.0); in PERF_TEST_P()
329 alg->setTemplate(cv::cuda::GpuMat(templ)); in PERF_TEST_P()
[all …]
/external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/
DMyExemptionMechanismSpi.java101 private String alg; field in MyExemptionMechanismSpi.tmpKey
104 public tmpKey(String alg, byte[] enc) { in tmpKey() argument
105 this.alg = alg; in tmpKey()
114 return alg; in getAlgorithm()
126 public tmp1Key(String alg, byte[] enc) { in tmp1Key() argument
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dplot_dynamics.py76 for alg in v.samples.keys():
78 for series in v.samples[alg].keys():
80 x = [sample[0] for sample in v.samples[alg][series]]
81 y = [sample[1] for sample in v.samples[alg][series]]
85 line = plt.plot(x, y, label=alg, linewidth=4.0)
101 key = alg + flow_id.group(1)
105 elif alg == 'TCP':
110 if alg.startswith('Available'):
/external/boringssl/src/crypto/evp/
Dp_rsa_asn1.c302 static X509_ALGOR *rsa_mgf1_decode(X509_ALGOR *alg) { in rsa_mgf1_decode() argument
306 if (alg == NULL || alg->parameter == NULL || in rsa_mgf1_decode()
307 OBJ_obj2nid(alg->algorithm) != NID_mgf1 || in rsa_mgf1_decode()
308 alg->parameter->type != V_ASN1_SEQUENCE) { in rsa_mgf1_decode()
312 p = alg->parameter->value.sequence->data; in rsa_mgf1_decode()
313 plen = alg->parameter->value.sequence->length; in rsa_mgf1_decode()
317 static RSA_PSS_PARAMS *rsa_pss_decode(const X509_ALGOR *alg, in rsa_pss_decode() argument
325 if (!alg->parameter || alg->parameter->type != V_ASN1_SEQUENCE) { in rsa_pss_decode()
328 p = alg->parameter->value.sequence->data; in rsa_pss_decode()
329 plen = alg->parameter->value.sequence->length; in rsa_pss_decode()
[all …]
/external/opencv3/samples/gpu/
Dgeneralized_hough.cpp87 Ptr<GeneralizedHough> alg; in main() local
99 alg = ballard; in main()
122 alg = guil; in main()
134 alg->setTemplate(d_templ); in main()
138 alg->detect(d_image, d_position); in main()
145 alg->setTemplate(templ); in main()
149 alg->detect(image, position); in main()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/gs/
Dresumable_upload_handler.py371 for alg in self.digesters:
372 self.digesters[alg].update(buf)
447 for alg in self.digesters:
448 self.digesters[alg].update(chunk)
633 (alg, hash_algs[alg]()) for alg in hash_algs or {})
644 (alg, self.digesters[alg].copy())
645 for alg in self.digesters)
655 for alg in self.digesters:
656 key.local_hashes[alg] = self.digesters[alg].digest()
/external/opencv3/modules/cudaimgproc/test/
Dtest_match_template.cpp85 … cv::Ptr<cv::cuda::TemplateMatching> alg = cv::cuda::createTemplateMatching(image.type(), method); in CUDA_TEST_P() local
88 alg->match(loadMat(image), loadMat(templ), dst); in CUDA_TEST_P()
144 … cv::Ptr<cv::cuda::TemplateMatching> alg = cv::cuda::createTemplateMatching(image.type(), method); in CUDA_TEST_P() local
147 alg->match(loadMat(image), loadMat(templ), dst); in CUDA_TEST_P()
198 … cv::Ptr<cv::cuda::TemplateMatching> alg = cv::cuda::createTemplateMatching(image.type(), method); in CUDA_TEST_P() local
201 alg->match(loadMat(image), loadMat(pattern), d_dst); in CUDA_TEST_P()
245 …cv::Ptr<cv::cuda::TemplateMatching> alg = cv::cuda::createTemplateMatching(image.type(), cv::TM_CC… in CUDA_TEST_P() local
248 alg->match(loadMat(image), loadMat(pattern), d_dst); in CUDA_TEST_P()
296 …cv::Ptr<cv::cuda::TemplateMatching> alg = cv::cuda::createTemplateMatching(scene.type(), cv::TM_SQ… in CUDA_TEST_P() local
299 alg->match(loadMat(scene), loadMat(templ), d_result); in CUDA_TEST_P()
[all …]
/external/opencv3/samples/cpp/
Dstereo_match.cpp65 int alg = STEREO_SGBM; in main() local
85 alg = strcmp(_alg, "bm") == 0 ? STEREO_BM : in main()
89 if( alg < 0 ) in main()
158 int color_mode = alg == STEREO_BM ? 0 : -1; in main()
260 sgbm->setMode(alg == STEREO_HH ? StereoSGBM::MODE_HH : StereoSGBM::MODE_SGBM); in main()
268 if( alg == STEREO_BM ) in main()
270 else if( alg == STEREO_SGBM || alg == STEREO_HH ) in main()
276 if( alg != STEREO_VAR ) in main()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-cipher.c18 enum crypto_cipher_alg alg; member
43 struct crypto_cipher * crypto_cipher_init(enum crypto_cipher_alg alg, in crypto_cipher_init() argument
53 ctx->alg = alg; in crypto_cipher_init()
55 switch (alg) { in crypto_cipher_init()
108 switch (ctx->alg) { in crypto_cipher_encrypt()
172 switch (ctx->alg) { in crypto_cipher_decrypt()
232 switch (ctx->alg) { in crypto_cipher_deinit()
Dcrypto_internal.c20 enum crypto_hash_alg alg; member
39 struct crypto_hash * crypto_hash_init(enum crypto_hash_alg alg, const u8 *key, in crypto_hash_init() argument
51 ctx->alg = alg; in crypto_hash_init()
53 switch (alg) { in crypto_hash_init()
148 switch (ctx->alg) { in crypto_hash_update()
192 switch (ctx->alg) { in crypto_hash_finish()
/external/wpa_supplicant_8/src/tls/
Dpkcs5.c25 } alg; member
48 static int pkcs5_is_oid(struct asn1_oid *oid, unsigned long alg) in pkcs5_is_oid() argument
54 oid->oid[6] == alg; in pkcs5_is_oid()
58 static int enc_alg_is_oid(struct asn1_oid *oid, unsigned long alg) in enc_alg_is_oid() argument
63 oid->oid[5] == alg; in enc_alg_is_oid()
67 static int pkcs12_is_pbe_oid(struct asn1_oid *oid, unsigned long alg) in pkcs12_is_pbe_oid() argument
74 oid->oid[7] == alg; in pkcs12_is_pbe_oid()
299 params->alg = pkcs5_get_alg(&oid); in pkcs5_get_params()
300 if (params->alg == PKCS5_ALG_UNKNOWN) { in pkcs5_get_params()
306 if (params->alg == PKCS5_ALG_PBES2) in pkcs5_get_params()
[all …]
/external/boringssl/src/crypto/pkcs8/
Dp5_pbe.c79 int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
121 if (X509_ALGOR_set0(algor, OBJ_nid2obj(alg), V_ASN1_SEQUENCE, pbe_str))
134 X509_ALGOR *PKCS5_pbe_set(int alg, int iter, in PKCS5_pbe_set() argument
145 if (PKCS5_pbe_set0_algor(ret, alg, iter, salt, saltlen)) in PKCS5_pbe_set()
/external/vboot_reference/utility/
Ddev_make_keypair47 local alg=$2
48 local len=$(alg_to_keylen $alg)
63 --algorithm $alg
69 --algorithm $alg
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.c56 int ikev2_integ_hash(int alg, const u8 *key, size_t key_len, const u8 *data, in ikev2_integ_hash() argument
61 switch (alg) { in ikev2_integ_hash()
97 int ikev2_prf_hash(int alg, const u8 *key, size_t key_len, in ikev2_prf_hash() argument
101 switch (alg) { in ikev2_prf_hash()
113 int ikev2_prf_plus(int alg, const u8 *key, size_t key_len, in ikev2_prf_plus() argument
125 prf = ikev2_get_prf(alg); in ikev2_prf_plus()
143 res = ikev2_prf_hash(alg, key, key_len, 2, &addr[1], in ikev2_prf_plus()
146 res = ikev2_prf_hash(alg, key, key_len, 3, addr, len, in ikev2_prf_plus()
175 int ikev2_encr_encrypt(int alg, const u8 *key, size_t key_len, const u8 *iv, in ikev2_encr_encrypt() argument
181 switch (alg) { in ikev2_encr_encrypt()
[all …]
/external/vboot_reference/tests/
Dgen_test_keys.sh39 alg=$((${key_index} * 3 + ${alg_index}))
45 --algorithm ${alg}
51 --algorithm ${alg}

12345678