Home
last modified time | relevance | path

Searched refs:ctr (Results 1 – 25 of 178) sorted by relevance

12345678

/third_party/openssl/crypto/rand/
Ddrbg_ctr.c23 static void inc_128(RAND_DRBG_CTR *ctr) in inc_128() argument
25 unsigned char *p = &ctr->V[0]; in inc_128()
36 static void ctr_XOR(RAND_DRBG_CTR *ctr, const unsigned char *in, size_t inlen) in ctr_XOR() argument
47 n = inlen < ctr->keylen ? inlen : ctr->keylen; in ctr_XOR()
49 ctr->K[i] ^= in[i]; in ctr_XOR()
50 if (inlen <= ctr->keylen) in ctr_XOR()
53 n = inlen - ctr->keylen; in ctr_XOR()
59 ctr->V[i] ^= in[i + ctr->keylen]; in ctr_XOR()
65 __owur static int ctr_BCC_block(RAND_DRBG_CTR *ctr, unsigned char *out, in ctr_BCC_block() argument
73 if (!EVP_CipherUpdate(ctr->ctx_df, out, &outlen, out, len) in ctr_BCC_block()
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_query_hw_sm.c607 struct nvc0_hw_sm_counter_cfg ctr[8]; member
621 .ctr[0] = _CB(0x0001, B6, 0x02, 0x00000000),
630 .ctr[0] = _CB(0x003f, B6, 0x02, 0x31483104),
639 .ctr[0] = _CA(0x0001, B6, 0x1c, 0x000000004),
648 .ctr[0] = _CA(0x0001, B6, 0x1c, 0x00000000),
657 .ctr[0] = _CA(0x0001, B6, 0x1c, 0x0000000c),
666 .ctr[0] = _CA(0x0001, B6, 0x1c, 0x00000010),
675 .ctr[0] = _CA(0x0001, B6, 0x1b, 0x00000010),
684 .ctr[0] = _CB(0x0001, B6, 0x08, 0x00000010),
693 .ctr[0] = _CB(0x0001, B6, 0x11, 0x00000004),
[all …]
/third_party/grpc/test/core/tsi/alts/frame_protector/
Dalts_counter_test.cc30 static bool do_bytes_represent_client(alts_counter* ctr, in do_bytes_represent_client() argument
32 return (ctr->counter[size - 1] & 0x80) == 0x80; in do_bytes_represent_client()
37 alts_counter* ctr = nullptr; in alts_counter_test_input_sanity_check() local
43 alts_counter_create(true, 0, overflow_size, &ctr, &error_details); in alts_counter_test_input_sanity_check()
50 status = alts_counter_create(true, counter_size, 0, &ctr, &error_details); in alts_counter_test_input_sanity_check()
64 status = alts_counter_create(true, counter_size, overflow_size, &ctr, in alts_counter_test_input_sanity_check()
77 status = alts_counter_increment(ctr, nullptr, &error_details); in alts_counter_test_input_sanity_check()
82 alts_counter_destroy(ctr); in alts_counter_test_input_sanity_check()
88 alts_counter* ctr = nullptr; in alts_counter_test_overflow_full_range() local
91 is_client, counter_size, overflow_size, &ctr, &error_details); in alts_counter_test_overflow_full_range()
[all …]
/third_party/mesa3d/src/freedreno/perfcntrs/
Dfdperf.c192 select_counter(struct counter_group *group, int ctr, int n) in select_counter() argument
195 assert(ctr < group->group->num_counters); in select_counter()
197 group->label[ctr] = group->group->countables[n].name; in select_counter()
198 group->counter[ctr].select_val = n; in select_counter()
221 if (group->group->counters[ctr].enable) { in select_counter()
222 OUT_PKT0(ring, group->group->counters[ctr].enable, 1); in select_counter()
226 if (group->group->counters[ctr].clear) { in select_counter()
227 OUT_PKT0(ring, group->group->counters[ctr].clear, 1); in select_counter()
230 OUT_PKT0(ring, group->group->counters[ctr].clear, 1); in select_counter()
234 OUT_PKT0(ring, group->group->counters[ctr].select_reg, 1); in select_counter()
[all …]
/third_party/boost/libs/compute/example/
Dthreefry_engine.cpp29 uint32_t ctr[20]; in main() local
31 ctr[i*2] = i; in main()
32 ctr[i*2+1] = 0; in main()
34 boost::compute::copy(ctr, ctr+20, vector_ctr.begin(), queue); in main()
36 boost::compute::copy(vector_ctr.begin(), vector_ctr.end(), ctr, queue); in main()
39 std::cout << std::hex << ctr[i*2] << " " << ctr[i*2+1] << std::endl; in main()
/third_party/libjpeg-turbo/
Djidctred.c132 int ctr; variable
141 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) {
143 if (ctr == DCTSIZE - 4)
205 for (ctr = 0; ctr < 4; ctr++) {
206 outptr = output_buf[ctr] + output_col;
289 int ctr; in jpeg_idct_2x2() local
298 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) { in jpeg_idct_2x2()
300 if (ctr == DCTSIZE - 2 || ctr == DCTSIZE - 4 || ctr == DCTSIZE - 6) in jpeg_idct_2x2()
341 for (ctr = 0; ctr < 2; ctr++) { in jpeg_idct_2x2()
342 outptr = output_buf[ctr] + output_col; in jpeg_idct_2x2()
Djidctint.c185 int ctr; variable
196 for (ctr = DCTSIZE; ctr > 0; ctr--) {
303 for (ctr = 0; ctr < DCTSIZE; ctr++) {
304 outptr = output_buf[ctr] + output_col;
438 int ctr; in jpeg_idct_7x7() local
447 for (ctr = 0; ctr < 7; ctr++, inptr++, quantptr++, wsptr++) { in jpeg_idct_7x7()
499 for (ctr = 0; ctr < 7; ctr++) { in jpeg_idct_7x7()
500 outptr = output_buf[ctr] + output_col; in jpeg_idct_7x7()
587 int ctr; in jpeg_idct_6x6() local
596 for (ctr = 0; ctr < 6; ctr++, inptr++, quantptr++, wsptr++) { in jpeg_idct_6x6()
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/
Djidctred.c132 int ctr; variable
141 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) {
143 if (ctr == DCTSIZE - 4)
205 for (ctr = 0; ctr < 4; ctr++) {
206 outptr = output_buf[ctr] + output_col;
289 int ctr; in jpeg_idct_2x2() local
298 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) { in jpeg_idct_2x2()
300 if (ctr == DCTSIZE - 2 || ctr == DCTSIZE - 4 || ctr == DCTSIZE - 6) in jpeg_idct_2x2()
341 for (ctr = 0; ctr < 2; ctr++) { in jpeg_idct_2x2()
342 outptr = output_buf[ctr] + output_col; in jpeg_idct_2x2()
Djidctint.c185 int ctr; variable
196 for (ctr = DCTSIZE; ctr > 0; ctr--) {
303 for (ctr = 0; ctr < DCTSIZE; ctr++) {
304 outptr = output_buf[ctr] + output_col;
438 int ctr; in jpeg_idct_7x7() local
447 for (ctr = 0; ctr < 7; ctr++, inptr++, quantptr++, wsptr++) { in jpeg_idct_7x7()
499 for (ctr = 0; ctr < 7; ctr++) { in jpeg_idct_7x7()
500 outptr = output_buf[ctr] + output_col; in jpeg_idct_7x7()
587 int ctr; in jpeg_idct_6x6() local
596 for (ctr = 0; ctr < 6; ctr++, inptr++, quantptr++, wsptr++) { in jpeg_idct_6x6()
[all …]
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Djidctred.c132 int ctr; variable
141 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) {
143 if (ctr == DCTSIZE - 4)
205 for (ctr = 0; ctr < 4; ctr++) {
206 outptr = output_buf[ctr] + output_col;
289 int ctr; in jpeg_idct_2x2() local
298 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) { in jpeg_idct_2x2()
300 if (ctr == DCTSIZE - 2 || ctr == DCTSIZE - 4 || ctr == DCTSIZE - 6) in jpeg_idct_2x2()
341 for (ctr = 0; ctr < 2; ctr++) { in jpeg_idct_2x2()
342 outptr = output_buf[ctr] + output_col; in jpeg_idct_2x2()
Djidctint.c185 int ctr; variable
196 for (ctr = DCTSIZE; ctr > 0; ctr--) {
303 for (ctr = 0; ctr < DCTSIZE; ctr++) {
304 outptr = output_buf[ctr] + output_col;
438 int ctr; in jpeg_idct_7x7() local
447 for (ctr = 0; ctr < 7; ctr++, inptr++, quantptr++, wsptr++) { in jpeg_idct_7x7()
499 for (ctr = 0; ctr < 7; ctr++) { in jpeg_idct_7x7()
500 outptr = output_buf[ctr] + output_col; in jpeg_idct_7x7()
587 int ctr; in jpeg_idct_6x6() local
596 for (ctr = 0; ctr < 6; ctr++, inptr++, quantptr++, wsptr++) { in jpeg_idct_6x6()
[all …]
/third_party/openssl/ssl/record/
Dssl3_record.c943 size_t bs, mac_size = 0, ctr, padnum, loop; in tls1_enc() local
976 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
977 if (recs[ctr].data != recs[ctr].input) { in tls1_enc()
985 } else if (RAND_bytes(recs[ctr].input, ivlen) <= 0) { in tls1_enc()
1010 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1011 memmove(recs[ctr].data, recs[ctr].input, recs[ctr].length); in tls1_enc()
1012 recs[ctr].input = recs[ctr].data; in tls1_enc()
1030 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1031 reclen[ctr] = recs[ctr].length; in tls1_enc()
1047 memcpy(buf[ctr], dtlsseq, 8); in tls1_enc()
[all …]
/third_party/openssl/crypto/modes/
Dgcm128.c840 unsigned int ctr; local
856 ctr = 1;
899 ctr = BSWAP4(ctx->Xi.d[3]);
901 ctr = GETU32(ctx->Xi.c + 12);
904 ctr = ctx->Xi.d[3];
915 ++ctr;
918 ctx->Yi.d[3] = BSWAP4(ctr);
920 PUTU32(ctx->Yi.c + 12, ctr);
923 ctx->Yi.d[3] = ctr;
995 unsigned int n, ctr, mres; local
[all …]
/third_party/libwebsockets/lib/secure-streams/
Dsecure-streams-serialize.c455 par->ctr = 0; in lws_ss_deserialize_parse()
461 par->ctr = 0; in lws_ss_deserialize_parse()
470 par->ctr = 0; in lws_ss_deserialize_parse()
479 par->ctr = 0; in lws_ss_deserialize_parse()
518 par->ctr = 0; in lws_ss_deserialize_parse()
526 par->ctr = 0; in lws_ss_deserialize_parse()
531 par->ctr = 0; in lws_ss_deserialize_parse()
536 par->ctr = 0; in lws_ss_deserialize_parse()
606 par->ctr = 0; in lws_ss_deserialize_parse()
651 par->rideshare[par->ctr++] = (char)*cp++; in lws_ss_deserialize_parse()
[all …]
/third_party/openssl/crypto/evp/
De_chacha20_poly1305.c217 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; in chacha20_poly1305_tls_cipher() local
223 ctr = buf + CHACHA_BLK_SIZE; in chacha20_poly1305_tls_cipher()
241 ctr = xor128_encrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
243 ctr = xor128_decrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
247 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher()
266 out[i] = ctr[i] ^= in[i]; in chacha20_poly1305_tls_cipher()
271 out[i] = ctr[i] ^ c; in chacha20_poly1305_tls_cipher()
272 ctr[i] = c; in chacha20_poly1305_tls_cipher()
280 memset(ctr + i, 0, tail); in chacha20_poly1305_tls_cipher()
281 ctr += i + tail; in chacha20_poly1305_tls_cipher()
[all …]
/third_party/grpc/test/core/gprpp/
Dmpscq_test.cc37 size_t* ctr; member
40 static test_node* new_node(size_t i, size_t* ctr) { in new_node() argument
43 n->ctr = ctr; in new_node()
62 size_t ctr; member
73 a->q->Push(&new_node(i, &a->ctr)->node); in test_thread()
85 ta[i].ctr = 0; in test_mt()
100 GPR_ASSERT(*tn->ctr == tn->i - 1); in test_mt()
101 *tn->ctr = tn->i; in test_mt()
136 GPR_ASSERT(*tn->ctr == tn->i - 1); in pull_thread()
137 *tn->ctr = tn->i; in pull_thread()
[all …]
/third_party/openssl/crypto/ec/
Decdh_kdf.c28 unsigned char ctr[4]; in ecdh_KDF_X9_63() local
40 ctr[3] = i & 0xFF; in ecdh_KDF_X9_63()
41 ctr[2] = (i >> 8) & 0xFF; in ecdh_KDF_X9_63()
42 ctr[1] = (i >> 16) & 0xFF; in ecdh_KDF_X9_63()
43 ctr[0] = (i >> 24) & 0xFF; in ecdh_KDF_X9_63()
46 if (!EVP_DigestUpdate(mctx, ctr, sizeof(ctr))) in ecdh_KDF_X9_63()
/third_party/openssl/test/
Dtls13encryptiontest.c323 size_t ivlen, ctr; in test_tls13_encryption() local
359 for (ctr = 0; ctr < OSSL_NELEM(refdata); ctr++) { in test_tls13_encryption()
362 if (!load_record(&rec, &refdata[ctr], &key, s->read_iv, ivlen, in test_tls13_encryption()
383 TEST_info("Failed to encrypt record %zu", ctr); in test_tls13_encryption()
386 if (!TEST_true(test_record(&rec, &refdata[ctr], 1))) { in test_tls13_encryption()
387 TEST_info("Record %zu encryption test failed", ctr); in test_tls13_encryption()
393 TEST_info("Failed to decrypt record %zu", ctr); in test_tls13_encryption()
396 if (!TEST_true(test_record(&rec, &refdata[ctr], 0))) { in test_tls13_encryption()
397 TEST_info("Record %zu decryption test failed", ctr); in test_tls13_encryption()
411 TEST_note("PASS: %zu records tested", ctr); in test_tls13_encryption()
/third_party/openssl/crypto/dh/
Ddh_kdf.c57 static unsigned char ctr[4] = { 0xF3, 0x17, 0x22, 0x53 }; in dh_sharedinfo_encode() local
63 ctr_oct.data = ctr; in dh_sharedinfo_encode()
92 if (CRYPTO_memcmp(p, ctr, 4)) in dh_sharedinfo_encode()
107 unsigned char *der = NULL, *ctr; in DH_KDF_X9_42() local
115 derlen = dh_sharedinfo_encode(&der, &ctr, key_oid, outlen, ukm, ukmlen); in DH_KDF_X9_42()
123 ctr[3] = i & 0xFF; in DH_KDF_X9_42()
124 ctr[2] = (i >> 8) & 0xFF; in DH_KDF_X9_42()
125 ctr[1] = (i >> 16) & 0xFF; in DH_KDF_X9_42()
126 ctr[0] = (i >> 24) & 0xFF; in DH_KDF_X9_42()
/third_party/selinux/libselinux/src/
Dis_customizable_type.c16 unsigned int ctr = 0, i; in get_customizable_type_list() local
28 while (fgets_unlocked(buf, selinux_page_size, fp) && ctr < UINT_MAX) { in get_customizable_type_list()
29 ctr++; in get_customizable_type_list()
32 if (ctr) { in get_customizable_type_list()
35 ctr + 1); in get_customizable_type_list()
39 && i < ctr) { in get_customizable_type_list()
/third_party/grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc32 alts_counter* ctr; member
227 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_integrity_only_protect()
228 alts_counter_get_size(rp->ctr), unprotected_vec, unprotected_vec_length, in alts_iovec_record_protocol_integrity_only_protect()
240 return increment_counter(rp->ctr, error_details); in alts_iovec_record_protocol_integrity_only_protect()
280 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_integrity_only_unprotect()
281 alts_counter_get_size(rp->ctr), protected_vec, protected_vec_length, &tag, in alts_iovec_record_protocol_integrity_only_unprotect()
288 return increment_counter(rp->ctr, error_details); in alts_iovec_record_protocol_integrity_only_unprotect()
340 rp->crypter, alts_counter_get_counter(rp->ctr), in alts_iovec_record_protocol_privacy_integrity_protect()
341 alts_counter_get_size(rp->ctr), /* aad_vec = */ nullptr, in alts_iovec_record_protocol_privacy_integrity_protect()
354 return increment_counter(rp->ctr, error_details); in alts_iovec_record_protocol_privacy_integrity_protect()
[all …]
/third_party/ffmpeg/libavcodec/
Djfdctfst.c150 int ctr; variable
155 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) {
214 int ctr; in ff_fdct_ifast() local
221 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { in ff_fdct_ifast()
280 int ctr; in ff_fdct_ifast248() local
287 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { in ff_fdct_ifast248()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_query_hw_sm.c110 struct nv50_hw_sm_counter_cfg ctr[4]; member
195 hsq->ctr[i] = c; in nv50_hw_sm_begin_query()
206 PUSH_DATA (push, (cfg->ctr[i].sig << 24) | (func << 8) in nv50_hw_sm_begin_query()
207 | cfg->ctr[i].unit | cfg->ctr[i].mode); in nv50_hw_sm_begin_query()
294 if (mask & (1 << hsq->ctr[i])) in nv50_hw_sm_end_query()
297 mask |= 1 << hsq->ctr[i]; in nv50_hw_sm_end_query()
298 func = nv50_hw_sm_get_func(hsq->ctr[i]); in nv50_hw_sm_end_query()
300 BEGIN_NV04(push, NV50_CP(MP_PM_CONTROL(hsq->ctr[i])), 1); in nv50_hw_sm_end_query()
301 PUSH_DATA (push, (cfg->ctr[i].sig << 24) | (func << 8) in nv50_hw_sm_end_query()
302 | cfg->ctr[i].unit | cfg->ctr[i].mode); in nv50_hw_sm_end_query()
[all …]
/third_party/grpc/test/core/iomgr/
Dcombiner_test.cc55 size_t ctr; member
61 size_t* ctr; member
67 GPR_ASSERT(*args->ctr == args->value - 1); in check_one()
68 *args->ctr = args->value; in check_one()
79 c->ctr = &args->ctr; in execute_many_loop()
100 ta[i].ctr = 0; in test_execute_many()
/third_party/typescript/tests/cases/fourslash/
DcompletionsRecommended_local.ts18 const cls = (ctr: boolean): FourSlashInterface.ExpectedCompletionEntry => ({
20 text: ctr ? "constructor Cls(): Cls" : "class Cls",
26 const abs = (ctr: boolean): FourSlashInterface.ExpectedCompletionEntry => ({
28 text: ctr ? "constructor Abs(): Abs" : "class Abs",

12345678