/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | hash.h | 77 uint32_t h1 = seed; in hash_x86_32() local 94 h1 ^= k1; in hash_x86_32() 95 h1 = hash_rotl_32(h1, 13); in hash_x86_32() 96 h1 = h1*5 + 0xe6546b64; in hash_x86_32() 110 k1 *= c2; h1 ^= k1; in hash_x86_32() 115 h1 ^= len; in hash_x86_32() 117 h1 = hash_fmix_32(h1); in hash_x86_32() 119 return h1; in hash_x86_32() 128 uint32_t h1 = seed; in hash_x86_128() local 149 k1 *= c1; k1 = hash_rotl_32(k1, 15); k1 *= c2; h1 ^= k1; in hash_x86_128() [all …]
|
/freebsd/crypto/openssl/crypto/poly1305/asm/ |
H A D | poly1305-armv8.pl | 55 my ($h0,$h1,$h2,$r0,$r1,$s1,$t0,$t1,$d0,$d1,$d2) = map("x$_",(4..14)); 129 ldp $h0,$h1,[$ctx] // load hash value 144 adcs $h1,$h1,$t1 150 mul $t0,$h1,$s1 // h1*5*r1 151 umulh $t1,$h1,$s1 159 mul $t0,$h1,$r0 // h1*r0 161 umulh $t1,$h1,$r0 175 adcs $h1,$d1,xzr 180 stp $h0,$h1,[$ctx] // store hash value 194 ldp $h0,$h1,[$ctx] // load hash base 2^64 [all …]
|
H A D | poly1305-ppc.pl | 103 my ($h0,$h1,$h2,$d0,$d1,$d2, $r0,$r1,$s1, $t0,$t1) = map("r$_",(7..12,27..31)); 127 li $h1,12 129 lwbrx $h1,$h1,$inp 131 insrdi $d1,$h1,32,0 134 lis $h1,0xfff # 0x0fff0000 135 ori $h1,$h1,0xfffc # 0x0ffffffc 136 insrdi $h1,$h1,32,0 # 0x0ffffffc0ffffffc 137 ori $h0,$h1,3 # 0x0ffffffc0fffffff 140 and $d1,$d1,$h1 172 ld $h1,8($ctx) [all …]
|
H A D | poly1305-sparcv9.pl | 51 my ($h0,$h1,$h2,$h3, $t0,$t1,$t2) = map("%o$_",(0..5,7)); 102 set 8,$h1 111 ldxa [$inp+$h1]0x88,$h1 115 sllx $h1,$shl,$t2 116 srlx $h1,$shr,$h1 119 or $h2,$h1,$h1 123 and $t1,$h1,$h1 125 stx $h1,[$ctx+32+8] 161 ld [$ctx+0],$h1 ! load hash value 198 addccc $t0,$h1,$h1 [all …]
|
H A D | poly1305-armv4.pl | 177 my ($h0,$h1,$h2,$h3,$h4,$r0,$r1,$r2,$r3)=map("r$_",(4..12)); 229 adcs $h1,$h1,r3 263 adcs $h1,$h1,r1 271 umull r2,r3,$h1,$r0 278 umlal r0,r1,$h1,$s3 288 str r2,[sp,#4] @ future $h1 297 umlal r0,r1,$h1,$r1 298 umlal r2,r3,$h1,$r2 303 ldr $h1,[sp,#4] 317 adcs $h1,$h1,#0 [all …]
|
H A D | poly1305-mips.pl | 174 my ($h0,$h1,$h2,$r0,$r1,$s1,$d0,$d1,$d2) = 210 ld $h1,8($ctx) 272 daddu $h1,$in1 274 sltu $tmp1,$h1,$in1 275 daddu $h1,$tmp0 279 sltu $tmp0,$h1,$tmp0 283 dmultu ($s1,$h1) # h1*5*r1 286 mflo ($tmp0,$s1,$h1) 287 mfhi ($tmp1,$s1,$h1) 297 dmultu ($r0,$h1) # h1*r0 [all …]
|
H A D | poly1305-s390x.pl | 128 my ($d0hi,$d0lo,$d1hi,$d1lo,$t0,$h0,$t1,$h1,$h2) = map("%r$_",(6..14)); 142 lg ($h1,"8($ctx)"); 168 alcgr ($d1lo,$h1); 173 lgr ($h1,$d1lo); 184 algr ($h1,$h0); 190 algr ($h1,$d1lo); 193 algr ($h1,$d0hi); 204 alcgr ($h1,$d1hi); # $d1hi is still zero 212 stg ($h1,"8($ctx)"); 233 my ($d2,$d0,$h0,$d1,$h1,$h2)=map("%r$_",(9..14)); [all …]
|
H A D | poly1305-ppcfp.pl | 552 my ($h0,$h1,$h2,$h3,$h4, $d0,$d1,$d2,$d3 572 lwz $h1,`8*1+(4^$LITTLE_ENDIAN)`($ctx) 593 adde $h1,$h1,$d0 599 addze $d1,$h1 610 andc $h1,$h1,$mask 616 or $h1,$h1,$d1 626 adde $h1,$h1,$d1 633 add $h1,$h1,$d0 638 add $h1,$h1,$d0 639 srdi $d1,$h1,32 [all …]
|
H A D | poly1305-ia64.S | 107 h0=r17; h1=r18; h2=r19; 129 ld8 h1=[r9],16 189 add h1=h1,i1 193 cmp.ltu p7,p0=h1,i1 };; 194 { .mmi; (p6) add h1=1,h1;; 195 setf.sig HF1=h1 196 (p6) cmp.eq.or p7,p0=0,h1 };; 234 { .mmi; add h1=r26,r28 238 cmp.ltu p7,p0=h1,r28 243 { .mmi; add h1=h1,r23;; [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/ |
H A D | poly1305_donna64.h | 69 unsigned long long h0, h1, h2; in poly1305_blocks() local 78 h1 = st->h[1]; in poly1305_blocks() 92 h1 += (((t0 >> 44) | (t1 << 20)) & 0xfffffffffff); in poly1305_blocks() 97 MUL(d, h1, s2); in poly1305_blocks() 102 MUL(d, h1, r0); in poly1305_blocks() 107 MUL(d, h1, r1); in poly1305_blocks() 117 h1 = LO(d1) & 0xfffffffffff; in poly1305_blocks() 124 h1 += c; in poly1305_blocks() 131 st->h[1] = h1; in poly1305_blocks() 138 unsigned long long h0, h1, h2, c; in poly1305_finish() local [all …]
|
H A D | poly1305_donna32.h | 62 unsigned long h0, h1, h2, h3, h4; in poly1305_blocks() local 78 h1 = st->h[1]; in poly1305_blocks() 86 h1 += (LOAD32_LE(m + 3) >> 2) & 0x3ffffff; in poly1305_blocks() 92 d0 = ((unsigned long long) h0 * r0) + ((unsigned long long) h1 * s4) + in poly1305_blocks() 95 d1 = ((unsigned long long) h0 * r1) + ((unsigned long long) h1 * r0) + in poly1305_blocks() 98 d2 = ((unsigned long long) h0 * r2) + ((unsigned long long) h1 * r1) + in poly1305_blocks() 101 d3 = ((unsigned long long) h0 * r3) + ((unsigned long long) h1 * r2) + in poly1305_blocks() 104 d4 = ((unsigned long long) h0 * r4) + ((unsigned long long) h1 * r3) + in poly1305_blocks() 113 h1 = (unsigned long) d1 & 0x3ffffff; in poly1305_blocks() 126 h1 += c; in poly1305_blocks() [all …]
|
/freebsd/sys/contrib/ck/src/ |
H A D | ck_ht_hash.h | 125 uint32_t h1 = seed; in MurmurHash3_x86_32() local 143 h1 ^= k1; in MurmurHash3_x86_32() 144 h1 = ROTL32(h1,13); in MurmurHash3_x86_32() 145 h1 = h1*5+0xe6546b64; in MurmurHash3_x86_32() 162 k1 *= c1; k1 = ROTL32(k1,15); k1 *= c2; h1 ^= k1; in MurmurHash3_x86_32() 168 h1 ^= len; in MurmurHash3_x86_32() 170 h1 = fmix(h1); in MurmurHash3_x86_32() 172 *(uint32_t *)out = h1; in MurmurHash3_x86_32() 239 uint32_t h1 = (uint32_t)(seed) ^ len; in MurmurHash64B() local 248 h1 *= m; h1 ^= k1; in MurmurHash64B() [all …]
|
/freebsd/crypto/openssl/crypto/poly1305/ |
H A D | poly1305_base2_44.c | 87 u64 h0, h1, h2, c; in poly1305_blocks() local 99 h1 = st->h[1]; in poly1305_blocks() 110 h1 += ((m0 >> 44) | (m1 << 20)) & 0x0fffffffffff; in poly1305_blocks() 114 d0 = ((u128)h0 * r0) + ((u128)h1 * s2) + ((u128)h2 * s1); in poly1305_blocks() 115 d1 = ((u128)h0 * r1) + ((u128)h1 * r0) + ((u128)h2 * s2); in poly1305_blocks() 116 d2 = ((u128)h0 * r2) + ((u128)h1 * r1) + ((u128)h2 * r0); in poly1305_blocks() 120 h1 = (u64)(d1 += (u64)(d0 >> 44)) & 0x0fffffffffff; in poly1305_blocks() 131 st->h[1] = h1; in poly1305_blocks() 138 u64 h0, h1, h2; in poly1305_emit() local 144 h1 = st->h[1]; in poly1305_emit() [all …]
|
H A D | poly1305.c | 153 u64 h0, h1, h2, c; in poly1305_blocks() local 162 h1 = st->h[1]; in poly1305_blocks() 168 h1 = (u64)(d1 = (u128)h1 + (d0 >> 64) + U8TOU64(inp + 8)); in poly1305_blocks() 177 ((u128)h1 * s1); in poly1305_blocks() 179 ((u128)h1 * r0) + in poly1305_blocks() 186 h1 = (u64)(d1 += d0 >> 64); in poly1305_blocks() 192 h1 += (c = CONSTANT_TIME_CARRY(h0,c)); in poly1305_blocks() 193 h2 += CONSTANT_TIME_CARRY(h1,c); in poly1305_blocks() 209 st->h[1] = h1; in poly1305_blocks() 217 u64 h0, h1, h2; in poly1305_emit() local [all …]
|
/freebsd/crypto/openssh/ |
H A D | poly1305.c | 35 uint32_t h0,h1,h2,h3,h4; in poly1305_auth() local 66 h1 = 0; in poly1305_auth() 83 h1 += ((((uint64_t)t1 << 32) | t0) >> 26) & 0x3ffffff; in poly1305_auth() 90 …t[0] = mul32x32_64(h0,r0) + mul32x32_64(h1,s4) + mul32x32_64(h2,s3) + mul32x32_64(h3,s2) + mul32x… in poly1305_auth() 91 …t[1] = mul32x32_64(h0,r1) + mul32x32_64(h1,r0) + mul32x32_64(h2,s4) + mul32x32_64(h3,s3) + mul32x… in poly1305_auth() 92 …t[2] = mul32x32_64(h0,r2) + mul32x32_64(h1,r1) + mul32x32_64(h2,r0) + mul32x32_64(h3,s4) + mul32x… in poly1305_auth() 93 …t[3] = mul32x32_64(h0,r3) + mul32x32_64(h1,r2) + mul32x32_64(h2,r1) + mul32x32_64(h3,r0) + mul32x… in poly1305_auth() 94 …t[4] = mul32x32_64(h0,r4) + mul32x32_64(h1,r3) + mul32x32_64(h2,r2) + mul32x32_64(h3,r1) + mul32x… in poly1305_auth() 97 t[1] += c; h1 = (uint32_t)t[1] & 0x3ffffff; b = (uint32_t)(t[1] >> 26); in poly1305_auth() 120 h1 += ((((uint64_t)t1 << 32) | t0) >> 26) & 0x3ffffff; in poly1305_auth() [all …]
|
H A D | umac.c | 372 UINT64 h1,h2; in nh_aux() local 380 h1 = *((UINT64 *)hp); in nh_aux() 391 h1 += MUL64((k0 + d0), (k4 + d4)); in nh_aux() 394 h1 += MUL64((k1 + d1), (k5 + d5)); in nh_aux() 397 h1 += MUL64((k2 + d2), (k6 + d6)); in nh_aux() 400 h1 += MUL64((k3 + d3), (k7 + d7)); in nh_aux() 408 ((UINT64 *)hp)[0] = h1; in nh_aux() 419 UINT64 h1,h2,h3; in nh_aux() local 427 h1 = *((UINT64 *)hp); in nh_aux() 440 h1 += MUL64((k0 + d0), (k4 + d4)); in nh_aux() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/ |
H A D | fe.h | 9 int64_t h1 = load_3(s + 4) << 6; in fe25519_frombytes() local 33 carry1 = (h1 + (int64_t)(1L << 24)) >> 25; in fe25519_frombytes() 35 h1 -= carry1 * ((uint64_t) 1L << 25); in fe25519_frombytes() 47 h1 += carry0; in fe25519_frombytes() 63 h[1] = (int32_t) h1; in fe25519_frombytes() 103 int32_t h1 = f[1]; in fe25519_reduce() local 118 q = (h1 + q) >> 25; in fe25519_reduce() 133 h1 += carry0; in fe25519_reduce() 135 carry1 = h1 >> 25; in fe25519_reduce() 137 h1 -= carry1 * ((uint32_t) 1L << 25); in fe25519_reduce() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | sasl.c | 165 char *hr, *h1, *h, *res; local 180 h1 = s1; 184 while (h != NULL && *h1 != '\0') 187 if ((h = strchr(h1, ' ')) != NULL) 189 l1 = strlen(h1); 192 if (iteminlist(h1, s2, " ") != NULL) 199 memcpy(hr, h1, l1); 209 h1 = h + 1;
|
/freebsd/crypto/openssl/crypto/sha/asm/ |
H A D | sha1-ia64.pl | 43 ($h0,$h1,$h2,$h3,$h4) = ("h0","h1","h2","h3","h4"); 51 ($h0,$h1,$h2,$h3,$h4) = ("loc5","loc6","loc7","loc8","loc9"); 186 add $h1=$h1,$a };; // wrap up 261 { .mlx; ld4 $h1=[tmp0],8 276 mov $B=$h1 277 mux2 tmp6=$h1,0x44 } 304 st4 [tmp0]=$h1,8 };;
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ |
H A D | fe_frombytes_sandy2x.c | 34 uint64_t h1 = load_3(s + 4) << 6; in fe_frombytes() local 55 carry1 = h1 >> 25; h2 += carry1; h1 &= 0x1FFFFFF; in fe_frombytes() 60 carry0 = h0 >> 26; h1 += carry0; h0 &= 0x3FFFFFF; in fe_frombytes() 67 h[1] = h1; in fe_frombytes()
|
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/private/ |
H A D | ed25519_ref10_fe_25_5.h | 44 int32_t h1 = f[1] + g[1]; in fe25519_add() local 55 h[1] = h1; in fe25519_add() 82 int32_t h1 = f[1] - g[1]; in fe25519_sub() local 93 h[1] = h1; in fe25519_sub() 118 int32_t h1 = -f[1]; in fe25519_neg() local 129 h[1] = h1; in fe25519_neg() 510 int64_t h1 = f0g1 + f1g0 + f2g9_19 + f3g8_19 + f4g7_19 + f5g6_19 + f6g5_19 + in fe25519_mul() local 548 h1 += carry0; in fe25519_mul() 558 carry1 = (h1 + (int64_t)(1L << 24)) >> 25; in fe25519_mul() 560 h1 -= carry1 * ((uint64_t) 1L << 25); in fe25519_mul() [all …]
|
H A D | ed25519_ref10_fe_51.h | 36 uint64_t h1 = f[1] + g[1]; in fe25519_add() local 42 h[1] = h1; in fe25519_add() 56 uint64_t h0, h1, h2, h3, h4; in fe25519_sub() local 59 h1 = g[1]; in fe25519_sub() 64 h1 += h0 >> 51; in fe25519_sub() 66 h2 += h1 >> 51; in fe25519_sub() 67 h1 &= mask; in fe25519_sub() 76 h1 = (f[1] + 0xffffffffffffeULL) - h1; in fe25519_sub() 82 h[1] = h1; in fe25519_sub() 498 uint64_t h0, h1, h2, h3, h4; in fe25519_scalar_product() local [all …]
|
/freebsd/sys/powerpc/include/ |
H A D | bus.h | 272 #define __bs_copy(sz, t, h1, o1, h2, o2, cnt) \ argument 273 (*(t)->__bs_opname(c,sz))(h1, o1, h2, o2, cnt) 445 #define bus_space_copy_region_1(t, h1, o1, h2, o2, c) \ 446 __bs_copy(1, t, h1, o1, h2, o2, c) 447 #define bus_space_copy_region_2(t, h1, o1, h2, o2, c) \ 448 __bs_copy(2, t, h1, o1, h2, o2, c) 449 #define bus_space_copy_region_4(t, h1, o1, h2, o2, c) \ 450 __bs_copy(4, t, h1, o1, h2, o2, c) 451 #define bus_space_copy_region_8(t, h1, o1, h2, o2, c) \ 452 __bs_copy(8, t, h1, o1, h2, o2, c) [all …]
|
/freebsd/contrib/bearssl/src/hash/ |
H A D | ghash_ctmul64.c | 83 uint64_t h0, h1, h2, h0r, h1r, h2r; in br_ghash_ctmul64() local 90 h1 = br_dec64be(hb); in br_ghash_ctmul64() 93 h1r = rev64(h1); in br_ghash_ctmul64() 94 h2 = h0 ^ h1; in br_ghash_ctmul64() 122 z1 = bmul64(y1, h1); in br_ghash_ctmul64()
|
/freebsd/tests/sys/netgraph/ |
H A D | util.h | 41 #define ng_connect(p1,h1,p2,h2) \ argument 42 _ng_connect(p1,h1,p2,h2,__FILE__,__LINE__) 48 #define ng_mkpeer(p1,h1,t,h2) \ argument 49 _ng_mkpeer(p1,h1,t,h2,__FILE__,__LINE__)
|