/freebsd/contrib/bearssl/inc/ |
H A D | bearssl_hash.h | 48 * - `br_xxx_vtable` 52 * - `br_xxx_SIZE` 54 * A macro that evaluates to the output size (in bytes) of the 57 * - `br_xxx_ID` 64 * standard](https://tools.ietf.org/html/rfc5246#section-7.4.1.4.1), 66 * 1 to 6 for MD5, SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512, 69 * - `br_xxx_context` 80 * - `br_xxx_init(br_xxx_context *ctx)` 88 * - `br_xxx_update(br_xxx_context *ctx, const void *data, size_t len)` 90 * Add some more bytes to the hash computation represented by the [all …]
|
/freebsd/tests/sys/geom/class/eli/ |
H A D | conf.sh | 13 [ -c /dev/mdctl ] || atf_skip "no /dev/mdctl to create md devices" 14 _md=$(mdconfig -a "$@") || atf_fail "failed to allocate md(4)" 28 # geli needs 512B for the label. 29 bytes=`expr $osecsize \* $sectors + 512`b 31 if [ -n "$backing_filename" ]; then 32 # Use a file-backed md(4) device, so we can deliberatly corrupt 34 truncate -s $bytes backing_file 35 attach_md md -t vnode -f backing_file 37 attach_md md -t malloc -s $bytes 40 for cipher in aes-xts:128 aes-xts:256 \ [all …]
|
H A D | integrity_test.sh | 11 atf_check -s exit:0 -e ignore \ 12 geli init -B none -a $aalgo -e $ealgo -l $keylen -P \ 13 -K keyfile -s $secsize ${md} 14 atf_check geli attach -p -k keyfile ${md} 20 atf_check dd if=backing_file of=sector bs=512 count=1 \ 22 atf_check dd if=sector of=backing_file bs=512 count=1 seek=1 \ 25 atf_check -s not-exit:0 -e ignore \ 35 ms=`diskinfo /dev/${md} | awk '{print $3 - 512}'` 37 usecsize=`echo "($ms / $ns) - (($ms / $ns) % 512)" | bc` 38 atf_check dd if=backing_file bs=512 count=$(( ${usecsize} / 512 )) \ [all …]
|
H A D | online_resize_test.sh | 16 echo "m 512 none 10485248 1 1 20971008 1 1 31456768 1 1" 18 echo "m 512 HMAC/SHA256 5242368 1 1 10485248 1 1 15728128 1 1" 20 …echo "p 512 none 11258999068425728 [0-9] 20971520 22517998136851968 [0-9] 41943040 337769972052782… 21 …echo "p 4096 none 11258999068422144 [0-9] 2621440 22517998136848384 [0-9] 5242880 3377699720527462… 22 …echo "p 512 HMAC/SHA256 5629499534212608 [0-9] 20971520 11258999068425728 [0-9] 41943040 168884986… 23 …ho "p 4096 HMAC/SHA256 10007999171932160 [0-9] 20971520 20015998343868416 [0-9] 41943040 300239975… 30 aalgo="-a ${auth}" 45 attach_md md -t malloc -s40${prefix} 48 atf_check -s exit:0 -o ignore gpart create -s GPT ${md} 49 atf_check -s exit:0 -o ignore gpart add -t freebsd-ufs -s 10${prefix} ${md} [all …]
|
/freebsd/usr.sbin/fstyp/ |
H A D | hammer2_disk.h | 1 /*- 2 * Copyright (c) 2011-2018 The DragonFly Project. All rights reserved. 44 * dmsg_hdr must be 64 bytes 57 uint32_t aux_bytes; /* 28 auxiliary data length (bytes) */ 68 * The structures below represent the on-disk media structures for the HAMMER2 69 * filesystem. Note that all fields for on-disk structures are naturally 70 * aligned. The host endian format is typically used - compatibility is 77 * references utilize 64-bit byte offsets. 91 * fragments might be supported in the future (down to 64 bytes is possible), 94 * A full indirect block use supports 512 [all...] |
H A D | fstyp.c | 1 /*- 64 * For example, the header for an MS-DOS file system begins at offset 0, 66 * was constructed as MS-DOS and then repurposed as UFS (via newfs), it 67 * is possible the MS-DOS header will still be intact. To prevent 69 * with the largest offset first (i.e., UFS before MS-DOS). 81 * offsets: 64k, 8k, 0k, 256k + 8192 bytes 84 /* offset 32768 + 512 bytes */ 86 /* offset 1024 + 512 bytes */ 88 /* offset 1024 + 512 bytes */ 90 /* offset 512 + 36 bytes */ [all …]
|
/freebsd/usr.sbin/fdcontrol/ |
H A D | fdcontrol.8 | 43 utility allows the modification of the run-time behavior of the 108 .Bl -item 111 .Bd -ragged -offset indent -compact 116 1721 21 2 (512) 82 500 2 MFM 117 1476 18 2 (512) 82 500 2 MFM 118 1440 18 2 (512) 80 500 2 MFM 119 1200 15 2 (512) 80 500 2 MFM 120 820 10 2 (512) 82 250 2 MFM 121 800 10 2 (512) 80 250 2 MFM 122 720 9 2 (512) 80 250 2 MFM [all …]
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | gpt | 2 #------------------------------------------------------------------------------ 7 # Note that a GPT-formatted disk must contain an MBR as well. 13 # (use -k if you do want them as well) 35 #>>>>>>>>>>>>>446 use gpt-mbr-partition 37 >>>>>>>>>>>>>>0 use gpt-mbr-type 38 >>>>>>>>>>>>>>&-8 use gpt-table 39 >>>>>>>>>>>>>>0 ubyte x of 8192 bytes 42 >>>>>>>>>>>>>>>0 use gpt-mbr-type 43 >>>>>>>>>>>>>>>&-8 use gpt-table 44 >>>>>>>>>>>>>>>0 ubyte x of 4096 bytes [all …]
|
H A D | map | 2 #------------------------------------------------------------------------------ 7 # Garmin .FIT files https://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml 12 # https://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml 14 # TZ=GMT date -d '1989-12-31 0:00' +%s 32 # sourceforge.net/projects/garmin-img/files/IMG%20File%20Format/1.0/imgformat-1.0.pdf 37 >>0 use garmin-map 38 0 name garmin-map 40 !:mime application/x-garmin-map 41 # If non-zero, every byte of the entire .img file is to be XORed with this value 44 >(0x40.b*512) ubyte x [all …]
|
H A D | intel | 2 #------------------------------------------------------------------------------ 11 # whatever comes next (HP-PA Hummingbird?). OS/2 may also go elsewhere 14 # The `versions' should be un-commented if they work for you. 17 0 leshort 0502 basic-16 executable 19 #>22 leshort >0 - version %d 20 0 leshort 0503 basic-16 executable (TV) 22 #>22 leshort >0 - version %d 29 #>22 leshort >0 - version %d 32 #>22 leshort >0 - version %d 38 # SGI labeled the next entry as "iAPX 386 executable" --Dan Quinlan [all …]
|
/freebsd/sys/geom/eli/ |
H A D | g_eli_integrity.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2011 Pawel Jakub Dawidek <pawel@dawidek.net> 58 * 512 bytes and a power of two number. 60 * Let's store HMAC in sector. This is a must. This leaves us 480 bytes for 61 * data. We can't use that directly (ie. we can't create provider with 480 bytes 62 * sector size). We need another sector from where we take only 32 bytes of data 66 * Now, let's assume, we want to create provider with 4096 bytes sector. 67 * To output 4096 bytes of authenticated data we need 8x480 plus 1x256, so we 68 * need nine 512-bytes sectors at the input to get one 4096-bytes sector at the [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_write_format_tar_v7tar.c | 1 /*- 2 * Copyright (c) 2003-2007 Tim Kientzle 34 --l; in is_null() 40 /* Verify the contents, then erase them to NUL bytes. */ 41 /* Tar requires all "unused" bytes be set to NUL; this allows us 85 /* "file" with 10 bytes of content */ in DEFINE_TEST() 100 /* Hardlink to "file" with 10 bytes of content */ in DEFINE_TEST() 114 /* Write of data to dir should fail == zero bytes get written. */ in DEFINE_TEST() 126 /* Write of data to dir should fail == zero bytes ge in DEFINE_TEST() [all...] |
H A D | test_write_format_tar_ustar.c | 1 /*- 2 * Copyright (c) 2003-2007 Tim Kientzle 33 --l; in is_null() 39 /* Verify the contents, then erase them to NUL bytes. */ 40 /* Tar requires all "unused" bytes be set to NUL; this allows us 90 /* "file" with 10 bytes of content */ in DEFINE_TEST() 106 /* Hardlink to "file" with 10 bytes of content */ in DEFINE_TEST() 121 /* Write of data to dir should fail == zero bytes get written. */ in DEFINE_TEST() 134 /* Write of data to dir should fail == zero bytes ge in DEFINE_TEST() [all...] |
/freebsd/lib/libc/gen/ |
H A D | getbsize.3 | 52 may be specified directly in bytes, or in multiples of a kilobyte by 61 are 512 bytes to 1 gigabyte. 62 Sizes less than 512 bytes are rounded up to 512 bytes, and sizes 71 function returns a pointer to a null-terminated string describing 73 .Dq 1K-blocks . 80 is filled in with block size, in bytes.
|
/freebsd/contrib/dialog/samples/install/ |
H A D | FDISK.TEST | 3 Units = cylinders of 868 * 512 bytes 7 /dev/hda2 4 4 287 123256 6 DOS 16-bit >=32M 12 Units = cylinders of 2048 * 512 bytes 19 Units = cylinders of 2048 * 512 bytes
|
/freebsd/tools/tools/nanobsd/ |
H A D | FlashDevice.sub | 3 # Copyright (c) 2005 Poul-Henning Kamp. 46 NANO_MEDIASIZE=`expr 256204800 / 512` 60 NANO_MEDIASIZE=`expr 259596288 / 512` 65 echo "Unknown Integral i-Pro Flash capacity" 74 NANO_MEDIASIZE=`expr 64487424 / 512` 87 512|512mb) 89 NANO_MEDIASIZE=`expr 519192576 / 512` 104 # Document No. 20-10-00038 106 # Table 2-7 107 # NB: notice math error in SDCFJ-4096-388 line. [all …]
|
/freebsd/crypto/openssh/ |
H A D | progressmeter.c | 48 #define MAX_WINSIZE 512 71 static int bytes_per_second; /* current speed in bytes per second */ 89 format_rate(off_t bytes) in format_rate() argument 92 static char buf[STRING_SIZE(bytes) * 2 + 16]; in format_rate() 94 bytes *= 100; in format_rate() 95 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) in format_rate() 96 bytes = (bytes + 512) / 1024; in format_rate() 99 bytes = (bytes + 512) / 1024; in format_rate() 102 (long long) (bytes + 5) / 100, in format_rate() 103 (long long) (bytes + 5) / 10 % 10, in format_rate() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/mtd/ |
H A D | gpmc-nand.txt | 7 explained in a separate documents - please refer to 8 Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt 11 Documentation/devicetree/bindings/mtd/nand-controller.yaml 16 - compatible: "ti,omap2-nand" 17 - reg: range id (CS number), base offset and length of the 19 - interrupts: Two interrupt specifiers, one for fifoevent, one for termcount. 23 - nand-bus-width: Set this numeric value to 16 if the hardware 27 - ti,nand-ecc-opt: A string setting the ECC layout to use. One of: 28 "sw" 1-bit Hamming ecc code via software 30 "hw-romcode" <deprecated> use "ham1" instead [all …]
|
/freebsd/lib/libc/tests/stdio/ |
H A D | fmemopen2_test.c | 1 /*- 36 #include <atf-c.h> 41 /* Use a pre-existing buffer. */ in ATF_TC_BODY() 42 char buf[512]; in ATF_TC_BODY() 43 char buf2[512]; in ATF_TC_BODY() 63 /* Re-open the FILE * to read back the data. */ in ATF_TC_BODY() 83 /* Now open a FILE * on the first 4 bytes of the string. */ in ATF_TC_BODY() 88 * Try to write more bytes than we shoud, we'll get a short count (4). in ATF_TC_BODY() 97 /* Check that the string was not modified after the first 4 bytes. */ in ATF_TC_BODY() 111 fp = fmemopen(NULL, 512, "w+"); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/ldns/ldns/ |
H A D | sha2.h | 3 * AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/ 5 * Copyright (c) 2000-2001, Aaron D. Gifford 9 * system-defined SHA code. 11 * - Renamed (external) functions and constants to fit ldns style 12 * - Removed uintXX vs. u_intXX smartness, since ldns needs uintXX 14 * - BYTE ORDER check replaced by simple ifdef as defined or not by 16 * - Removed _End and _Data functions 17 * - Added ldns_shaX(data, len, digest) functions 61 /*** SHA-256/384/512 Various Length Definitions ***********************/ 73 /*** SHA-256/384/512 Context Structures *******************************/ [all …]
|
/freebsd/share/doc/psd/04.uprog/ |
H A D | p4 | 1 .\" Copyright (C) Caldera International Inc. 2001-2002. All rights reserved. 39 LOW-LEVEL I/O 150 The third argument is the number of bytes to be transferred. 158 which is the number of bytes actually transferred. 160 the number of bytes returned may be less than 164 bytes remained to be read. 169 A return value of zero bytes implies end of file, 171 .UL -1 173 For writing, the returned value is the number of bytes 178 The number of bytes to be read or written is quite arbitrary. [all …]
|
/freebsd/contrib/smbfs/ |
H A D | README | 14 FreeBSD-current Everything available in the base system. 36 IOZONE: auto-test mode 37 MB reclen bytes/sec written bytes/sec read 38 1 512 339791 323416 45 IOZONE: auto-test mode 46 MB reclen bytes/sec written bytes/sec read 47 1 512 409200 437191
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_gnutar.c | 1 /*- 2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (c) 2011-2012 Michihiro NAKAJIMA 107 * A filled-in copy of the header for initialization. 110 /* name: 100 bytes */ 115 /* Mode, null termination: 8 bytes */ 117 /* uid, null termination: 8 bytes */ 119 /* gid, null termination: 8 bytes */ 121 /* size, space termination: 12 bytes */ 123 /* mtime, space termination: 12 bytes */ [all …]
|
/freebsd/bin/dd/ |
H A D | dd.1 | 1 .\"- 45 Input data is read and written in 512-byte blocks. 54 .Bl -tag -width "of=file" 58 bytes, superseding the 73 bytes. 97 bytes instead of the default 512. 106 .Bl -tag -width "fullblock" 129 bytes instead of the default 512. 145 .Bl -tag -width "direct" 166 On non-tape devices, an [all …]
|
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/ |
H A D | dklabel.h | 10 * or https://opensource.org/licenses/CDDL-1.0. 23 * Copyright 1990-2002 Sun Microsystems, Inc. All rights reserved. 57 #define DK_LABEL_SIZE 512 /* size of disk label */ 73 * sizeof (struct dk_label) should be 512 (the current sector size), 90 * Fixed size for on-disk dk_label 117 * Fixed sized types for on-disk VTOC 126 uint16_t v_sectorsz; /* sector size in bytes */ 148 * the entire structure occupy 512 bytes. 151 #define LEN_DKL_PAD (DK_LABEL_SIZE - \ 158 - ((LEN_DKL_ASCII) + \ [all …]
|