| /netbsd-src/external/mpl/bind/dist/tests/isc/ |
| H A D | hash_test.c | 41 uint32_t h2; in ISC_RUN_TEST_IMPL() 45 h2 = isc_hash32(NULL, 0, true); in ISC_RUN_TEST_IMPL() 47 assert_int_equal(h1, h2); in ISC_RUN_TEST_IMPL() 51 h2 = isc_hash32("Hello world", 12, true); in ISC_RUN_TEST_IMPL() 53 assert_int_equal(h1, h2); in ISC_RUN_TEST_IMPL() 57 h2 = isc_hash32("heLLo WorLd", 12, false); in ISC_RUN_TEST_IMPL() 59 assert_int_equal(h1, h2); in ISC_RUN_TEST_IMPL() 63 h2 = isc_hash32("heLLo WorLd", 12, true); in ISC_RUN_TEST_IMPL() 65 assert_int_not_equal(h1, h2); in ISC_RUN_TEST_IMPL() 71 uint64_t h2; 42 unsigned int h2; ISC_RUN_TEST_IMPL() local 74 unsigned int h2; ISC_RUN_TEST_IMPL() local [all...] |
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/poly1305/asm/ |
| H A D | poly1305-s390x.pl | 80 my ($d0hi,$d0lo,$d1hi,$d1lo,$t0,$h0,$t1,$h1,$h2) = map("%r$_",(6..14)); 102 lg $h2,16($ctx) 125 alcgr $h2,$padbit 128 lgr $d1lo,$h2 136 msgr $h2,$r0 # h2*r0 142 alcgr $h2,$t1 145 ngr $h0,$h2 146 srlg $t0,$h2,2 149 ngr $h2,$t1 153 alcgr $h2,$d1hi # $d1hi is still zero [all …]
|
| H A D | poly1305-ppc.pl | 92 my ($h0,$h1,$h2,$d0,$d1,$d2, $r0,$r1,$s1, $t0,$t1) = map("r$_",(7..12,27..31)); 160 ld $h2,16($ctx) 194 adde $h2,$h2,$padbit 211 mulld $t0,$h2,$s1 # h2*5*r1 212 mulld $t1,$h2,$r0 # h2*r0 217 and $h2,$d2,$mask 222 addze $h2,$h2 228 std $h2,16($ctx) 247 ld $h2,16($ctx) 253 addze $d2,$h2 [all …]
|
| H A D | poly1305-armv8.pl | 51 my ($h0,$h1,$h2,$r0,$r1,$s1,$t0,$t1,$d0,$d1,$d2) = map("x$_",(4..14)); 127 ldr $h2,[$ctx,#16] 143 adc $h2,$h2,$padbit 160 mul $t0,$h2,$s1 // h2*5*r1 162 mul $t1,$h2,$r0 // h2*r0 168 and $h2,$d2,#3 172 adc $h2,$h2,xzr 177 str $h2,[$ctx,#16] 187 ldr $h2,[$ctx,#16] 192 adc $d2,$h2,xzr [all …]
|
| H A D | poly1305-armv4.pl | 182 my ($h0,$h1,$h2,$h3,$h4,$r0,$r1,$r2,$r3)=map("r$_",(4..12)); 243 adcs $h2,$h2,r3 270 adcs $h2,$h2,r2 282 umlal r2,r3,$h2,$s3 285 umlal r0,r1,$h2,$s2 292 adc lr,r3,#0 @ future $h2 300 umlal r0,r1,$h2,$r0 301 umlal r2,r3,$h2,$r1 310 adds $h2,lr,r0 @ d2+=d1>>32 323 adcs $h2,$h2,#0 [all …]
|
| H A D | poly1305-sparcv9.pl | 49 my ($h0,$h1,$h2,$h3, $t0,$t1,$t2) = map("%o$_",(0..5,7)); 102 set 16,$h2 111 ldxa [$inp+$h2]0x88,$h2 116 sllx $h2,$shl,$h2 117 or $h2,$h1,$h1 162 ld [$ctx+12],$h2 197 addccc $d1,$h2,$h2 217 umul $s2,$h2,$t1 218 umul $s3,$h2,$t2 219 umul $r0,$h2,$t0 [all …]
|
| H A D | poly1305-ppcfp.pl | 548 my ($h0,$h1,$h2,$h3,$h4, $d0,$d1,$d2,$d3 570 lwz $h2,`8*2+(4^$LITTLE_ENDIAN)`($ctx) 590 adde $h2,$h2,$d1 596 addze $d2,$h2 610 andc $h2,$h2,$mask 616 or $h2,$h2,$d2 623 adde $h2,$h2,$d2 630 add $h2,$h2,$d1 636 add $h2,$h2,$d1 637 srdi $d2,$h2,32 [all …]
|
| /netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/crypto_onetimeauth/poly1305/donna/ |
| 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 …]
|
| 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 …]
|
| /netbsd-src/external/mpl/bind/dist/lib/isc/netmgr/ |
| H A D | http.c | 396 uri = sock->h2->session->handle->sock->h2->connect.uri; in new_http_cstream() 397 post = sock->h2->session->handle->sock->h2->connect.post; in new_http_cstream() 458 ISC_LIST_PREPEND(sock->h2->session->cstreams, stream, link); in put_http_cstream() 481 if (stream == stream->httpsock->h2->connect.cstream) { in put_http_cstream() 482 stream->httpsock->h2->connect.cstream = NULL; in put_http_cstream() 485 ISC_LIST_UNLINK(stream->httpsock->h2->session->cstreams, stream, 563 isc_nmsocket_h2_t *h2 = ISC_LIST_HEAD(session->sstreams); in on_server_data_chunk_recv_callback() 564 isc_mem_t *mctx = h2 in on_server_data_chunk_recv_callback() 554 isc_nmsocket_h2_t *h2 = ISC_LIST_HEAD(session->sstreams); on_server_data_chunk_recv_callback() local [all...] |
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/poly1305/ |
| H A D | poly1305.c | 155 u64 h0, h1, h2, c; in poly1305_blocks() local 165 h2 = st->h[2]; in poly1305_blocks() 175 h2 += (u64)(d1 >> 64) + padbit; in poly1305_blocks() 182 (h2 * s1); in poly1305_blocks() 183 h2 = (h2 * r0); in poly1305_blocks() 189 h2 += (u64)(d1 >> 64); in poly1305_blocks() 191 c = (h2 >> 2) + (h2 & ~3UL); in poly1305_blocks() 192 h2 &= 3; in poly1305_blocks() 195 h2 += CONSTANT_TIME_CARRY(h1,c); in poly1305_blocks() 212 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 …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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 …]
|
| /netbsd-src/sys/external/isc/libsodium/dist/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 …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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)); 127 ldr $h2,[$ctx,#16] 143 adc $h2,$h2,$padbit 160 mul $t0,$h2,$s1 // h2*5*r1 162 mul $t1,$h2,$r0 // h2*r0 168 and $h2,$d2,#3 172 adc $h2,$h2,xzr 177 str $h2,[$ctx,#16] 188 ldr $h2,[$ctx,#16] 193 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 …]
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| 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 …]
|
| /netbsd-src/external/mit/libuv/dist/test/ |
| H A D | test-udp-bind.c | 33 uv_udp_t h1, h2; in TEST_IMPL() local 43 r = uv_udp_init(loop, &h2); in TEST_IMPL() 49 r = uv_udp_bind(&h2, (const struct sockaddr*) &addr, 0); in TEST_IMPL() 53 uv_close((uv_handle_t*) &h2, NULL); in TEST_IMPL() 66 uv_udp_t h1, h2; in TEST_IMPL() local 76 r = uv_udp_init(loop, &h2); in TEST_IMPL() 82 r = uv_udp_bind(&h2, (const struct sockaddr*) &addr, UV_UDP_REUSEADDR); in TEST_IMPL() 86 uv_close((uv_handle_t*) &h2, NULL); in TEST_IMPL()
|
| H A D | test-udp-options.c | 117 uv_udp_t h2; in TEST_IMPL() local 140 ASSERT(0 == uv_udp_init_ex(loop, &h2, AF_INET | UV_UDP_RECVMMSG)); in TEST_IMPL() 141 ASSERT(0 == uv_udp_set_multicast_ttl(&h2, 32)); in TEST_IMPL() 142 ASSERT(0 == uv_udp_set_broadcast(&h2, 1)); in TEST_IMPL() 146 ASSERT(UV_ENOTSUP == uv_udp_set_ttl(&h2, 1)); in TEST_IMPL() 148 ASSERT(0 == uv_udp_set_ttl(&h2, 1)); in TEST_IMPL() 151 ASSERT(0 == uv_udp_set_multicast_loop(&h2, 1)); in TEST_IMPL() 152 ASSERT(0 == uv_udp_set_multicast_interface(&h2, "0.0.0.0")); in TEST_IMPL() 154 uv_close((uv_handle_t*) &h2, NULL); in TEST_IMPL()
|
| /netbsd-src/sys/external/isc/libsodium/dist/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 …]
|
| /netbsd-src/external/mit/libcbor/dist/docs/ |
| H A D | index.html.erb | 18 <h2 class="project-tagline">CBOR format implementation for C & others</h2> 19 <h2 class="project-tagline">Latest release: <%= Release.tag %></h2> 30 <h2> 31 …#main-features" aria-hidden="true"><span class="octicon octicon-link"></span></a>Main features</h2> 45 <h2>A taste of the API</h2> 48 <h2><a id="distrib" class="anchor" href="#distrib" aria-hidden="true"><span class="octicon octicon-… 74 <h2> 75 …aria-hidden="true"><span class="octicon octicon-link"></span></a>Resources & documentation</h2> 86 <h2>Ruby bindings</h2> 90 <h2><a id="license" class="anchor" href="#license" aria-hidden="true"><span class="octicon octicon-…
|