/freebsd/tools/regression/ccd/layout/ |
H A D | ccd0.sh | 16 foo 128k 128k 128k 128k 0 0 17 foo 128k 128k 128k 128k 0 4 18 foo 128k 128k 128k 128k 4 0 19 foo 128k 128k 128k 128k 4 2 20 foo 128k 128k 128k 128k 4 4 22 foo 256k 128k 128k 128k 0 0 23 foo 256k 128k 128k 128k 0 4 24 foo 256k 128k 128k 128k 4 0 25 foo 256k 128k 128k 128k 4 2 26 foo 256k 128k 128k 128k 4 4 [all …]
|
/freebsd/sys/libkern/ |
H A D | jenkins_hash.c | 44 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument 150 const uint32_t *k, /* the key, an array of uint32_t values */ in jenkins_hash32() argument 162 a += k[0]; in jenkins_hash32() 163 b += k[1]; in jenkins_hash32() 164 c += k[2]; in jenkins_hash32() 167 k += 3; in jenkins_hash32() 173 case 3 : c+=k[2]; in jenkins_hash32() 174 case 2 : b+=k[1]; in jenkins_hash32() 175 case 1 : a+=k[0]; in jenkins_hash32() 222 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in jenkins_hash() local [all …]
|
/freebsd/crypto/openssl/crypto/camellia/ |
H A D | camellia.c | 286 int Camellia_Ekeygen(int keyBitLength, const u8 *rawKey, KEY_TABLE_TYPE k) in Camellia_Ekeygen() argument 290 k[0] = s0 = GETU32(rawKey); in Camellia_Ekeygen() 291 k[1] = s1 = GETU32(rawKey + 4); in Camellia_Ekeygen() 292 k[2] = s2 = GETU32(rawKey + 8); in Camellia_Ekeygen() 293 k[3] = s3 = GETU32(rawKey + 12); in Camellia_Ekeygen() 296 k[8] = s0 = GETU32(rawKey + 16); in Camellia_Ekeygen() 297 k[9] = s1 = GETU32(rawKey + 20); in Camellia_Ekeygen() 299 k[10] = s2 = ~s0; in Camellia_Ekeygen() 300 k[11] = s3 = ~s1; in Camellia_Ekeygen() 302 k[10] = s2 = GETU32(rawKey + 24); in Camellia_Ekeygen() [all …]
|
/freebsd/contrib/unbound/util/storage/ |
H A D | lookup3.c | 118 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument 233 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword() argument 245 a += k[0]; in hashword() 246 b += k[1]; in hashword() 247 c += k[2]; in hashword() 250 k += 3; in hashword() 256 case 3 : c+=k[2]; in hashword() 259 case 2 : b+=k[1]; in hashword() 262 case 1 : a+=k[0]; in hashword() 285 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword2() argument [all …]
|
/freebsd/sys/contrib/dpdk_rte_lpm/ |
H A D | rte_jhash.h | 39 #define rot(x, k) (((x) << (k)) | ((x) >> (32-(k)))) argument 65 #define BIT_SHIFT(x, y, k) (((x) >> (k)) | ((uint64_t)(y) << (32-(k)))) argument 67 #define BIT_SHIFT(x, y, k) (((uint64_t)(x) << (k)) | ((y) >> (32-(k)))) 89 const uint32_t *k = (const uint32_t *)key; in __rte_jhash_2hashes() local 92 const uint32_t *k = (uint32_t *)((uintptr_t)key & (uintptr_t)~3); in __rte_jhash_2hashes() local 97 a += k[0]; in __rte_jhash_2hashes() 98 b += k[1]; in __rte_jhash_2hashes() 99 c += k[2]; in __rte_jhash_2hashes() 103 k += 3; in __rte_jhash_2hashes() 109 c += k[2]; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes() [all …]
|
/freebsd/bin/ps/ |
H A D | print.c | 94 arguments(KINFO *k, VARENT *ve) in arguments() argument 98 if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL) in arguments() 100 strvis(vis_args, k->ki_args, VIS_TAB | VIS_NL | VIS_NOSLASH); in arguments() 109 command(KINFO *k, VARENT *ve) in command() argument 117 k->ki_d.prefix ? k->ki_d.prefix : "", in command() 118 k->ki_p->ki_comm, in command() 119 (showthreads && k->ki_p->ki_numthreads > 1) ? "/" : "", in command() 120 (showthreads && k->ki_p->ki_numthreads > 1) ? k->ki_p->ki_tdname : "", in command() 121 (showthreads && k->ki_p->ki_numthreads > 1) ? k->ki_p->ki_moretdname : ""); in command() 123 str = strdup(k->ki_p->ki_comm); in command() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | memmem.c | 38 twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in twobyte_memmem() argument 41 for (h+=2, k-=2; k; k--, hw = hw<<8 | *h++) in twobyte_memmem() 47 threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in threebyte_memmem() argument 51 for (h+=3, k-=3; k; k--, hw = (hw|*h++)<<8) in threebyte_memmem() 57 fourbyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in fourbyte_memmem() argument 61 for (h+=4, k-=4; k; k--, hw = hw<<8 | *h++) in fourbyte_memmem() 83 size_t i, ip, jp, k, p, ms, p0, mem, mem0; in twoway_memmem() local 92 ip = -1; jp = 0; k = p = 1; in twoway_memmem() 93 while (jp+k<l) { in twoway_memmem() 94 if (n[ip+k] == n[jp+k]) { in twoway_memmem() [all …]
|
/freebsd/lib/libc/string/ |
H A D | memmem.c | 29 twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in twobyte_memmem() argument 32 for (h += 2, k -= 2; k; k--, hw = hw << 8 | *h++) in twobyte_memmem() 39 threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in threebyte_memmem() argument 43 for (h += 3, k -= 3; k; k--, hw = (hw | *h++) << 8) in threebyte_memmem() 50 fourbyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in fourbyte_memmem() argument 54 for (h += 4, k -= 4; k; k--, hw = hw << 8 | *h++) in fourbyte_memmem() 79 size_t i, ip, jp, k, p, ms, p0, mem, mem0; in twoway_memmem() local 90 k = p = 1; in twoway_memmem() 91 while (jp + k < l) { in twoway_memmem() 92 if (n[ip + k] == n[jp + k]) { in twoway_memmem() [all …]
|
H A D | strstr.c | 76 size_t l, ip, jp, k, p, ms, p0, mem, mem0; in twoway_strstr() local 89 k = p = 1; in twoway_strstr() 90 while (jp + k < l) { in twoway_strstr() 91 if (n[ip + k] == n[jp + k]) { in twoway_strstr() 92 if (k == p) { in twoway_strstr() 94 k = 1; in twoway_strstr() 96 k++; in twoway_strstr() 97 } else if (n[ip + k] > n[jp + k]) { in twoway_strstr() 98 jp += k; in twoway_strstr() 99 k = 1; in twoway_strstr() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/asm-x86_64/aes/ |
H A D | aeskey.c | 81 #define ke4(k, i) \ argument 82 { k[4 * (i) + 4] = ss[0] ^= ls_box(ss[3], 3) ^ t_use(r, c)[i]; \ 83 k[4 * (i) + 5] = ss[1] ^= ss[0]; \ 84 k[4 * (i) + 6] = ss[2] ^= ss[1]; \ 85 k[4 * (i) + 7] = ss[3] ^= ss[2]; \ 115 #define kef6(k, i) \ argument 116 { k[6 * (i) + 6] = ss[0] ^= ls_box(ss[5], 3) ^ t_use(r, c)[i]; \ 117 k[6 * (i) + 7] = ss[1] ^= ss[0]; \ 118 k[6 * (i) + 8] = ss[2] ^= ss[1]; \ 119 k[6 * (i) + 9] = ss[3] ^= ss[2]; \ [all …]
|
/freebsd/crypto/openssl/crypto/chacha/asm/ |
H A D | chacha-ia64.pl | 20 my @k = map("r$_",(16..31)); 46 ADDP @k[11]=4,$key 57 { .mlx; ld4 @k[4]=[$key],8 58 movl @k[0]=0x61707865 } 59 { .mlx; ld4 @k[5]=[@k[11]],8 60 movl @k[1]=0x3320646e };; 61 { .mlx; ld4 @k[6]=[$key],8 62 movl @k[2]=0x79622d32 } 63 { .mlx; ld4 @k[7]=[@k[11]],8 64 movl @k[3]=0x6b206574 };; [all …]
|
/freebsd/sys/net/ |
H A D | bpf_filter.c | 72 #define MINDEX(m, k) \ argument 76 while (k >= len) { \ 77 k -= len; \ 85 static u_int16_t m_xhalf(struct mbuf *m, bpf_u_int32 k, int *err); 86 static u_int32_t m_xword(struct mbuf *m, bpf_u_int32 k, int *err); 89 m_xword(struct mbuf *m, bpf_u_int32 k, int *err) in m_xword() argument 96 while (k >= len) { in m_xword() 97 k -= len; in m_xword() 103 cp = mtod(m, u_char *) + k; in m_xword() 104 if (len - k >= 4) { in m_xword() [all …]
|
/freebsd/contrib/bearssl/src/ec/ |
H A D | ec_c25519_m64.c | 134 unsigned char k; in f255_add() 136 k = _addcarry_u64(0, a[0], b[0], &t0); in f255_add() 137 k = _addcarry_u64(k, a[1], b[1], &t1); in f255_add() 138 k = _addcarry_u64(k, a[2], b[2], &t2); in f255_add() 139 k = _addcarry_u64(k, a[3], b[3], &t3); in f255_add() 140 cc = (k << 1) + (t3 >> 63); in f255_add() 151 k = _addcarry_u64(0, t0, 19 * cc, &d[0]); in f255_add() 152 k = _addcarry_u64(k, t1, 0, &d[1]); in f255_add() 153 k = _addcarry_u64(k, t2, 0, &d[2]); in f255_add() 154 (void)_addcarry_u64(k, t3, 0, &d[3]); in f255_add() [all …]
|
/freebsd/sbin/ipf/ipf/ |
H A D | bpf_filter.c | 112 m_xword(mb_t *m, int k, int *err) in m_xword() argument 118 MINDEX(len, m, k); in m_xword() 119 cp = MTOD(m, u_char *) + k; in m_xword() 120 if (len - k >= 4) { in m_xword() 125 if (m0 == NULL || M_LEN(m0) + len - k < 4) in m_xword() 129 switch (len - k) { in m_xword() 146 m_xhalf(mb_t *m, int k, int *err) in m_xhalf() argument 152 MINDEX(len, m, k); in m_xhalf() 153 cp = MTOD(m, u_char *) + k; in m_xhalf() 154 if (len - k >= 2) { in m_xhalf() [all …]
|
/freebsd/contrib/libpcap/ |
H A D | bpf_filter.c | 96 register bpf_u_int32 k; in pcapint_filter_with_aux_data() local 114 return (u_int)pc->k; in pcapint_filter_with_aux_data() 120 k = pc->k; in pcapint_filter_with_aux_data() 121 if (k > buflen || sizeof(int32_t) > buflen - k) { in pcapint_filter_with_aux_data() 124 A = EXTRACT_LONG(&p[k]); in pcapint_filter_with_aux_data() 128 k = pc->k; in pcapint_filter_with_aux_data() 129 if (k > buflen || sizeof(int16_t) > buflen - k) { in pcapint_filter_with_aux_data() 132 A = EXTRACT_SHORT(&p[k]); in pcapint_filter_with_aux_data() 143 switch (pc->k) { in pcapint_filter_with_aux_data() 159 k = pc->k; in pcapint_filter_with_aux_data() [all …]
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_torus.c | 200 int i, j, k; member 787 unsigned i, j, k, cnt; in parse_torus() local 844 for (k = 0; k < t->z_sz; k++) in parse_torus() 845 t->sw[i][j][k] = NULL; in parse_torus() 867 unsigned i, j, k, n; in parse_port_order() local 887 for (k = 0; k < i; k++) in parse_port_order() 888 if (t->port_order[k] == j) in parse_port_order() 890 if (k >= i) in parse_port_order() 1286 unsigned k, p; in diagnose_fabric() local 1291 for (k = 0; k < f->link_cnt; k++) { in diagnose_fabric() [all …]
|
/freebsd/sys/dev/rtwn/ |
H A D | if_rtwn_cam.c | 110 rtwn_key_alloc(struct ieee80211vap *vap, struct ieee80211_key *k, in rtwn_key_alloc() argument 116 if (ieee80211_is_key_global(vap, k)) { in rtwn_key_alloc() 117 *keyix = ieee80211_crypto_get_key_wepidx(vap, k); in rtwn_key_alloc() 119 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rtwn_key_alloc() 141 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rtwn_key_alloc() 173 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rtwn_key_alloc() 183 rtwn_key_set_cb0(struct rtwn_softc *sc, const struct ieee80211_key *k) in rtwn_key_set_cb0() argument 189 k->wk_keyix < IEEE80211_WEP_NKID) in rtwn_key_set_cb0() 190 keyid = k->wk_keyix; in rtwn_key_set_cb0() 195 switch (k->wk_cipher->ic_cipher) { in rtwn_key_set_cb0() [all …]
|
/freebsd/usr.sbin/sa/tests/ |
H A D | v1-amd64-u.out | 1 0 0.000 cpu 0k mem 0 io accton 2 0 0.172 cpu 41k mem 0 io awk 3 0 0.000 cpu 140k mem 0 io time 4 0 3.031 cpu 45k mem 1 io egrep 5 0 0.000 cpu 0k mem 0 io time 6 0 0.250 cpu 42k mem 1087 io find 7 0 0.000 cpu 0k mem 0 io time 8 0 0.000 cpu 0k mem 0 io sleep 9 0 0.000 cpu 57k mem 0 io time 10 0 0.016 cpu 31k mem 16 io dd [all …]
|
H A D | v1-i386-u.out | 1 0 0.000 cpu 264k mem 0 io accton 2 0 0.453 cpu 41k mem 0 io awk 3 0 0.000 cpu 0k mem 0 io time 4 0 4.984 cpu 41k mem 28 io egrep 5 0 0.000 cpu 140k mem 0 io time 6 0 0.266 cpu 36k mem 3921 io find 7 0 0.000 cpu 0k mem 0 io time 8 0 0.000 cpu 0k mem 0 io sleep 9 0 0.000 cpu 0k mem 0 io time 10 0 0.016 cpu 25k mem 16 io dd [all …]
|
H A D | v2-amd64-u.out | 1 0 0.002 cpu 68k mem 0 io accton 2 0 0.163 cpu 35k mem 0 io awk 3 0 0.003 cpu 0k mem 0 io time 4 0 3.247 cpu 29k mem 26 io egrep 5 0 0.003 cpu 93k mem 0 io time 6 0 0.822 cpu 19k mem 4472 io find 7 0 0.003 cpu 0k mem 0 io time 8 0 0.002 cpu 0k mem 0 io sleep 9 0 0.004 cpu 88k mem 0 io time 10 0 0.076 cpu 18k mem 16 io dd [all …]
|
H A D | v2-i386-u.out | 1 0 0.001 cpu 0k mem 0 io accton 2 0 0.448 cpu 112k mem 0 io awk 3 0 0.001 cpu 0k mem 0 io time 4 0 6.680 cpu 110k mem 0 io egrep 5 0 0.001 cpu 0k mem 0 io time 6 0 0.248 cpu 108k mem 0 io find 7 0 0.001 cpu 0k mem 0 io time 8 0 0.001 cpu 0k mem 0 io sleep 9 0 0.001 cpu 0k mem 0 io time 10 0 0.025 cpu 103k mem 16 io dd [all …]
|
/freebsd/crypto/openssh/regress/ |
H A D | hostkey-agent.sh | 21 for k in $SSH_KEYTYPES ; do 22 ${SSHKEYGEN} -qt $k -f $OBJ/agent-key.$k -N '' || fatal "ssh-keygen $k" 24 -I localhost-with-alias $OBJ/agent-key.$k.pub || \ 25 fatal "sign $k" 26 ${SSHADD} -k $OBJ/agent-key.$k >/dev/null 2>&1 || \ 27 fatal "couldn't load key $OBJ/agent-key.$k" 29 rm $OBJ/agent-key.$k || fatal "couldn't rm $OBJ/agent-key.$k" 35 for k in $SSH_KEYTYPES ; do 36 verbose "key type $k" 38 echo "HostKeyAlgorithms $k" >> $OBJ/sshd_proxy [all …]
|
/freebsd/contrib/ldns/ |
H A D | keys.c | 105 ldns_key_new_frm_fp(ldns_key **k, FILE *fp) in ldns_key_new_frm_fp() argument 107 return ldns_key_new_frm_fp_l(k, fp, NULL); in ldns_key_new_frm_fp() 114 ldns_key *k; in ldns_key_new_frm_engine() local 116 k = ldns_key_new(); in ldns_key_new_frm_engine() 117 if(!k) return LDNS_STATUS_MEM_ERR; in ldns_key_new_frm_engine() 119 k->_key.key = ENGINE_load_private_key(e, key_id, UI_OpenSSL(), NULL); in ldns_key_new_frm_engine() 120 if(!k->_key.key) { in ldns_key_new_frm_engine() 121 ldns_key_free(k); in ldns_key_new_frm_engine() 124 ldns_key_set_algorithm(k, (ldns_signing_algorithm) alg); in ldns_key_new_frm_engine() 125 if (!k->_key.key) { in ldns_key_new_frm_engine() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | jhash.h | 49 const u8 *k = key; in jhash() local 56 a += (k[0] +((u32)k[1]<<8) +((u32)k[2]<<16) +((u32)k[3]<<24)); in jhash() 57 b += (k[4] +((u32)k[5]<<8) +((u32)k[6]<<16) +((u32)k[7]<<24)); in jhash() 58 c += (k[8] +((u32)k[9]<<8) +((u32)k[10]<<16)+((u32)k[11]<<24)); in jhash() 62 k += 12; in jhash() 68 case 11: c += ((u32)k[10]<<24); in jhash() 69 case 10: c += ((u32)k[9]<<16); in jhash() 70 case 9 : c += ((u32)k[8]<<8); in jhash() 71 case 8 : b += ((u32)k[7]<<24); in jhash() 72 case 7 : b += ((u32)k[6]<<16); in jhash() [all …]
|
/freebsd/sys/dev/cxgb/common/ |
H A D | jhash.h | 42 const u8 *k = key; in jhash() local 49 a += (k[0] +((u32)k[1]<<8) +((u32)k[2]<<16) +((u32)k[3]<<24)); in jhash() 50 b += (k[4] +((u32)k[5]<<8) +((u32)k[6]<<16) +((u32)k[7]<<24)); in jhash() 51 c += (k[8] +((u32)k[9]<<8) +((u32)k[10]<<16)+((u32)k[11]<<24)); in jhash() 55 k += 12; in jhash() 61 case 11: c += ((u32)k[10]<<24); in jhash() 62 case 10: c += ((u32)k[9]<<16); in jhash() 63 case 9 : c += ((u32)k[8]<<8); in jhash() 64 case 8 : b += ((u32)k[7]<<24); in jhash() 65 case 7 : b += ((u32)k[6]<<16); in jhash() [all …]
|