| /freebsd-src/lib/libc/tests/gen/ |
| H A D | fnmatch_testcases.h | 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 35 { "", "", 0, 0 }, 36 { "a", "a", 0, 0 }, 37 { "a", "b", 0, FNM_NOMATCH }, 38 { "a", "A", 0, FNM_NOMATCH }, 39 { "*", "a", 0, 0 }, 40 { "*", "aa", 0, 0 }, 41 { "*a", "a", 0, 0 }, 42 { "*a", "b", 0, FNM_NOMATCH }, 43 { "*a*", "b", 0, FNM_NOMATCH }, [all …]
|
| /freebsd-src/contrib/libfido2/regress/ |
| H A D | assert.c | 3 * Use of this source code is governed by a BSD-style 23 0x34, 0xeb, 0x99, 0x77, 0x02, 0x9c, 0x36, 0x38, 24 0xbb, 0xc2, 0xae, 0xa0, 0xa0, 0x18, 0xc6, 0x64, 25 0xfc, 0xe8, 0x49, 0x92, 0xd7, 0x74, 0x9e, 0x0c, 26 0x46, 0x8c, 0x9d, 0xa6, 0xdf, 0x46, 0xf7, 0x84, 27 0x60, 0x1e, 0x0f, 0x8b, 0x23, 0x85, 0x4a, 0x9a, 28 0xec, 0xc1, 0x08, 0x9f, 0x30, 0xd0, 0x0d, 0xd7, 29 0x76, 0x7b, 0x55, 0x48, 0x91, 0x7c, 0x4f, 0x0f, 30 0x64, 0x1a, 0x1d, 0xf8, 0xbe, 0x14, 0x90, 0x8a, 34 0x9e, 0x54, 0x78, 0xb2, 0x51, 0xbe, 0x19, 0x7c, [all …]
|
| /freebsd-src/contrib/arm-optimized-routines/math/ |
| H A D | pow_log_data.c | 13 .ln2hi = 0x1.62e42fefa3800p-1, 14 .ln2lo = 0x1.ef35793c76730p-45, 17 // relative error: 0x1.11922ap-70 18 // in -0x1.6bp-8 0x1.6bp-8 20 -0x1p-1, 21 0x1.555555555556p-2 * -2, 22 -0x1.0000000000006p-2 * -2, 23 0x1.999999959554ep-3 * 4, 24 -0x1.555555529a47ap-3 * 4, 25 0x1.2495b9b4845e9p-3 * -8, [all …]
|
| /freebsd-src/crypto/openssl/crypto/sha/ |
| H A D | keccak1600.c | 5 * this file except in compliance with the License. You can obtain a copy 14 size_t SHA3_absorb(uint64_t A[5][5], const unsigned char *inp, size_t len, 16 void SHA3_squeeze(uint64_t A[5][5], unsigned char *out, size_t len, size_t r); 47 # define BIT_INTERLEAVE (0) 52 #define ROL32(a, offset) (((a) << (offset)) | ((a) >> ((32 - (offset)) & 31))) argument 56 if (offset == 0) { in ROL64() 80 { 0, 1, 62, 28, 27 }, 88 BIT_INTERLEAVE ? 0x0000000000000001ULL : 0x0000000000000001ULL, 89 BIT_INTERLEAVE ? 0x0000008900000000ULL : 0x0000000000008082ULL, 90 BIT_INTERLEAVE ? 0x8000008b00000000ULL : 0x800000000000808aULL, [all …]
|
| /freebsd-src/crypto/openssl/crypto/sha/asm/ |
| H A D | keccak1600-c64x.pl | 5 # this file except in compliance with the License. You can obtain a copy 21 # with bit interleaving. 64-bit values are simply split between A- and 22 # B-files, with A-file holding least significant halves. This works 25 # [incredible for a 32-bit processor] 10.9 cycles per processed byte 30 my @A = map([ $_, ($_+1), ($_+2), ($_+3), ($_+4) ], (5,10,16,21,26)); 31 $A[1][4] = 31; # B14 is reserved, A14 is used as iota[] 32 ($A[3][0],$A[4][1]) = ($A[4][1],$A[3][0]); 33 my @C = (0..4,$A[3][0],$A[4][0]); 36 my @rhotates = ([ 0, 1, 62, 28, 27 ], 47 $p ROTL B$src,$rot/2+1,A$dst [all …]
|
| H A D | keccak1600-armv8.pl | 5 # this file except in compliance with the License. You can obtain a copy 62 # $output is the last argument if it looks like a file (it has an extension) 63 # $flavour is the first argument if it doesn't look like a file 64 $output = $#ARGV >= 0 && $ARGV[$#ARGV] =~ m|\.\w+$| ? pop : undef; 65 $flavour = $#ARGV >= 0 && $ARGV[0] !~ m|\.| ? shift : undef; 67 $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; 76 my @rhotates = ([ 0, 1, 62, 28, 27 ], 89 .quad 0,0,0,0,0,0,0,0 92 .quad 0x0000000000000001 93 .quad 0x0000000000008082 [all …]
|
| H A D | keccak1600-ppc64.pl | 5 # this file except in compliance with the License. You can obtain a copy 40 # $output is the last argument if it looks like a file (it has an extension) 41 # $flavour is the first argument if it doesn't look like a file 42 $output = $#ARGV >= 0 && $ARGV[$#ARGV] =~ m|\.\w+$| ? pop : undef; 43 $flavour = $#ARGV >= 0 && $ARGV[0] !~ m|\.| ? shift : undef; 54 $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; 68 my @A = map([ "r$_", "r".($_+1), "r".($_+2), "r".($_+3), "r".($_+4) ], 70 $A[1][1] = "r6"; # r13 is reserved 72 my @C = map("r$_", (0,3,4,5)); 74 my @rhotates = ([ 0, 1, 62, 28, 27 ], [all …]
|
| /freebsd-src/contrib/bearssl/src/ec/ |
| H A D | ec_p256_m15.c | 5 * a copy of this software and associated documentation files (the 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 28 * If BR_NO_ARITH_SHIFT is undefined, or defined to 0, then we _assume_ 29 * that right-shifting a signed negative integer copies the sign bit 45 * Convert an integer from unsigned big-endian encoding to a sequence of 55 acc = 0; in be8_to_le13() 56 acc_len = 0; in be8_to_le13() 57 while (len -- > 0) { in be8_to_le13() 61 *dst ++ = acc & 0x1FFF; in be8_to_le13() 80 acc = 0; in le13_to_be8() [all …]
|
| H A D | ec_c25519_m31.c | 5 * a copy of this software and associated documentation files (the 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 37 for (u = 0; u < 9; u ++) { 38 if (x[u] > 0x3FFFFFFF) { 40 for (u = 0; u < 9; u ++) { 47 memset(tmp, 0, sizeof tmp); 48 for (u = 0; u < 9; u ++) { 55 if (k != 0) { 60 for (j = 0; j < 8; j ++) { 73 * If BR_NO_ARITH_SHIFT is undefined, or defined to 0, then we _assume_ [all …]
|
| /freebsd-src/contrib/libarchive/libarchive/test/ |
| H A D | test_read_format_rar.c | 18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 33 struct archive *a; in DEFINE_TEST() local 38 assert((a = archive_read_new()) != NULL); in DEFINE_TEST() 39 assertA(0 == archive_read_support_filter_all(a)); in DEFINE_TEST() 40 assertA(0 == archive_read_set_format(a, ARCHIVE_FORMAT_RAR)); in DEFINE_TEST() 41 assertA(0 == archive_read_open_filename(a, reffile, 10240)); in DEFINE_TEST() 42 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST() 43 assertEqualIntA(a, ARCHIVE_OK, archive_read_close(a)); in DEFINE_TEST() 44 assertEqualInt(ARCHIVE_OK, archive_read_free(a)); in DEFINE_TEST() 54 struct archive *a; in DEFINE_TEST() local [all …]
|
| H A D | test_write_format_iso9660_zisofs.c | 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 28 * Check that a "zisofs" ISO 9660 image is correctly created. 32 0x01, 0x43, 0x44, 0x30, 0x30, 0x31, 0x01, 0x00 35 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23 38 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36 41 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28 44 0x00, 0x43, 0x00, 0x44, 0x00, 0x52, 0x00, 0x4f, 45 0x00, 0x4d, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 46 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 47 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20 [all …]
|
| H A D | test_write_format_zip_empty_zip64.c | 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 34 struct archive *a; in DEFINE_TEST() local 39 /* Zip format: Create a new archive in memory. */ in DEFINE_TEST() 40 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 41 assertEqualIntA(a, ARCHIVE_OK, archive_write_set_format_zip(a)); in DEFINE_TEST() 42 assertEqualIntA(a, ARCHIVE_OK, archive_write_add_filter_none(a)); in DEFINE_TEST() 43 assertEqualIntA(a, ARCHIVE_OK, archive_write_set_bytes_per_block(a, 1)); in DEFINE_TEST() 44 assertEqualIntA(a, ARCHIVE_OK, archive_write_set_bytes_in_last_block(a, 1)); in DEFINE_TEST() 46 assertEqualIntA(a, ARCHIVE_OK, archive_write_set_format_option(a, "zip", "zip64", "1")); in DEFINE_TEST() 47 assertEqualIntA(a, ARCHIVE_OK, archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST() [all …]
|
| H A D | test_archive_pathmatch.c | 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 36 * [...] - matches any of a set of chars, '-' specifies a range, 39 * The specification in SUSv2 is a bit incomplete, I assume the following: 42 * TODO: Figure out if there's a good way to extend this to handle 43 * Windows paths that use '\' as a path separator. <sigh> 48 assertEqualInt(1, archive_pathmatch("a/b/c", "a/b/c", 0)); in DEFINE_TEST() 49 assertEqualInt(0, archive_pathmatch("a/b/", "a/b/c", 0)); in DEFINE_TEST() 50 assertEqualInt(0, archive_pathmatch("a/b", "a/b/c", 0)); in DEFINE_TEST() 51 assertEqualInt(0, archive_pathmatch("a/b/c", "a/b/", 0)); in DEFINE_TEST() 52 assertEqualInt(0, archive_pathmatch("a/b/c", "a/b", 0)); in DEFINE_TEST() [all …]
|
| H A D | test_read_format_rar5.c | 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 35 struct archive *a; \ 37 (void) a; /* Make the compiler happy if we won't use this variables */ \ 41 assert((a = archive_read_new()) != NULL); \ 42 assertA(0 == archive_read_support_filter_all(a)); \ 43 assertA(0 == archive_read_support_format_all(a)); \ 44 assertA(0 == archive_read_open_filename(a, reffil 93 extract_one(struct archive * a,struct archive_entry * ae,uint32_t crc) extract_one() argument 121 struct archive *a; DEFINE_TEST() local 844 struct archive *a; DEFINE_TEST() local 1324 struct archive *a; DEFINE_TEST() local [all...] |
| /freebsd-src/contrib/netbsd-tests/lib/libc/regex/data/att/ |
| H A D | nullsubexpr.dat | 3 E (a*)* a (0,1)(0,1) 4 E SAME x (0,0)(0,0) 5 E SAME aaaaaa (0,6)(0,6) 6 E SAME aaaaaax (0,6)(0,6) 7 E (a*)+ a (0,1)(0,1) 8 E SAME x (0,0)(0,0) 9 E SAME aaaaaa (0,6)(0,6) 10 E SAME aaaaaax (0,6)(0,6) 11 E (a+)* a (0,1)(0,1) 12 E SAME x (0,0) [all …]
|
| H A D | basic.dat | 4 BE a...b abababbb (2,7) 7 BE a] a]a (0,2) 8 B } } (0,1) 9 E \} } (0,1) 10 BE \] ] (0,1) 11 B ] ] (0,1) 12 E ] ] (0,1) 13 B { { (0,1) 14 B } } (0,1) 15 BE ^a ax (0,1) [all …]
|
| /freebsd-src/crypto/openssl/crypto/bn/asm/ |
| H A D | x86_64-gcc.c | 5 * this file except in compliance with the License. You can obtain a copy 25 * A. Well, that's because this code is basically a quick-n-dirty 31 * A. x86_64 features own ABI which I'm not familiar with. This is 37 * A. 'apps/openssl speed rsa dsa' output with no-asm: 70 * "m"(a), "+m"(r) is the way to favor DirectPath µ-code; 71 * "g"(0) let the compiler to decide where does it 74 # define mul_add(r,a,word,carry) do { \ argument 77 : "=a"(low),"=d"(high) \ 78 : "a"(word),"m"(a) \ 80 asm ("addq %2,%0; adcq %3,%1" \ [all …]
|
| /freebsd-src/crypto/openssh/openbsd-compat/ |
| H A D | md5.c | 14 * To compute the message digest of a chunk of bytes, declare an 17 * will fill a supplied 16-byte array with the digest. 36 (cp)[0] = (value); } while (0) 42 (cp)[0] = (value); } while (0) 45 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 51 * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious 57 ctx->count = 0; in MD5Init() 58 ctx->state[0] = 0x67452301; in MD5Init() [all …]
|
| /freebsd-src/usr.bin/mkimg/tests/ |
| H A D | img-1x1-4096-mbr.raw.hex | 1 00000000 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 3 000001b0 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 80 ff |B.B.B.B.B.B.B...| 8 00000200 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 14 00000440 00 00 00 00 00 00 00 00 10 0e 00 00 00 00 00 00 |................| 17 00000480 00 00 00 00 57 45 56 82 0f 0c 08 00 00 20 00 00 |....WEV...... ..| 23 00000510 00 00 00 00 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |....B.B.B.B.B.B.| 24 00000520 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 26 00002200 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a |P.P.P.P.P.P.P.P.|
|
| H A D | img-1x1-512-mbr.raw.hex | 1 00000000 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 3 000001b0 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 80 ff |B.B.B.B.B.B.B...| 8 00000200 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 14 00000440 00 00 00 00 00 00 00 00 10 0e 00 00 00 00 00 00 |................| 17 00000480 00 00 00 00 57 45 56 82 0f 0c 08 00 00 20 00 00 |....WEV...... ..| 23 00000510 00 00 00 00 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |....B.B.B.B.B.B.| 24 00000520 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 26 00002200 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a |P.P.P.P.P.P.P.P.|
|
| H A D | img-63x255-4096-mbr.raw.hex | 1 00000000 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 3 000001b0 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 80 01 |B.B.B.B.B.B.B...| 10 00007e00 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 16 00008040 00 00 00 00 00 00 00 00 10 0e 00 00 00 00 00 00 |................| 25 00008110 00 00 00 00 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |....B.B.B.B.B.B.| 26 00008120 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 28 00009e00 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a |P.P.P.P.P.P.P.P.|
|
| H A D | img-63x255-512-mbr.raw.hex | 1 00000000 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 3 000001b0 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 80 01 |B.B.B.B.B.B.B...| 10 00007e00 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 16 00008040 00 00 00 00 00 00 00 00 10 0e 00 00 00 00 00 00 |................| 25 00008110 00 00 00 00 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |....B.B.B.B.B.B.| 26 00008120 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a 42 0a |B.B.B.B.B.B.B.B.| 28 00009e00 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a 50 0a |P.P.P.P.P.P.P.P.|
|
| /freebsd-src/crypto/openssl/test/ |
| H A D | constant_time_test.c | 5 * this file except in compliance with the License. You can obtain a copy 18 static const unsigned int CONSTTIME_TRUE = (unsigned)(~0); 19 static const unsigned int CONSTTIME_FALSE = 0; 20 static const unsigned char CONSTTIME_TRUE_8 = 0xff; 21 static const unsigned char CONSTTIME_FALSE_8 = 0; 22 static const size_t CONSTTIME_TRUE_S = ~((size_t)0); 23 static const size_t CONSTTIME_FALSE_S = 0; 24 static uint32_t CONSTTIME_TRUE_32 = (uint32_t)(~(uint32_t)0); 25 static uint32_t CONSTTIME_FALSE_32 = 0; 26 static uint64_t CONSTTIME_TRUE_64 = (uint64_t)(~(uint64_t)0); [all …]
|
| /freebsd-src/lib/libpmc/pmu-events/arch/powerpc/power8/ |
| H A D | marked.json | 3 "EventCode": "0x3515e", 5 …"BriefDescription": "Marked branch instruction completed with a target address less than current i… 9 "EventCode": "0x2013a", 15 "EventCode": "0x1016e", 21 "EventCode": "0x301e4", 27 "EventCode": "0x101e2", 33 "EventCode": "0x4d148", 35 …ified (M) data from another chip's L2 or L3 on a different Node or Group (Distant), as this chip d… 39 "EventCode": "0x2d128", 41 …ified (M) data from another chip's L2 or L3 on a different Node or Group (Distant), as this chip d… [all …]
|
| /freebsd-src/lib/libpmc/pmu-events/arch/x86/cascadelakex/ |
| H A D | uncore-other.json | 4 "Counter": "0,1,2,3", 11 "Counter": "0,1,2,3", 12 "EventCode": "0x35", 14 "Filter": "config1=0x40e33", 16 "UMask": "0x21", 21 "Counter": "0,1,2,3", 22 "EventCode": "0x35", 24 "Filter": "config1=0x40e33", 26 "UMask": "0x21", 31 "Counter": "0,1,2,3", [all …]
|