Home
last modified time | relevance | path

Searched refs:algo (Results 1 – 25 of 1018) sorted by relevance

12345678910>>...41

/aosp_15_r20/external/rust/android-crates-io/crates/petgraph/tests/
Diso.rs11 use petgraph::algo::{
275 assert!(petgraph::algo::is_isomorphic(&peta, &petb)); in petersen_iso()
285 assert!(petgraph::algo::is_isomorphic(&peta, &petb)); in petersen_undir_iso()
293 assert!(petgraph::algo::is_isomorphic(&a, &b)); in full_iso()
302 assert!(!petgraph::algo::is_isomorphic(&a, &b)); in praust_dir_no_iso()
311 assert!(!petgraph::algo::is_isomorphic(&a, &b)); in praust_undir_no_iso()
319 assert!(petgraph::algo::is_isomorphic(&a, &b)); in coxeter_di_iso()
327 assert!(petgraph::algo::is_isomorphic(&a, &b)); in coxeter_undi_iso()
334 assert!(!petgraph::algo::is_isomorphic(&a, &b)); in g14_dir_not_iso()
341 assert!(!petgraph::algo::is_isomorphic(&a, &b)); in g14_undir_not_iso()
[all …]
/aosp_15_r20/external/vboot_reference/firmware/2lib/
H A D2sha_utility.c60 enum vb2_hash_algorithm algo, uint32_t data_size) in vb2_digest_init() argument
64 dc->hash_alg = algo; in vb2_digest_init()
68 vb2_error_t rv = vb2ex_hwcrypto_digest_init(algo, data_size); in vb2_digest_init()
70 VB2_DEBUG(msg, data_size, algo, "enabled\n"); in vb2_digest_init()
75 VB2_DEBUG(msg, data_size, algo, "initialization error"); in vb2_digest_init()
79 VB2_DEBUG(msg, data_size, algo, "unsupported\n"); in vb2_digest_init()
81 VB2_DEBUG(msg, data_size, algo, "forbidden\n"); in vb2_digest_init()
84 switch (algo) { in vb2_digest_init()
93 vb2_sha256_init(&dc->sha256, algo); in vb2_digest_init()
99 vb2_sha512_init(&dc->sha512, algo); in vb2_digest_init()
[all …]
/aosp_15_r20/external/coreboot/util/cbfstool/
H A Dcbfscomptool.c47 const struct typedesc_t *algo; in benchmark() local
48 for (algo = &types_cbfs_compression[0]; algo->name != NULL; algo++) { in benchmark()
50 printf("measuring '%s'\n", algo->name); in benchmark()
51 comp_func_ptr comp = compression_function(algo->type); in benchmark()
85 const struct typedesc_t *algo = &types_cbfs_compression[0]; in compress() local
86 while (algo->name != NULL) { in compress()
87 if (strcasecmp(algo->name, algoname) == 0) break; in compress()
88 algo++; in compress()
90 if (algo->name == NULL) { in compress()
95 comp_func_ptr comp = compression_function(algo->type); in compress()
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/intrusive/example/
Ddoc_list_algorithms.cpp36 typedef boost::intrusive::circular_list_algorithms<my_list_node_traits> algo; in main() typedef
41 algo::init_header(&one); in main()
42 assert(algo::count(&one) == 1); in main()
45 algo::link_before(&one, &two); in main()
46 assert(algo::count(&one) == 2); in main()
49 algo::link_after(&two, &three); in main()
50 assert(algo::count(&one) == 3); in main()
53 algo::unlink(&three); in main()
54 assert(algo::count(&one) == 2); in main()
57 algo::unlink(&two); in main()
[all …]
Ddoc_slist_algorithms.cpp34 typedef boost::intrusive::circular_slist_algorithms<my_slist_node_traits> algo; in main() typedef
39 algo::init_header(&one); in main()
40 assert(algo::count(&one) == 1); in main()
43 algo::link_after(&one, &two); in main()
44 assert(algo::count(&one) == 2); in main()
47 algo::link_after(&one, &three); in main()
48 assert(algo::count(&one) == 3); in main()
51 algo::unlink_after(&one); in main()
52 assert(algo::count(&one) == 2); in main()
55 algo::unlink(&two); in main()
[all …]
Ddoc_splaytree_algorithms.cpp49 typedef boost::intrusive::splaytree_algorithms<my_splaytree_node_traits> algo; in main() typedef
54 algo::init_header(&header); in main()
57 algo::insert_equal_upper_bound(&header, &two, node_ptr_compare()); in main()
60 algo::insert_equal_lower_bound(&header, &three, node_ptr_compare()); in main()
67 n = algo::next_node(n); in main()
71 algo::unlink(&two); in main()
74 algo::erase(&header, &three); in main()
Ddoc_splay_algorithms.cpp50 typedef boost::intrusive::splaytree_algorithms<my_splaytree_node_traits> algo; in main() typedef
55 algo::init_header(&header); in main()
58 algo::insert_equal_upper_bound(&header, &two, node_ptr_compare()); in main()
61 algo::insert_equal_lower_bound(&header, &three, node_ptr_compare()); in main()
68 n = algo::next_node(n); in main()
72 algo::unlink(&two); in main()
75 algo::erase(&header, &three); in main()
/aosp_15_r20/external/iptables/extensions/
H A Dlibxt_string.t2 -m string --algo bm --string "test";-m string --string "test" --algo bm;OK
3 -m string --string "test" --algo kmp;=;OK
4 -m string ! --string "test" --algo kmp;=;OK
5 …xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --algo bm;=;OK
6 …xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --algo bm;;FAIL
7 -m string --hex-string "|0a0a0a0a|" --algo bm;=;OK
8 -m string --algo bm --from 0 --to 65535 --string "test";-m string --string "test" --algo bm;OK
9 -m string --algo wrong;;FAIL
10 -m string --algo bm;;FAIL
/aosp_15_r20/external/trusty/arm-trusted-firmware/drivers/nxp/auth/csf_hdr_parser/
Dcsf_hdr_parser.c56 enum hash_algo algo = SHA256; in deploy_rotpk_hash_table() local
68 ret = hash_init(algo, &ctx); in deploy_rotpk_hash_table()
74 ret = hash_update(algo, ctx, (uint8_t *)((uint8_t *)srk_buffer), in deploy_rotpk_hash_table()
81 ret = hash_final(algo, ctx, hash, digest_size); in deploy_rotpk_hash_table()
109 ret = hash_init(algo, &ctx); in deploy_rotpk_hash_table()
115 ret = hash_update(algo, ctx, srktbl[i].pkey, srktbl[i].key_len); in deploy_rotpk_hash_table()
121 ret = hash_final(algo, ctx, rotpk_hash_table[i], digest_size); in deploy_rotpk_hash_table()
147 enum hash_algo algo = SHA256; in calc_img_hash() local
149 ret = hash_init(algo, &ctx); in calc_img_hash()
156 ret = hash_update(algo, ctx, (uint8_t *)hdr, sizeof(struct csf_hdr)); in calc_img_hash()
[all …]
/aosp_15_r20/external/arm-trusted-firmware/drivers/nxp/auth/csf_hdr_parser/
H A Dcsf_hdr_parser.c56 enum hash_algo algo = SHA256; in deploy_rotpk_hash_table() local
68 ret = hash_init(algo, &ctx); in deploy_rotpk_hash_table()
74 ret = hash_update(algo, ctx, (uint8_t *)((uint8_t *)srk_buffer), in deploy_rotpk_hash_table()
81 ret = hash_final(algo, ctx, hash, digest_size); in deploy_rotpk_hash_table()
109 ret = hash_init(algo, &ctx); in deploy_rotpk_hash_table()
115 ret = hash_update(algo, ctx, srktbl[i].pkey, srktbl[i].key_len); in deploy_rotpk_hash_table()
121 ret = hash_final(algo, ctx, rotpk_hash_table[i], digest_size); in deploy_rotpk_hash_table()
147 enum hash_algo algo = SHA256; in calc_img_hash() local
149 ret = hash_init(algo, &ctx); in calc_img_hash()
156 ret = hash_update(algo, ctx, (uint8_t *)hdr, sizeof(struct csf_hdr)); in calc_img_hash()
[all …]
/aosp_15_r20/external/vboot_reference/host/lib/
H A Dcrypto.c14 unsigned int algo; in lookup_helper() local
18 for (algo = 0; algo < size; algo++) in lookup_helper()
19 if (table[algo] && !strcasecmp(table[algo], str)) in lookup_helper()
23 algo = strtoul(str, &e, 0); in lookup_helper()
27 if (algo >= size || !table[algo]) in lookup_helper()
32 *out = algo; in lookup_helper()
/aosp_15_r20/external/pigweed/pw_kvs/
H A Dchecksum_test.cc32 ChecksumAlgorithm& algo = crc16_algo; in TEST() local
34 algo.Update(kString.data(), kString.size()); in TEST()
35 EXPECT_EQ(OkStatus(), algo.Verify(as_bytes(span(&kStringCrc, 1)))); in TEST()
39 ChecksumCrc16 algo; in TEST() local
40 EXPECT_EQ(Status::DataLoss(), algo.Verify(as_bytes(span(kString.data(), 2)))); in TEST()
44 ChecksumCrc16 algo; in TEST() local
45 EXPECT_EQ(Status::InvalidArgument(), algo.Verify({})); in TEST()
47 algo.Verify(as_bytes(span(kString.substr(0, 1))))); in TEST()
52 ChecksumCrc16 algo; in TEST() local
53 ASSERT_GT(sizeof(crc), algo.size_bytes()); in TEST()
[all …]
/aosp_15_r20/external/cronet/crypto/
H A Dunexportable_key_metrics.cc63 std::string GetHistogramSuffixForAlgo(internal::TPMSupport algo) { in GetHistogramSuffixForAlgo() argument
64 switch (algo) { in GetHistogramSuffixForAlgo()
95 internal::TPMSupport algo, in ReportUmaLatency() argument
101 GetHistogramSuffixForAlgo(algo); in ReportUmaLatency()
106 internal::TPMSupport algo, in ReportUmaOperationSuccess() argument
112 GetHistogramSuffixForAlgo(algo); in ReportUmaOperationSuccess()
117 internal::TPMSupport algo, in ReportUmaTpmOperation() argument
121 ReportUmaOperationSuccess(operation, algo, status, type); in ReportUmaTpmOperation()
125 ReportUmaLatency(operation, algo, latency, type); in ReportUmaTpmOperation()
138 auto algo = virtual_provider->SelectAlgorithm(kAllAlgorithms); in MeasureVirtualTpmOperations() local
[all …]
/aosp_15_r20/external/pytorch/aten/src/ATen/native/mkldnn/xpu/detail/
H A DAttr.h78 PostOpParam(float scale, float alpha, float beta, dnnl::algorithm algo, kind_t kind) in PostOpParam()
79 : scale_(scale), alpha_(alpha), beta_(beta), algo_(algo), kind_(kind) {} in PostOpParam()
87 dnnl::algorithm algo, in PostOpParam()
92 algo_(algo), in PostOpParam()
98 PostOpParam(at::Tensor& binary, float scale, dnnl::algorithm algo, kind_t kind) in PostOpParam()
99 : scale_(scale), binary_(binary), algo_(algo), kind_(kind) {} in PostOpParam()
176 dnnl::algorithm algo) { in append_post_eltwise() argument
178 PostOpParam(scale, alpha, beta, algo, kind_t::eltwise)); in append_post_eltwise()
183 Attr& append_post_binary(dnnl::algorithm algo, const at::Tensor& binary) { in append_post_binary() argument
193 PostOpParam(binary_, md, expected_md, algo, kind_t::binary)); in append_post_binary()
[all …]
/aosp_15_r20/external/trusty/arm-trusted-firmware/drivers/nxp/crypto/caam/src/auth/
Dhash.c42 int hash_init(enum hash_algo algo, void **ctx) in hash_init() argument
47 glbl_ctx.algo = algo; in hash_init()
64 int hash_update(enum hash_algo algo, void *context, void *data_ptr, in hash_update() argument
76 if (ctx->algo != algo) { in hash_update()
111 int hash_final(enum hash_algo algo, void *context, void *hash_ptr, in hash_final() argument
123 if (ctx->algo != algo) { in hash_final()
/aosp_15_r20/external/arm-trusted-firmware/drivers/nxp/crypto/caam/src/auth/
H A Dhash.c42 int hash_init(enum hash_algo algo, void **ctx) in hash_init() argument
47 glbl_ctx.algo = algo; in hash_init()
64 int hash_update(enum hash_algo algo, void *context, void *data_ptr, in hash_update() argument
76 if (ctx->algo != algo) { in hash_update()
111 int hash_final(enum hash_algo algo, void *context, void *hash_ptr, in hash_final() argument
123 if (ctx->algo != algo) { in hash_final()
/aosp_15_r20/frameworks/base/packages/Vcn/framework-b/src/android/net/vcn/util/
H A DMtuUtils.java136 final int algo = encryptionAlgoPair.first; in getMtu() local
138 if (AUTHCRYPT_ALGORITHM_OVERHEAD.containsKey(algo)) { in getMtu()
140 max(maxAuthCryptOverhead, AUTHCRYPT_ALGORITHM_OVERHEAD.get(algo)); in getMtu()
142 } else if (CRYPT_ALGORITHM_OVERHEAD.containsKey(algo)) { in getMtu()
143 maxCryptOverhead = max(maxCryptOverhead, CRYPT_ALGORITHM_OVERHEAD.get(algo)); in getMtu()
147 Slog.wtf(TAG, "Unknown encryption algorithm requested: " + algo); in getMtu()
151 for (int algo : proposal.getIntegrityAlgorithms()) { in getMtu()
152 if (AUTH_ALGORITHM_OVERHEAD.containsKey(algo)) { in getMtu()
153 maxAuthOverhead = max(maxAuthOverhead, AUTH_ALGORITHM_OVERHEAD.get(algo)); in getMtu()
157 Slog.wtf(TAG, "Unknown integrity algorithm requested: " + algo); in getMtu()
/aosp_15_r20/prebuilts/cmake/linux-x86/share/cmake-3.22/Modules/
DExternalData.cmake29 set(ExternalData_URL_TEMPLATES "file:///local/%(algo)/%(hash)"
30 "file:////host/share/%(algo)/%(hash)"
31 "http://data.org/%(algo)/%(hash)")
130 original file is renamed to the form ``.ExternalData_<algo>_<hash>`` to
148 directories that store objects using the layout ``<dir>/%(algo)/%(hash)``.
183 .. variable:: ExternalData_URL_ALGO_<algo>_<key>
188 placeholders of the form ``%(algo:<key>)``, where ``<key>`` is a
190 algorithm ``<algo>``. If not defined, the default URL component
191 is just ``<algo>`` for any ``<key>``.
196 of URL templates using the placeholders ``%(algo)`` and ``%(hash)``
[all …]
/aosp_15_r20/external/coreboot/payloads/external/LinuxBoot/riscv/
H A Dkernel_fdt_lzma.its22 algo = "crc32";
25 algo = "sha1";
28 algo = "sha256";
38 algo = "crc32";
41 algo = "sha1";
44 algo = "sha256";
57 algo = "sha1";
60 algo = "sha256";
/aosp_15_r20/external/coreboot/payloads/external/LinuxBoot/arm64/
H A Dkernel_fdt_lzma.its22 algo = "crc32";
25 algo = "sha1";
28 algo = "sha256";
38 algo = "crc32";
41 algo = "sha1";
44 algo = "sha256";
57 algo = "sha1";
60 algo = "sha256";
/aosp_15_r20/system/security/ondevice-signing/
H A DKeystoreHmacKey.cpp68 KeyParameter algo; in createKey() local
69 algo.tag = Tag::ALGORITHM; in createKey()
70 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::HMAC); in createKey()
71 params.push_back(algo); in createKey()
159 KeyParameter algo; in getVerifyOpParameters() local
160 algo.tag = Tag::ALGORITHM; in getVerifyOpParameters()
161 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::HMAC); in getVerifyOpParameters()
162 opParameters.push_back(algo); in getVerifyOpParameters()
180 KeyParameter algo; in getSignOpParameters() local
181 algo.tag = Tag::ALGORITHM; in getSignOpParameters()
[all …]
/aosp_15_r20/external/pytorch/aten/src/ATen/native/cudnn/
H A DConv_v7.cpp171 cudnnConvolutionFwdAlgo_t algo, in getWorkspaceSize() argument
179 algo, in getWorkspaceSize()
184 cudnnConvolutionBwdDataAlgo_t algo, in getWorkspaceSize() argument
192 algo, in getWorkspaceSize()
197 cudnnConvolutionBwdFilterAlgo_t algo, in getWorkspaceSize() argument
205 algo, in getWorkspaceSize()
212 const algo_t* algo, in getMaxWorkspaceSize() argument
226 err = getWorkspaceSize(args, algo[i], &sz); in getMaxWorkspaceSize()
332 algo_t algo, in getWorkspaceSize()
341 algo, in getWorkspaceSize()
[all …]
/aosp_15_r20/external/vboot_reference/tests/
H A Dvb2_sha256_x86_tests.c80 #define TEST_KNOWN_VALUE(algo, str, value) \ in known_value_tests() argument
81 TEST_EQ(vb2_digest_size(algo), sizeof(value) - 1, \ in known_value_tests()
82 "Known hash size " #algo ": " #str); \ in known_value_tests()
90 algo, test.hash.raw, \ in known_value_tests()
91 vb2_digest_size(algo)), \ in known_value_tests()
92 "Calculate known hash " #algo ": " #str); \ in known_value_tests()
94 "Known hash " #algo ": " #str); \ in known_value_tests()
96 "Overflow known hash " #algo ": " #str); \ in known_value_tests()
/aosp_15_r20/external/coreboot/src/security/vboot/
H A Dtpm_common.c47 enum vb2_hash_algorithm algo = tlcl_get_family() == TPM_1 ? in vboot_extend_pcr() local
53 return tpm_extend_pcr(pcr, algo, buffer, vb2_digest_size(algo), in vboot_extend_pcr()
57 return tpm_extend_pcr(pcr, algo, buffer, vb2_digest_size(algo), in vboot_extend_pcr()
61 return tpm_extend_pcr(pcr, algo, buffer, vb2_digest_size(algo), in vboot_extend_pcr()
/aosp_15_r20/external/vboot_reference/futility/
H A Dcmd_show.c214 const uint32_t bhsize = vb2_digest_size(body_hash->algo); in fw_show_metadata_hash()
223 vb2_get_hash_algorithm_name(body_hash->algo)); in fw_show_metadata_hash()
225 body_hash->algo, in fw_show_metadata_hash()
226 vb2_get_hash_algorithm_name(body_hash->algo)); in fw_show_metadata_hash()
227 if (vb2_digest_size(body_hash->algo)) { in fw_show_metadata_hash()
230 vb2_digest_size(body_hash->algo)); in fw_show_metadata_hash()
236 real_hash.algo == VB2_HASH_INVALID) { in fw_show_metadata_hash()
244 if (body_hash->algo != real_hash.algo || in fw_show_metadata_hash()
245 !vb2_digest_size(body_hash->algo) || in fw_show_metadata_hash()
247 vb2_digest_size(body_hash->algo))) { in fw_show_metadata_hash()
[all …]

12345678910>>...41