/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | hash.h | 129 uint32_t h2 = seed; in hash_x86_128() local 151 h1 = hash_rotl_32(h1, 19); h1 += h2; in hash_x86_128() 154 k2 *= c2; k2 = hash_rotl_32(k2, 16); k2 *= c3; h2 ^= k2; in hash_x86_128() 156 h2 = hash_rotl_32(h2, 17); h2 += h3; in hash_x86_128() 157 h2 = h2*5 + 0x0bcaa747; in hash_x86_128() 195 k2 *= c2; k2 = hash_rotl_32(k2, 16); k2 *= c3; h2 ^= k2; in hash_x86_128() 207 h1 ^= len; h2 ^= len; h3 ^= len; h4 ^= len; in hash_x86_128() 209 h1 += h2; h1 += h3; h1 += h4; in hash_x86_128() 210 h2 += h1; h3 += h1; h4 += h1; in hash_x86_128() 213 h2 = hash_fmix_32(h2); in hash_x86_128() [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 79 h2 = st->h[2]; in poly1305_blocks() 93 h2 += (((t1 >> 24)) & 0x3ffffffffff) | hibit; in poly1305_blocks() 99 MUL(d, h2, s1); in poly1305_blocks() 104 MUL(d, h2, s2); in poly1305_blocks() 109 MUL(d, h2, r0); in poly1305_blocks() 120 h2 = LO(d2) & 0x3ffffffffff; in poly1305_blocks() 132 st->h[2] = h2; in poly1305_blocks() 138 unsigned long long h0, h1, h2, c; in poly1305_finish() local 158 h2 = st->h[2]; in poly1305_finish() [all …]
|
H A D | poly1305_donna32.h | 62 unsigned long h0, h1, h2, h3, h4; in poly1305_blocks() local 79 h2 = st->h[2]; in poly1305_blocks() 87 h2 += (LOAD32_LE(m + 6) >> 4) & 0x3ffffff; in poly1305_blocks() 93 ((unsigned long long) h2 * s3) + ((unsigned long long) h3 * s2) + in poly1305_blocks() 96 ((unsigned long long) h2 * s4) + ((unsigned long long) h3 * s3) + in poly1305_blocks() 99 ((unsigned long long) h2 * r0) + ((unsigned long long) h3 * s4) + in poly1305_blocks() 102 ((unsigned long long) h2 * r1) + ((unsigned long long) h3 * r0) + in poly1305_blocks() 105 ((unsigned long long) h2 * r2) + ((unsigned long long) h3 * r1) + in poly1305_blocks() 116 h2 = (unsigned long) d2 & 0x3ffffff; in poly1305_blocks() 134 st->h[2] = h2; in poly1305_blocks() [all …]
|
/freebsd/sys/contrib/libsodium/test/default/ |
H A D | metamorphic.c | 12 unsigned char *h, *h2; in mm_generichash() local 32 h2 = (unsigned char *) sodium_malloc(hlen); in mm_generichash() 45 crypto_generichash(h2, hlen, m, mlen, k, klen); in mm_generichash() 47 assert(memcmp(h, h2, hlen) == 0); in mm_generichash() 49 sodium_free(h2); in mm_generichash() 60 unsigned char *h, *h2; in mm_onetimeauth() local 72 h2 = (unsigned char *) sodium_malloc(crypto_onetimeauth_BYTES); in mm_onetimeauth() 85 crypto_onetimeauth(h2, m, mlen, k); in mm_onetimeauth() 87 assert(memcmp(h, h2, crypto_onetimeauth_BYTES) == 0); in mm_onetimeauth() 89 sodium_free(h2); in mm_onetimeauth() [all …]
|
/freebsd/crypto/openssl/crypto/poly1305/ |
H A D | poly1305.c | 153 u64 h0, h1, h2, c; in poly1305_blocks() local 163 h2 = st->h[2]; in poly1305_blocks() 173 h2 += (u64)(d1 >> 64) + padbit; in poly1305_blocks() 180 (h2 * s1); in poly1305_blocks() 181 h2 = (h2 * r0); in poly1305_blocks() 187 h2 += (u64)(d1 >> 64); in poly1305_blocks() 189 c = (h2 >> 2) + (h2 & ~3UL); in poly1305_blocks() 190 h2 &= 3; in poly1305_blocks() 193 h2 += CONSTANT_TIME_CARRY(h1,c); in poly1305_blocks() 210 st->h[2] = h2; in poly1305_blocks() [all …]
|
H A D | poly1305_base2_44.c | 87 u64 h0, h1, h2, c; in poly1305_blocks() local 100 h2 = st->h[2]; in poly1305_blocks() 111 h2 += (m1 >> 24) + pad; 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() 121 h2 = (u64)(d2 += (u64)(d1 >> 44)) & 0x03ffffffffff; /* last 42 bits */ in poly1305_blocks() 132 st->h[2] = h2; in poly1305_blocks() 138 u64 h0, h1, h2; in poly1305_emit() local 145 h2 = st->h[2]; in poly1305_emit() [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)); 131 ldr $h2,[$ctx,#16] 147 adc $h2,$h2,$padbit 164 mul $t0,$h2,$s1 // h2*5*r1 166 mul $t1,$h2,$r0 // h2*r0 172 and $h2,$d2,#3 176 adc $h2,$h2,xzr 181 str $h2,[$ctx,#16] 195 ldr $h2,[$ctx,#16] 200 adc $d2,$h2,xzr [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)); 173 ld $h2,16($ctx) 207 adde $h2,$h2,$padbit 224 mulld $t0,$h2,$s1 # h2*5*r1 225 mulld $t1,$h2,$r0 # h2*r0 230 and $h2,$d2,$mask 235 addze $h2,$h2 241 std $h2,16($ctx) 256 my ($h0,$h1,$h2,$h3,$h4,$t0) = map("r$_",(7..12)); 264 lwz $h2,8($ctx) [all …]
|
H A D | poly1305-armv4.pl | 177 my ($h0,$h1,$h2,$h3,$h4,$r0,$r1,$r2,$r3)=map("r$_",(4..12)); 238 adcs $h2,$h2,r3 265 adcs $h2,$h2,r2 277 umlal r2,r3,$h2,$s3 280 umlal r0,r1,$h2,$s2 287 adc lr,r3,#0 @ future $h2 295 umlal r0,r1,$h2,$r0 296 umlal r2,r3,$h2,$r1 305 adds $h2,lr,r0 @ d2+=d1>>32 318 adcs $h2,$h2,#0 [all …]
|
H A D | poly1305-sparcv9.pl | 51 my ($h0,$h1,$h2,$h3, $t0,$t1,$t2) = map("%o$_",(0..5,7)); 104 set 16,$h2 113 ldxa [$inp+$h2]0x88,$h2 118 sllx $h2,$shl,$h2 119 or $h2,$h1,$h1 164 ld [$ctx+12],$h2 199 addccc $d1,$h2,$h2 219 umul $s2,$h2,$t1 220 umul $s3,$h2,$t2 221 umul $r0,$h2,$t0 [all …]
|
H A D | poly1305-ppcfp.pl | 552 my ($h0,$h1,$h2,$h3,$h4, $d0,$d1,$d2,$d3 574 lwz $h2,`8*2+(4^$LITTLE_ENDIAN)`($ctx) 594 adde $h2,$h2,$d1 600 addze $d2,$h2 614 andc $h2,$h2,$mask 620 or $h2,$h2,$d2 627 adde $h2,$h2,$d2 634 add $h2,$h2,$d1 640 add $h2,$h2,$d1 641 srdi $d2,$h2,32 [all …]
|
H A D | poly1305-mips.pl | 174 my ($h0,$h1,$h2,$r0,$r1,$s1,$d0,$d1,$d2) = 211 ld $h2,16($ctx) 278 daddu $h2,$padbit 285 daddu $h2,$tmp0 304 dmultu ($s1,$h2) # h2*5*r1 307 mflo ($tmp2,$s1,$h2) 309 dmultu ($r0,$h2) # h2*r0 312 mflo ($tmp3,$r0,$h2) 322 andi $h2,$d2,3 328 daddu $h2,$h2,$tmp0 [all …]
|
H A D | poly1305-s390x.pl | 128 my ($d0hi,$d0lo,$d1hi,$d1lo,$t0,$h0,$t1,$h1,$h2) = map("%r$_",(6..14)); 143 lg ($h2,"16($ctx)"); 169 alcgr ($h2,$padbit); 180 lgr ($d1lo,$h2); 188 msgr ($h2,$r0); # h2*r0 194 alcgr ($h2,$t1); 197 ngr ($h0,$h2); 198 srlg ($t0,$h2,2); 201 ngr ($h2,$t1); 205 alcgr ($h2,$d1hi); # $d1hi is still zero [all …]
|
H A D | poly1305-ia64.S | 107 h0=r17; h1=r18; h2=r19; 131 { .mmi; ld8 h2=[r8],16 190 add h2=h2,r35 };; 197 { .mmi; (p7) add h2=1,h2;; 198 setf.sig HF2=h2 };; 246 { .mmi; (p6) add h2=r31,r27,1 247 (p7) add h2=r31,r27 251 and r22=-4,h2 252 shr.u r23=h2,2 };; 254 and h2=3,h2 [all …]
|
/freebsd/crypto/openssh/ |
H A D | poly1305.c | 35 uint32_t h0,h1,h2,h3,h4; in poly1305_auth() local 67 h2 = 0; in poly1305_auth() 84 h2 += ((((uint64_t)t2 << 32) | t1) >> 20) & 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() 98 t[2] += b; h2 = (uint32_t)t[2] & 0x3ffffff; b = (uint32_t)(t[2] >> 26); in poly1305_auth() 121 h2 += ((((uint64_t)t2 << 32) | t1) >> 20) & 0x3ffffff; in poly1305_auth() [all …]
|
H A D | umac.c | 372 UINT64 h1,h2; in nh_aux() local 381 h2 = *((UINT64 *)hp + 1); in nh_aux() 392 h2 += MUL64((k4 + d0), (k8 + d4)); in nh_aux() 395 h2 += MUL64((k5 + d1), (k9 + d5)); in nh_aux() 398 h2 += MUL64((k6 + d2), (k10 + d6)); in nh_aux() 401 h2 += MUL64((k7 + d3), (k11 + d7)); in nh_aux() 409 ((UINT64 *)hp)[1] = h2; in nh_aux() 419 UINT64 h1,h2,h3; in nh_aux() local 428 h2 = *((UINT64 *)hp + 1); in nh_aux() 441 h2 += MUL64((k4 + d0), (k8 + d4)); in nh_aux() [all …]
|
/freebsd/sys/contrib/ck/src/ |
H A D | ck_ht_hash.h | 240 uint32_t h2 = (uint32_t)(seed >> 32); in MurmurHash64B() local 253 h2 *= m; h2 ^= k2; in MurmurHash64B() 267 case 3: h2 ^= ((const unsigned char*)data)[2] << 16; in MurmurHash64B() 269 case 2: h2 ^= ((const unsigned char*)data)[1] << 8; in MurmurHash64B() 271 case 1: h2 ^= ((const unsigned char*)data)[0]; in MurmurHash64B() 272 h2 *= m; in MurmurHash64B() 275 h1 ^= h2 >> 18; h1 *= m; in MurmurHash64B() 276 h2 ^= h1 >> 22; h2 *= m; in MurmurHash64B() 277 h1 ^= h2 >> 17; h1 *= m; in MurmurHash64B() 278 h2 ^= h1 >> 19; h2 *= m; in MurmurHash64B() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/ |
H A D | fe.h | 10 int64_t h2 = load_3(s + 7) << 5; in fe25519_frombytes() local 34 h2 += carry1; in fe25519_frombytes() 49 carry2 = (h2 + (int64_t)(1L << 25)) >> 26; in fe25519_frombytes() 51 h2 -= carry2 * ((uint64_t) 1L << 26); in fe25519_frombytes() 64 h[2] = (int32_t) h2; in fe25519_frombytes() 104 int32_t h2 = f[2]; in fe25519_reduce() local 119 q = (h2 + q) >> 26; in fe25519_reduce() 136 h2 += carry1; in fe25519_reduce() 138 carry2 = h2 >> 26; in fe25519_reduce() 140 h2 -= carry2 * ((uint32_t) 1L << 26); in fe25519_reduce() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ |
H A D | fe_frombytes_sandy2x.c | 35 uint64_t h2 = load_3(s + 7) << 5; in fe_frombytes() local 55 carry1 = h1 >> 25; h2 += carry1; h1 &= 0x1FFFFFF; in fe_frombytes() 61 carry2 = h2 >> 26; h3 += carry2; h2 &= 0x3FFFFFF; in fe_frombytes() 68 h[2] = h2; in fe_frombytes()
|
/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"); 263 { .mlx; ld4 $h2=[ctx],8 278 { .mmi; mov $C=$h2 298 add $h2=$h2,$C 305 { .mmi; st4 [ctx]=$h2,8
|
/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/sys/contrib/libsodium/src/libsodium/include/sodium/private/ |
H A D | ed25519_ref10_fe_51.h | 37 uint64_t h2 = f[2] + g[2]; in fe25519_add() local 43 h[2] = h2; in fe25519_add() 56 uint64_t h0, h1, h2, h3, h4; in fe25519_sub() local 60 h2 = g[2]; in fe25519_sub() 66 h2 += h1 >> 51; in fe25519_sub() 68 h3 += h2 >> 51; in fe25519_sub() 69 h2 &= mask; in fe25519_sub() 77 h2 = (f[2] + 0xffffffffffffeULL) - h2; in fe25519_sub() 83 h[2] = h2; in fe25519_sub() 498 uint64_t h0, h1, h2, h3, h4; in fe25519_scalar_product() local [all …]
|
H A D | ed25519_ref10_fe_25_5.h | 45 int32_t h2 = f[2] + g[2]; in fe25519_add() local 56 h[2] = h2; in fe25519_add() 83 int32_t h2 = f[2] - g[2]; in fe25519_sub() local 94 h[2] = h2; in fe25519_sub() 119 int32_t h2 = -f[2]; in fe25519_neg() local 130 h[2] = h2; in fe25519_neg() 512 int64_t h2 = f0g2 + f1g1_2 + f2g0 + f3g9_38 + f4g8_19 + f5g7_38 + f6g6_19 + in fe25519_mul() local 559 h2 += carry1; in fe25519_mul() 569 carry2 = (h2 + (int64_t)(1L << 25)) >> 26; in fe25519_mul() 571 h2 -= carry2 * ((uint64_t) 1L << 26); in fe25519_mul() [all …]
|
/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__)
|
/freebsd/usr.sbin/lpr/common_source/ |
H A D | net.c | 186 char h1[NI_MAXHOST], h2[NI_MAXHOST]; in checkremote() local 233 h2[0] = '\0'; in checkremote() 235 h2, sizeof(h2), NULL, 0, in checkremote() 238 if (strcmp(h1, h2) == 0) in checkremote()
|