/freebsd/contrib/bearssl/src/symcipher/ |
H A D | aes_pwr8_cbcenc.c | 43 long cc; in cbcenc_128() local 51 cc = 0; in cbcenc_128() 57 lxvw4x(32, %[cc], %[sk]) in cbcenc_128() 58 addi(%[cc], %[cc], 16) in cbcenc_128() 59 lxvw4x(33, %[cc], %[sk]) in cbcenc_128() 60 addi(%[cc], %[cc], 16) in cbcenc_128() 61 lxvw4x(34, %[cc], %[sk]) in cbcenc_128() 62 addi(%[cc], %[cc], 16) in cbcenc_128() 63 lxvw4x(35, %[cc], %[sk]) in cbcenc_128() 64 addi(%[cc], %[cc], 16) in cbcenc_128() [all …]
|
/freebsd/contrib/bearssl/src/ssl/ |
H A D | ssl_lru.c | 96 static inline uint32_t get_ ## name(br_ssl_session_cache_lru *cc, uint32_t x) \ 98 return br_dec32be(cc->store + x + (off)); \ 100 static inline void set_ ## name(br_ssl_session_cache_lru *cc, \ 103 br_enc32be(cc->store + x + (off), val); \ 126 mask_id(br_ssl_session_cache_lru *cc, in GETSET() 133 br_hmac_key_init(&hkc, cc->hash, cc->index_key, sizeof cc->index_key); in GETSET() 148 find_node(br_ssl_session_cache_lru *cc, const unsigned char *id, in find_node() argument 153 x = cc->root; in find_node() 158 r = memcmp(id, cc->store + x + SESSION_ID_OFF, SESSION_ID_LEN); in find_node() 161 x = get_left(cc, x); in find_node() [all …]
|
H A D | ssl_engine.c | 469 rng_init(br_ssl_engine_context *cc) in rng_init() argument 473 if (cc->rng_init_done != 0) { in rng_init() 489 h = br_multihash_getimpl(&cc->mhash, br_sha256_ID); in rng_init() 491 h = br_multihash_getimpl(&cc->mhash, br_sha384_ID); in rng_init() 493 h = br_multihash_getimpl(&cc->mhash, in rng_init() 496 br_ssl_engine_fail(cc, BR_ERR_BAD_STATE); in rng_init() 501 br_hmac_drbg_init(&cc->rng, h, NULL, 0); in rng_init() 502 cc->rng_init_done = 1; in rng_init() 508 br_ssl_engine_init_rand(br_ssl_engine_context *cc) in br_ssl_engine_init_rand() argument 510 if (!rng_init(cc)) { in br_ssl_engine_init_rand() [all …]
|
H A D | ssl_rec_gcm.c | 33 gen_gcm_init(br_sslrec_gcm_context *cc, in gen_gcm_init() argument 41 cc->seq = 0; in gen_gcm_init() 42 bc_impl->init(&cc->bc.vtable, key, key_len); in gen_gcm_init() 43 cc->gh = gh_impl; in gen_gcm_init() 44 memcpy(cc->iv, iv, sizeof cc->iv); in gen_gcm_init() 45 memset(cc->h, 0, sizeof cc->h); in gen_gcm_init() 47 bc_impl->run(&cc->bc.vtable, tmp, 0, cc->h, sizeof cc->h); in gen_gcm_init() 51 in_gcm_init(br_sslrec_gcm_context *cc, in in_gcm_init() argument 57 cc->vtable.in = &br_sslrec_in_gcm_vtable; in in_gcm_init() 58 gen_gcm_init(cc, bc_impl, key, key_len, gh_impl, iv); in in_gcm_init() [all …]
|
H A D | ssl_rec_cbc.c | 28 in_cbc_init(br_sslrec_in_cbc_context *cc, in in_cbc_init() argument 35 cc->vtable = &br_sslrec_in_cbc_vtable; in in_cbc_init() 36 cc->seq = 0; in in_cbc_init() 37 bc_impl->init(&cc->bc.vtable, bc_key, bc_key_len); in in_cbc_init() 38 br_hmac_key_init(&cc->mac, dig_impl, mac_key, mac_key_len); in in_cbc_init() 39 cc->mac_len = mac_out_len; in in_cbc_init() 41 memset(cc->iv, 0, sizeof cc->iv); in in_cbc_init() 42 cc->explicit_IV = 1; in in_cbc_init() 44 memcpy(cc->iv, iv, bc_impl->block_size); in in_cbc_init() 45 cc->explicit_IV = 0; in in_cbc_init() [all …]
|
H A D | ssl_rec_chapol.c | 28 gen_chapol_init(br_sslrec_chapol_context *cc, in gen_chapol_init() argument 32 cc->seq = 0; in gen_chapol_init() 33 cc->ichacha = ichacha; in gen_chapol_init() 34 cc->ipoly = ipoly; in gen_chapol_init() 35 memcpy(cc->key, key, sizeof cc->key); in gen_chapol_init() 36 memcpy(cc->iv, iv, sizeof cc->iv); in gen_chapol_init() 40 gen_chapol_process(br_sslrec_chapol_context *cc, in gen_chapol_process() argument 49 seq = cc->seq ++; in gen_chapol_process() 54 memcpy(nonce, cc->iv, 12); in gen_chapol_process() 59 cc->ipoly(cc->key, nonce, data, len, header, sizeof header, in gen_chapol_process() [all …]
|
H A D | ssl_rec_ccm.c | 33 gen_ccm_init(br_sslrec_ccm_context *cc, in gen_ccm_init() argument 38 cc->seq = 0; in gen_ccm_init() 39 bc_impl->init(&cc->bc.vtable, key, key_len); in gen_ccm_init() 40 memcpy(cc->iv, iv, sizeof cc->iv); in gen_ccm_init() 41 cc->tag_len = tag_len; in gen_ccm_init() 45 in_ccm_init(br_sslrec_ccm_context *cc, in in_ccm_init() argument 50 cc->vtable.in = &br_sslrec_in_ccm_vtable; in in_ccm_init() 51 gen_ccm_init(cc, bc_impl, key, key_len, iv, tag_len); in in_ccm_init() 55 ccm_check_length(const br_sslrec_ccm_context *cc, size_t rlen) in ccm_check_length() argument 63 over = 8 + cc->tag_len; in ccm_check_length() [all …]
|
/freebsd/sys/opencrypto/ |
H A D | criov.c | 300 crypto_cursor_init(struct crypto_buffer_cursor *cc, in crypto_cursor_init() argument 303 memset(cc, 0, sizeof(*cc)); in crypto_cursor_init() 304 cc->cc_type = cb->cb_type; in crypto_cursor_init() 305 switch (cc->cc_type) { in crypto_cursor_init() 307 cc->cc_buf = cb->cb_buf; in crypto_cursor_init() 308 cc->cc_buf_len = cb->cb_buf_len; in crypto_cursor_init() 312 cc->cc_mbuf = cb->cb_mbuf; in crypto_cursor_init() 315 cc->cc_vmpage = cb->cb_vm_page; in crypto_cursor_init() 316 cc->cc_buf_len = cb->cb_vm_page_len; in crypto_cursor_init() 317 cc->cc_offset = cb->cb_vm_page_offset; in crypto_cursor_init() [all …]
|
/freebsd/sbin/ipf/ipsend/ |
H A D | Makefile | 21 #CC=gcc 61 $(CC) $(CFLAGS) $(LINUXK) -c $< -o $@ 67 make ipsend "OBJS=$(OBJS)" "UNIXOBJS=$(BPF) $(SUNOS4)" "CC=$(CC)" \ 69 make ipresend "ROBJS=$(ROBJS)" "UNIXOBJS=$(BPF) $(SUNOS4)" "CC=$(CC)" \ 71 make iptest "TOBJS=$(TOBJS)" "UNIXOBJS=$(BPF) $(SUNOS4)" "CC=$(CC)" \ 75 make ipsend "OBJS=$(OBJS)" "UNIXOBJS=$(NIT) $(SUNOS4)" "CC=$(CC)" \ 77 make ipresend "ROBJS=$(ROBJS)" "UNIXOBJS=$(NIT) $(SUNOS4)" "CC=$(CC)" \ 79 make iptest "TOBJS=$(TOBJS)" "UNIXOBJS=$(NIT) $(SUNOS4)" "CC=$(CC)" \ 83 make ipsend "OBJS=$(OBJS)" "UNIXOBJS=$(SUNOS5)" "CC=$(CC)" \ 86 make ipresend "ROBJS=$(ROBJS)" "UNIXOBJS=$(SUNOS5)" "CC=$(CC)" \ [all …]
|
/freebsd/sys/kern/ |
H A D | kern_timeout.c | 179 #define cc_exec_curr(cc, dir) cc->cc_exec_entity[dir].cc_curr argument 180 #define cc_exec_last_func(cc, dir) cc->cc_exec_entity[dir].cc_last_func argument 181 #define cc_exec_last_arg(cc, dir) cc->cc_exec_entity[dir].cc_last_arg argument 182 #define cc_exec_next(cc) cc->cc_next argument 183 #define cc_exec_cancel(cc, dir) cc->cc_exec_entity[dir].cc_cancel argument 184 #define cc_exec_waiting(cc, dir) cc->cc_exec_entity[dir].cc_waiting argument 186 #define cc_migration_func(cc, dir) cc->cc_exec_entity[dir].ce_migration_func argument 187 #define cc_migration_arg(cc, dir) cc->cc_exec_entity[dir].ce_migration_arg argument 188 #define cc_migration_cpu(cc, dir) cc->cc_exec_entity[dir].ce_migration_cpu argument 189 #define cc_migration_time(cc, dir) cc->cc_exec_entity[dir].ce_migration_time argument [all …]
|
/freebsd/crypto/openssh/ |
H A D | cipher.c | 197 cipher_ctx_is_plaintext(struct sshcipher_ctx *cc) in cipher_ctx_is_plaintext() argument 199 return cc->plaintext; in cipher_ctx_is_plaintext() 237 cipher_warning_message(const struct sshcipher_ctx *cc) in cipher_warning_message() argument 239 if (cc == NULL || cc->cipher == NULL) in cipher_warning_message() 250 struct sshcipher_ctx *cc = NULL; in cipher_init() local 258 if ((cc = calloc(sizeof(*cc), 1)) == NULL) in cipher_init() 261 cc->plaintext = (cipher->flags & CFLAG_NONE) != 0; in cipher_init() 262 cc->encrypt = do_encrypt; in cipher_init() 270 cc->cipher = cipher; in cipher_init() 271 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) { in cipher_init() [all …]
|
/freebsd/contrib/bearssl/mk/ |
H A D | Rules.mk | 379 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Psettings$O src$Psettings.c 382 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Pccm$O src$Paead$Pccm.c 385 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Peax$O src$Paead$Peax.c 388 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Pgcm$O src$Paead$Pgcm.c 391 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Pccopy$O src$Pcodec$Pccopy.c 394 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Pdec16be$O src$Pcodec$Pdec16be.c 397 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Pdec16le$O src$Pcodec$Pdec16le.c 400 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Pdec32be$O src$Pcodec$Pdec32be.c 403 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Pdec32le$O src$Pcodec$Pdec32le.c 406 $(CC) $(CFLAGS) $(INCFLAGS) $(CCOUT)$(OBJDIR)$Pdec64be$O src$Pcodec$Pdec64be.c [all …]
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | BUILD.bazel | 45 "gtest-*.cc", 46 "googletest-*.cc", 51 "gtest-unittest-api_test.cc", 52 "googletest/src/gtest-all.cc", 53 "gtest_all_test.cc", 54 "gtest-death-test_ex_test.cc", 55 "gtest-listener_test.cc", 56 "gtest-unittest-api_test.cc", 57 "googletest-param-test-test.cc", 58 "googletest-param-test2-test.cc", [all …]
|
H A D | googletest-output-test-golden-lin.txt | 3 googletest-output-test_.cc:#: Failure 9 googletest-output-test_.cc:#: Failure 41 googletest-output-test_.cc:#: Failure 49 googletest-output-test_.cc:#: Failure 59 googletest-output-test_.cc:#: Failure 75 googletest-output-test_.cc:#: Failure 85 googletest-output-test_.cc:#: Failure 95 googletest-output-test_.cc:#: Failure 107 googletest-output-test_.cc:#: Failure 113 googletest-output-test_.cc:#: Failure [all …]
|
H A D | gtest_list_output_unittest.py | 51 <testcase name="Test1" file=".*gtest_list_output_unittest_.cc" line="43" /> 52 <testcase name="Test2" file=".*gtest_list_output_unittest_.cc" line="45" /> 55 <testcase name="Test3" file=".*gtest_list_output_unittest_.cc" line="48" /> 56 <testcase name="Test4" file=".*gtest_list_output_unittest_.cc" line="49" /> 59 <testcase name="Test7" type_param="int" file=".*gtest_list_output_unittest_.cc" line="60" /> 60 <testcase name="Test8" type_param="int" file=".*gtest_list_output_unittest_.cc" line="61" /> 63 <testcase name="Test7" type_param="bool" file=".*gtest_list_output_unittest_.cc" line="60" /> 64 <testcase name="Test8" type_param="bool" file=".*gtest_list_output_unittest_.cc" line="61" /> 67 <testcase name="Test9" type_param="int" file=".*gtest_list_output_unittest_.cc" line="66" /> 68 <testcase name="Test10" type_param="int" file=".*gtest_list_output_unittest_.cc" line="67" /> [all …]
|
/freebsd/contrib/bearssl/src/hash/ |
H A D | md5sha1.c | 29 br_md5sha1_init(br_md5sha1_context *cc) in br_md5sha1_init() argument 31 cc->vtable = &br_md5sha1_vtable; in br_md5sha1_init() 32 memcpy(cc->val_md5, br_md5_IV, sizeof cc->val_md5); in br_md5sha1_init() 33 memcpy(cc->val_sha1, br_sha1_IV, sizeof cc->val_sha1); in br_md5sha1_init() 34 cc->count = 0; in br_md5sha1_init() 39 br_md5sha1_update(br_md5sha1_context *cc, const void *data, size_t len) in br_md5sha1_update() argument 45 ptr = (size_t)cc->count & 63; in br_md5sha1_update() 53 memcpy(cc->buf + ptr, buf, clen); in br_md5sha1_update() 57 cc->count += (uint64_t)clen; in br_md5sha1_update() 59 br_md5_round(cc->buf, cc->val_md5); in br_md5sha1_update() [all …]
|
/freebsd/contrib/libdiff/lib/ |
H A D | diff_output_unidiff.c | 46 diff_chunk_context_empty(const struct diff_chunk_context *cc) in diff_chunk_context_empty() argument 48 return diff_range_empty(&cc->chunk); in diff_chunk_context_empty() 104 diff_chunk_context_get(struct diff_chunk_context *cc, const struct diff_result *r, in diff_chunk_context_get() argument 113 *cc = (struct diff_chunk_context){ in diff_chunk_context_get() 130 diff_chunk_contexts_touch(const struct diff_chunk_context *cc, in diff_chunk_contexts_touch() argument 133 return diff_ranges_touch(&cc->chunk, &other->chunk) in diff_chunk_contexts_touch() 134 || diff_ranges_touch(&cc->left, &other->left) in diff_chunk_contexts_touch() 135 || diff_ranges_touch(&cc->right, &other->right); in diff_chunk_contexts_touch() 139 diff_chunk_contexts_merge(struct diff_chunk_context *cc, in diff_chunk_contexts_merge() argument 142 diff_ranges_merge(&cc->chunk, &other->chunk); in diff_chunk_contexts_merge() [all …]
|
/freebsd/contrib/bearssl/samples/ |
H A D | custom_profile.c | 47 example_client_profile(br_ssl_client_context *cc in example_client_profile() argument 99 br_ssl_client_zero(cc); in example_client_profile() 108 br_ssl_engine_set_versions(&cc->eng, BR_TLS10, BR_TLS12); in example_client_profile() 122 br_ssl_engine_set_prf10(&cc->eng, &br_tls10_prf); in example_client_profile() 123 br_ssl_engine_set_prf_sha256(&cc->eng, &br_tls12_sha256_prf); in example_client_profile() 124 br_ssl_engine_set_prf_sha384(&cc->eng, &br_tls12_sha384_prf); in example_client_profile() 152 br_ssl_engine_set_hash(&cc->eng, br_md5_ID, &br_md5_vtable); in example_client_profile() 153 br_ssl_engine_set_hash(&cc->eng, br_sha1_ID, &br_sha1_vtable); in example_client_profile() 154 br_ssl_engine_set_hash(&cc->eng, br_sha224_ID, &br_sha224_vtable); in example_client_profile() 155 br_ssl_engine_set_hash(&cc->eng, br_sha256_ID, &br_sha256_vtable); in example_client_profile() [all …]
|
/freebsd/contrib/bearssl/T0/ |
H A D | kern.t0 | 151 add-cc: co { T0_CO(); } 152 add-cc: execute { T0_ENTER(ip, rp, T0_POP()); } 153 add-cc: drop { (void)T0_POP(); } 154 add-cc: dup { T0_PUSH(T0_PEEK(0)); } 155 add-cc: swap { T0_SWAP(); } 156 add-cc: over { T0_PUSH(T0_PEEK(1)); } 157 add-cc: rot { T0_ROT(); } 158 add-cc: -rot { T0_NROT(); } 159 add-cc: roll { T0_ROLL(T0_POP()); } 160 add-cc: pick { T0_PICK(T0_POP()); } [all …]
|
/freebsd/tests/sys/capsicum/ |
H A D | Makefile | 22 capsicum-test-main.cc \ 23 capsicum-test.cc \ 24 capability-fd.cc \ 25 copy_file_range.cc \ 26 fexecve.cc \ 27 procdesc.cc \ 28 capmode.cc \ 29 fcntl.cc \ 30 ioctl.cc \ 31 openat.cc \ [all …]
|
/freebsd/sys/contrib/openzfs/config/ |
H A D | always-compiler-options.m4 | 2 dnl # Enabled -fsanitize=address if supported by $CC. 23 AC_MSG_CHECKING([whether $CC supports -fsanitize=address]) 34 AC_MSG_ERROR([$CC does not support -fsanitize=address]) 49 dnl # Enabled -fsanitize=undefined if supported by cc. 70 AC_MSG_CHECKING([whether $CC supports -fsanitize=undefined]) 81 AC_MSG_ERROR([$CC does not support -fsanitize=undefined]) 96 dnl # Check if cc supports -Wframe-larger-than=<size> option. 99 AC_MSG_CHECKING([whether $CC supports -Wframe-larger-than=<size>]) 117 dnl # Check if cc supports -Wno-format-truncation option. 120 AC_MSG_CHECKING([whether $CC supports -Wno-format-truncation]) [all …]
|
/freebsd/contrib/tcsh/ |
H A D | Ported | 12 COMPILER: cc, gcc, acc 18 NOTES : Don't compile with /usr/5bin/cc 23 COMPILER: cc, gcc 39 COMPILER: WorkShop cc 50 COMPILER: Sun Studio cc 61 COMPILER: cc, gcc 83 COMPILER: cc 94 COMPILER: cc, gcc 107 COMPILER: cc, c89, gcc 108 CFLAGS : +O3 -Aa (cc), +O3 (c89), normal (gcc) [all …]
|
/freebsd/contrib/tzdata/ |
H A D | checktab.awk | 33 cc = $1 35 if (cc !~ /^[A-Z][A-Z]$/) { 37 iso_table, iso_NR, cc >>"/dev/stderr" 40 if (cc <= cc0) { 41 if (cc == cc0) { 48 iso_table, iso_NR, cc, s \ 52 cc0 = cc 55 iso_table, iso_NR, name2cc[name], cc \ 59 name2cc[name] = cc 60 cc2name[cc] [all...] |
/freebsd/sys/contrib/device-tree/scripts/ |
H A D | Kbuild.include | 70 # cc-cross-prefix 71 # Usage: CROSS_COMPILE := $(call cc-cross-prefix, m68k-linux-gnu- m68k-linux-) 72 # Return first prefix where a prefix$(CC) is found in PATH. 73 # If no $(CC) found in PATH with listed prefixes return nothing 74 cc-cross-prefix = \ 77 if (which $(strip $(c))$(CC)) > /dev/null 2>&1 ; then \ 85 # Usage: option = $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise) 101 $(CC) $(KBUILD_CFLAGS) $(1) -c -x assembler /dev/null -o "$$TMP",$(1),$(2)) 107 printf "%b\n" "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -x assembler -o "$$TMP" -,$(2),$(3)) 109 # cc-option [all …]
|
/freebsd/targets/pseudo/gcc/ |
H A D | Makefile.depend | 4 gnu/usr.bin/cc/cc_tools \ 5 gnu/usr.bin/cc/libiberty \ 6 gnu/usr.bin/cc/libcpp \ 7 gnu/usr.bin/cc/libdecnumber \ 8 gnu/usr.bin/cc/cc_int \ 9 gnu/usr.bin/cc/cc \ 10 gnu/usr.bin/cc/cc1 \ 11 gnu/usr.bin/cc/include \ 12 gnu/usr.bin/cc/cpp \ 13 gnu/usr.bin/cc/cc1plus \ [all …]
|