/freebsd/contrib/libarchive/tar/test/ |
H A D | test_option_s.c | 15 assertMakeDir("in/d1", 0755); in DEFINE_TEST() 16 assertMakeFile("in/d1/foo", 0644, "foo"); in DEFINE_TEST() 17 assertMakeFile("in/d1/bar", 0644, "bar"); in DEFINE_TEST() 19 assertMakeFile("in/d1/realfile", 0644, "realfile"); in DEFINE_TEST() 20 assertMakeSymlink("in/d1/symlink", "realfile", 0); in DEFINE_TEST() 22 assertMakeFile("in/d1/hardlink1", 0644, "hardlinkedfile"); in DEFINE_TEST() 23 assertMakeHardlink("in/d1/hardlink2", "in/d1/hardlink1"); in DEFINE_TEST() 26 systemf("%s -cf - -s /foo/bar/ in/d1/foo > NUL 2> check.err", in DEFINE_TEST() 39 systemf("%s -cf test1_1.tar -s /foo/bar/ in/d1/foo", testprog); in DEFINE_TEST() 41 assertFileContents("foo", 3, "test1/in/d1/bar"); in DEFINE_TEST() [all …]
|
H A D | test_option_H_upper.c | 22 assertMakeDir("d1", 0755); in DEFINE_TEST() 23 assertMakeSymlink("ld1", "d1", 1); in DEFINE_TEST() 24 assertMakeFile("d1/file1", 0644, "d1/file1"); in DEFINE_TEST() 25 assertMakeFile("d1/file2", 0644, "d1/file2"); in DEFINE_TEST() 26 assertMakeSymlink("d1/link1", "file1", 0); in DEFINE_TEST() 27 assertMakeSymlink("d1/linkX", "fileX", 0); in DEFINE_TEST() 28 assertMakeSymlink("link2", "d1/file2", 0); in DEFINE_TEST() 29 assertMakeSymlink("linkY", "d1/fileY", 0); in DEFINE_TEST() 39 assertIsSymlink("ld1", "d1", 1); in DEFINE_TEST() 40 assertIsSymlink("d1/link1", "file1", 0); in DEFINE_TEST() [all …]
|
H A D | test_option_U_upper.c | 14 assertMakeDir("d1", 0755); in DEFINE_TEST() 15 assertMakeFile("d1/file1", 0644, "d1/file1"); in DEFINE_TEST() 16 assertEqualInt(0, systemf("%s -cf archive.tar file1 d1/file1", testprog)); in DEFINE_TEST() 59 /* Test 3: Intermediate dir symlink causes error by default */ in DEFINE_TEST() 63 assertMakeSymlink("d1", "realDir", 1); in DEFINE_TEST() 64 r = systemf("%s -xf ../archive.tar d1/file1 >test.out 2>test.err", testprog); in DEFINE_TEST() 66 assertIsSymlink("d1", "realDir", 1); in DEFINE_TEST() 67 assertFileNotExists("d1/file1"); in DEFINE_TEST() 76 assertMakeSymlink("d1", "realDir", 1); in DEFINE_TEST() 79 assertIsDir("d1", -1); in DEFINE_TEST() [all …]
|
H A D | test_option_L_upper.c | 22 assertMakeDir("d1", 0755); in DEFINE_TEST() 23 assertMakeSymlink("ld1", "d1", 1); in DEFINE_TEST() 24 assertMakeFile("d1/file1", 0644, "d1/file1"); in DEFINE_TEST() 25 assertMakeFile("d1/file2", 0644, "d1/file2"); in DEFINE_TEST() 26 assertMakeSymlink("d1/link1", "file1", 0); in DEFINE_TEST() 27 assertMakeSymlink("d1/linkX", "fileX", 0); in DEFINE_TEST() 28 assertMakeSymlink("link2", "d1/file2", 0); in DEFINE_TEST() 29 assertMakeSymlink("linkY", "d1/fileY", 0); in DEFINE_TEST() 39 assertIsSymlink("ld1", "d1", 1); in DEFINE_TEST() 40 assertIsSymlink("d1/link1", "file1", 0); in DEFINE_TEST() [all …]
|
H A D | test_option_n.c | 17 assertMakeDir("d1", 0755); in DEFINE_TEST() 18 assertMakeFile("d1/file1", 0644, "d1/file1"); in DEFINE_TEST() 24 systemf("%s -cf archive.tar -C .. d1 >c.out 2>c.err", testprog)); in DEFINE_TEST() 31 assertFileContents("d1/file1", 8, "d1/file1"); in DEFINE_TEST() 38 systemf("%s -cnf archive.tar -C .. d1 >c.out 2>c.err", testprog)); in DEFINE_TEST() 45 assertIsDir("d1", umasked(0755)); in DEFINE_TEST() 46 assertFileNotExists("d1/file1"); in DEFINE_TEST() 51 * d1/ in DEFINE_TEST() 52 * d1/file1 in DEFINE_TEST() 53 * d1/file2 in DEFINE_TEST() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/ |
H A D | blamka-round-avx2.h | 7 #define rotr32(x) _mm256_shuffle_epi32(x, _MM_SHUFFLE(2, 3, 0, 1)) 8 …otr24(x) _mm256_shuffle_epi8(x, _mm256_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9,… 9 …16(x) _mm256_shuffle_epi8(x, _mm256_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9… 12 #define G1_AVX2(A0, A1, B0, B1, C0, C1, D0, D1) \ argument 30 D1 = _mm256_xor_si256(D1, A1); \ 31 D1 = rotr32(D1); \ 33 ml = _mm256_mul_epu32(C1, D1); \ 35 C1 = _mm256_add_epi64(C1, _mm256_add_epi64(D1, ml)); \ 41 #define G2_AVX2(A0, A1, B0, B1, C0, C1, D0, D1) \ argument 58 D1 = _mm256_xor_si256(D1, A1); \ [all …]
|
H A D | blamka-round-avx512f.h | 17 #define G1_AVX512F(A0, B0, C0, D0, A1, B1, C1, D1) \ argument 23 D1 = _mm512_xor_si512(D1, A1); \ 26 D1 = ror64(D1, 32); \ 29 C1 = muladd(C1, D1); \ 38 #define G2_AVX512F(A0, B0, C0, D0, A1, B1, C1, D1) \ argument 44 D1 = _mm512_xor_si512(D1, A1); \ 47 D1 = ror64(D1, 16); \ 50 C1 = muladd(C1, D1); \ 59 #define DIAGONALIZE(A0, B0, C0, D0, A1, B1, C1, D1) \ argument 61 B0 = _mm512_permutex_epi64(B0, _MM_SHUFFLE(0, 3, 2, 1)); \ [all …]
|
H A D | blamka-round-ssse3.h | 8 (_mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9)) 10 (_mm_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10)) 13 ? _mm_shuffle_epi32((x), _MM_SHUFFLE(2, 3, 0, 1)) \ 31 #define G1(A0, B0, C0, D0, A1, B1, C1, D1) \ argument 37 D1 = _mm_xor_si128(D1, A1); \ 40 D1 = _mm_roti_epi64(D1, -32); \ 43 C1 = fBlaMka(C1, D1); \ 52 #define G2(A0, B0, C0, D0, A1, B1, C1, D1) \ argument 58 D1 = _mm_xor_si128(D1, A1); \ 61 D1 = _mm_roti_epi64(D1, -16); \ [all …]
|
/freebsd/crypto/openssl/crypto/poly1305/asm/ |
H A D | poly1305-x86.pl | 95 &mov (&DWP(4*3,"edi"),"eax"); 135 &mov ("edx",&DWP(4*3,"esi")); 150 $d0,$d1,$d2,$d3, 192 &mov ("esi",&DWP(4*3,"edi")); 200 &adc ("esi",&DWP(4*3,"ebp")); 202 &adc ("edi",&wparam(3)); # padbit 249 &mov (&DWP($d1,"esp"),"esi"); 299 &mov ("ebx",&DWP($d1,"esp")); 304 &and ("edi",3); 320 &mov (&DWP(4*3,"edx"),"esi"); [all …]
|
H A D | poly1305-x86_64.pl | 104 my ($d1,$d2,$d3, $r0,$r1,$s1)=map("%r$_",(8..13)); 119 mov %rdx,$d1 129 adc %rdx,$d1 133 mov $d1,$h1 144 and \$3,$h2 155 # unsigned __int64 h[3]; # current hash value base 2^64 170 .type poly1305_init,\@function,3 198 $code.=<<___ if ($avx>3 && !$win64); 302 .type poly1305_emit,\@function,3 338 # struct { unsigned __int32 r^2, r^1, r^4, r^3; } r[9]; [all …]
|
H A D | poly1305-sparcv9.pl | 36 # given same initial conditions coefficient varies from 3x to 9x. 52 my ($d0,$d1,$d2,$d3) = map("%g$_",(1..4)); 98 sll $shr,3,$shr ! *8 107 or $t1,3,$t0 ! 0x0ffffffc0fffffff 169 set 8,$d1 170 sll $shr,3,$shr ! *8 184 ldxa [$inp+$d1]0x88,$d1 188 sllx $d1,$shl,$t1 189 srlx $d1,$shr,$d1 192 or $d2,$d1,$d1 [all …]
|
H A D | poly1305-c64xplus.pl | 33 ($D0,$D1,$D2,$D3)= ("A9","B9","A11","B11"); 88 || AND A17,B1,A23 ; r3 = key[3] & 0x0ffffffc 93 STDW B21:B20,*${CTXA}[3] ; save r2:r0 115 [A2] STDW B11:B10,*SP[3] 116 || [A2] STDW A13:A12,*FP[-3] 121 [A2] LDNW *${INPB}[-3],$D1 ; load inp[1] 125 LDNW *${INPB}[-1],$D3 ; load inp[3] 127 LDDW *${CTXA}[3],$R2:$R0 ; load r2:r0 134 || SWAP2 $D1,$D1 138 || SWAP4 $D1,$D1 [all …]
|
H A D | poly1305-armv4.pl | 48 ($ctx,$inp,$len,$padbit)=map("r$_",(0..3)); 96 ldrb r7,[$inp,#3] 235 ldrb r1,[lr,#-3] 285 adds r2,r2,r1 @ d1+=d0>>32 305 adds $h2,lr,r0 @ d2+=d1>>32 314 and $h4,$h4,#3 343 my ($h0,$h1,$h2,$h3,$h4,$g0,$g1,$g2,$g3)=map("r$_",(3..11)); 427 strb $h0,[$mac,#3] 444 my ($D0,$D1,$D2,$D3,$D4, $H0,$H1,$H2,$H3,$H4) = map("q$_",(5..14)); 492 @ d1 = h1*r0 + h0*r1 + h4*5*r2 + h3*5*r3 + h2*5*r4 [all …]
|
H A D | poly1305-ppc.pl | 91 my ($ctx,$inp,$len,$padbit) = map("r$_",(3..6)); 103 my ($h0,$h1,$h2,$d0,$d1,$d2, $r0,$r1,$s1, $t0,$t1) = map("r$_",(7..12,27..31)); 120 ld $d1,8($inp) 125 li $d1,8 128 lwbrx $d1,$d1,$inp 131 insrdi $d1,$h1,32,0 137 ori $h0,$h1,3 # 0x0ffffffc0fffffff 140 and $d1,$d1,$h1 143 std $d1,40($ctx) 163 $PUSH r29,`$FRAME-$SIZE_T*3`($sp) [all …]
|
H A D | poly1305-armv8.pl | 52 my ($ctx,$inp,$len,$padbit) = map("x$_",(0..3)); 55 my ($h0,$h1,$h2,$r0,$r1,$s1,$t0,$t1,$d0,$d1,$d2) = map("x$_",(4..14)); 102 adr $d1,.Lpoly1305_emit 106 csel $d1,$d1,$r1,eq 111 stp $d0,$d1,[$len] 148 umulh $d1,$h0,$r0 155 adc $d1,$d1,$t1 158 adds $d1,$d1,$t0 163 adds $d1,$d1,$t0 168 adds $d1,$d1,$t0 [all …]
|
/freebsd/crypto/openssl/crypto/chacha/asm/ |
H A D | chacha-c64xplus.pl | 68 [A0] STDW B11:B10,*SP[3+8] 69 || [A0] STDW A13:A12,*FP[-3] 78 || [A0] LDW *${KEYB}[3],@Y[7] 84 || MVK 0x00006574,@Y[3] 88 || MVKH 0x6b200000,@Y[3] 93 || LDW *${COUNTERB}[3],@Y[15] 99 || DMV @Y[3],@Y[1],@X[3]:@X[1] 101 ||[!A1] STDW @Y[3]:@Y[1],*SP[2] 120 my ($a0,$a1,$a2,$a3) = (0..3); 123 my ($d0,$d1,$d2,$d3) = (12..15); [all …]
|
H A D | chacha-s390x.pl | 21 # 3 times faster than compiler-generated code. 35 # 4x"vertical" submission [on z13] and >3 faster than scalar code. 51 if ($flavour =~ /3[12]/) { 66 my ($a1,$b1,$c1,$d1)=map(($_&~3)+(($_+1)&3),($a0,$b0,$c0,$d0)); 67 my ($a2,$b2,$c2,$d2)=map(($_&~3)+(($_+1)&3),($a1,$b1,$c1,$d1)); 68 my ($a3,$b3,$c3,$d3)=map(($_&~3)+(($_+1)&3),($a2,$b2,$c2,$d2)); 79 # 3 7 11 15 83 # 3 4 9 14 96 xr (@x[$d1],@x[$a1]); 98 rll (@x[$d1],@x[$d1],16); [all …]
|
H A D | chacha-ia64.pl | 64 movl @k[3]=0x6b206574 };; 77 { .mmi; mov @x[3]=@k[3] 102 my ($a1,$b1,$c1,$d1)=map(($_&~3)+(($_+1)&3),($a0,$b0,$c0,$d0)); 103 my ($a2,$b2,$c2,$d2)=map(($_&~3)+(($_+1)&3),($a1,$b1,$c1,$d1)); 104 my ($a3,$b3,$c3,$d3)=map(($_&~3)+(($_+1)&3),($a2,$b2,$c2,$d2)); 112 xor @x[$d1]=@x[$d1],@x[$a1] };; 116 { .mii; extr.u @y[1]=@x[$d1],16,16 120 dep @x[$d1]=@x[$d1],@y[1],16,16 };; 121 { .mii; add @x[$c1]=@x[$c1],@x[$d1] 123 extr.u @y[3]=@x[$d3],16,16 };; [all …]
|
/freebsd/crypto/openssl/crypto/des/ |
H A D | cfb_enc.c | 24 * will come from the 3rd and half the 4th byte. 34 register DES_LONG d0, d1, v0, v1; in DES_cfb_encrypt() local 63 c2ln(in, d0, d1, n); in DES_cfb_encrypt() 66 d1 ^= ti[1]; in DES_cfb_encrypt() 67 l2cn(d0, d1, out, n); in DES_cfb_encrypt() 78 v1 = d1; in DES_cfb_encrypt() 85 l2c(d1, iv); in DES_cfb_encrypt() 87 sh[0] = v0, sh[1] = v1, sh[2] = d0, sh[3] = d1; in DES_cfb_encrypt() 110 c2ln(in, d0, d1, n); in DES_cfb_encrypt() 121 v1 = d1; in DES_cfb_encrypt() [all …]
|
/freebsd/usr.bin/diff3/ |
H A D | diff3.c | 15 * 3. All advertising materials mentioning features or use of this software 48 * 3. Neither the name of the University nor the names of its contributors 94 #define DIFF_TYPE3 3 108 #define EFLAG_UNMERGED 3 123 static FILE *fp[3]; 124 static int cline[3]; /* # of the last-read line in each file (0-2) */ 126 * The latest known correspondence between line numbers of the 3 files 127 * is stored in last[1-3]; 169 #define OPTIONS "3aAeEiL:mTxX" 178 { "easy-only", no_argument, NULL, '3' }, [all …]
|
/freebsd/crypto/openssl/ssl/statem/ |
H A D | statem_dtls.c | 26 … for (ii = (start); ii < (end); ii++) bitmask[((ii) >> 3)] |= (1 << ((ii) & 7)); \ 29 bitmask[((start) >> 3)] |= bitmask_start_values[((start) & 7)]; \ 30 … for (ii = (((start) >> 3) + 1); ii < ((((end) - 1)) >> 3); ii++) bitmask[ii] = 0xff; \ 31 bitmask[(((end) - 1) >> 3)] |= bitmask_end_values[((end) & 7)]; \ 37 … if (bitmask[(((msg_len) - 1) >> 3)] != bitmask_end_values[((msg_len) & 7)]) is_complete = 0; \ 38 if (is_complete) for (ii = (((msg_len) - 1) >> 3) - 1; ii >= 0 ; ii--) \ 119 if (s->d1->mtu < dtls1_min_mtu(s)) in dtls1_do_write() 125 s->d1->w_msg_hdr.msg_len + DTLS1_HM_HEADER_LENGTH)) in dtls1_do_write() 180 frag_off = s->d1->w_msg_hdr.frag_off; in dtls1_do_write() 186 if (s->d1->mtu > used_len) in dtls1_do_write() [all …]
|
/freebsd/sys/contrib/device-tree/src/riscv/allwinner/ |
H A D | sunxi-d1s-t113.dtsi | 7 #include <dt-bindings/clock/sun20i-d1-ccu.h> 8 #include <dt-bindings/clock/sun20i-d1-r-ccu.h> 11 #include <dt-bindings/reset/sun20i-d1-ccu.h> 12 #include <dt-bindings/reset/sun20i-d1-r-ccu.h> 25 compatible = "allwinner,sun20i-d1-display-engine"; 38 compatible = "allwinner,sun20i-d1-pinctrl"; 52 #gpio-cells = <3>; 53 #interrupt-cells = <3>; 149 compatible = "allwinner,sun20i-d1-ccu"; 160 compatible = "allwinner,sun20i-d1-gpadc"; [all …]
|
/freebsd/sys/crypto/openssl/arm/ |
H A D | poly1305-armv4.S | 47 ldrb r7,[r1,#3] 180 ldrb r1,[lr,#-3] 230 adds r2,r2,r1 @ d1+=d0>>32 250 adds r6,lr,r0 @ d2+=d1>>32 259 and r8,r8,#3 364 strb r3,[r1,#3] 403 vdup.32 d1,r3 420 @ d1 = h1*r0 + h0*r1 + h4*5*r2 + h3*5*r3 + h2*5*r4 426 vmull.u32 q6,d1,d0[1] 432 vmlal.u32 q6,d0,d1[1] [all …]
|
/freebsd/crypto/openssl/ssl/ |
H A D | d1_lib.c | 69 DTLS1_STATE *d1; in dtls1_new() local 77 if ((d1 = OPENSSL_zalloc(sizeof(*d1))) == NULL) { in dtls1_new() 82 d1->buffered_messages = pqueue_new(); in dtls1_new() 83 d1->sent_messages = pqueue_new(); in dtls1_new() 86 d1->cookie_len = sizeof(s->d1->cookie); in dtls1_new() 89 d1->link_mtu = 0; in dtls1_new() 90 d1->mtu = 0; in dtls1_new() 92 if (d1->buffered_messages == NULL || d1->sent_messages == NULL) { in dtls1_new() 93 pqueue_free(d1->buffered_messages); in dtls1_new() 94 pqueue_free(d1->sent_messages); in dtls1_new() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/ |
H A D | u8.h | 67 #define VEC8_ROUND_SEQ(A1, B1, C1, D1, A2, B2, C2, D2, A3, B3, C3, D3, A4, B4, \ argument 69 VEC8_LINE1(A1, B1, C1, D1); \ 73 VEC8_LINE2(A1, B1, C1, D1); \ 77 VEC8_LINE3(A1, B1, C1, D1); \ 81 VEC8_LINE4(A1, B1, C1, D1); \ 86 #define VEC8_ROUND_HALF(A1, B1, C1, D1, A2, B2, C2, D2, A3, B3, C3, D3, A4, \ argument 88 VEC8_LINE1(A1, B1, C1, D1); \ 90 VEC8_LINE2(A1, B1, C1, D1); \ 92 VEC8_LINE3(A1, B1, C1, D1); \ 94 VEC8_LINE4(A1, B1, C1, D1); \ [all …]
|