/freebsd-current/crypto/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon_local.h | 12 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize); 13 int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize); 15 unsigned char *buf, size_t *buflen, size_t blocksize,
|
H A D | ciphercommon_block.c | 38 * of data remaining in the input that is a multiple of the blocksize. The buffer 42 * buf: a buffer of blocksize bytes 45 * less than the blocksize 46 * blocksize: size of a block. Must be greater than 0 and a power of 2 54 * which is a multiple of the blocksize. 57 size_t blocksize, 60 size_t blockmask = ~(blocksize - 1); 61 size_t bufremain = blocksize - *buflen; 63 assert(*buflen <= blocksize); 64 assert(blocksize > 56 ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) argument 80 ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) argument 99 ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize) argument 108 ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize) argument 158 ossl_cipher_tlsunpadblock(OSSL_LIB_CTX *libctx, unsigned int tlsversion, unsigned char *buf, size_t *buflen, size_t blocksize, unsigned char **mac, int *alloced, size_t macsize, int aead) argument [all...] |
/freebsd-current/tests/sys/file/ |
H A D | fspacectl_test.c | 50 blksize_t blocksize; local 54 blocksize = statbuf.st_blksize; 56 buf = malloc(blocksize); 61 blen = len < (off_t)blocksize ? len : blocksize; 93 blksize_t blocksize; local 95 blocksize = fd_get_blksize(); 96 if (blocksize == -1) 99 buf = malloc(blocksize * 2); 102 sblk = buf + blocksize; 188 blksize_t blocksize; local 213 blksize_t blocksize; local 238 blksize_t blocksize; local 262 blksize_t blocksize; local 286 blksize_t blocksize; local 311 blksize_t blocksize; local [all...] |
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | crypto-evp.c | 101 size_t i, blocksize; local 109 blocksize = EVP_CIPHER_CTX_block_size(c); 111 if (len < blocksize) { 115 } else if (len == blocksize) { 129 i = ((len - 1) / blocksize) * blocksize; 131 p += i - blocksize; 133 memcpy(ivec2, p, blocksize); 136 tmp[i] = p[i + blocksize] ^ ivec2[i]; 137 for (; i < blocksize; [all...] |
/freebsd-current/contrib/libarchive/libarchive/test/ |
H A D | test_write_format_tar.c | 36 size_t blocksize; local 39 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { 47 archive_write_set_bytes_per_block(a, (int)blocksize)); 49 archive_write_set_bytes_in_last_block(a, (int)blocksize)); 50 assertEqualInt(blocksize, 54 assertEqualInt(blocksize, 83 failure("blocksize [all...] |
H A D | test_write_open_memory.c | 48 size_t blocksize = 94; local 55 archive_write_set_bytes_per_block(a, (int)blocksize)); 60 if (i < (511/blocksize)*blocksize)
|
H A D | test_write_format_tar_sparse.c | 36 size_t blocksize; local 45 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { 53 archive_write_set_bytes_per_block(a, (int)blocksize)); 55 archive_write_set_bytes_in_last_block(a, (int)blocksize)); 56 assertEqualInt(blocksize, 60 assertEqualInt(blocksize, 96 failure("blocksize 179 size_t blocksize = 20 * 512; local [all...] |
H A D | test_write_filter_program.c | 36 int blocksize = 1024; local 43 /* NOTE: Setting blocksize=1024 will cause gunzip failure because 45 * exit code 1. So we should set blocksize=1 in order not to 50 blocksize = 1; 64 assertA(0 == archive_write_set_bytes_per_block(a, blocksize)); 65 assertA(0 == archive_write_set_bytes_in_last_block(a, blocksize)); 66 assertA(blocksize == archive_write_get_bytes_in_last_block(a)); 68 assertA(blocksize == archive_write_get_bytes_in_last_block(a));
|
/freebsd-current/usr.bin/hexdump/ |
H A D | hexdump.c | 43 int blocksize; /* data block size */ variable 61 for (blocksize = 0, tfs = fshead; tfs; tfs = tfs->nextfs) { 63 if (blocksize < tfs->bcnt) 64 blocksize = tfs->bcnt;
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | newfs.sh | 54 blocksize=4096 55 while [ $blocksize -le 65536 ]; do 57 fragsize=$((blocksize / i)) 58 echo "newfs $opt -b $blocksize -f $fragsize"\ 60 newfs $opt -b $blocksize -f $fragsize \ 79 blocksize=$((blocksize * 2))
|
H A D | newfs3.sh | 53 blocksize=4096 54 while [ $blocksize -le 65536 ]; do 56 fragsize=$((blocksize / i)) 57 newfs -b $blocksize -f $fragsize $opt md$mdstart > \ 74 blocksize=$((blocksize * 2))
|
H A D | write.sh | 103 off_t blocksize; 128 if ((buf = malloc(t[indx].blocksize)) == NULL) 144 if ((r = write(fd, buf, t[indx].blocksize)) != 145 t[indx].blocksize) { 177 t[i].blocksize = (arc4random() + 1) % MAXBLK; 179 t[i].blocksize = 2 << (arc4random() % 20); 184 if (t[i].blocks * t[i].blocksize > MAXSIZ) 185 t[i].blocks = MAXSIZ / t[i].blocksize; 187 fprintf(stderr, "%3d: blocksize %7lld, sequential %d, " 189 i, (long long)t[i].blocksize, [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/file/ |
H A D | file_append.c | 32 static int blocksize = 131072; /* 128KiB */ variable 41 "usage %s -f filename -e expected_offset [-b blocksize] \n" 44 "Opens a file using O_APPEND and writes numblocks blocksize\n" 50 " blocksize numblocks to filename\n" 51 " blocksize: Size of each block to writei (must be at\n" 64 " blocksize -> 131072 (128 KiB)\n" 82 blocksize = atoi(optarg); 117 if (use_odirect && ((blocksize % sysconf(_SC_PAGE_SIZE)) != 0)) { 119 "blocksize parameter invalid when using O_DIRECT.\n"); 123 if (blocksize < 51 [all...] |
/freebsd-current/lib/libc/gen/ |
H A D | getbsize.c | 41 long n, max, mul, blocksize; local 78 fmterr: warnx("%s: unknown blocksize", p); 85 warnx("maximum blocksize is %ldG", MAXB / GB); 88 if ((blocksize = n * mul) < 512) { 89 underflow: warnx("minimum blocksize is 512"); 91 blocksize = n = 512; 94 blocksize = n = 512; 98 *blocksizep = blocksize;
|
/freebsd-current/sys/opencrypto/ |
H A D | xform_cbc_mac.c | 12 .blocksize = CCM_CBC_BLOCK_LEN, 25 .blocksize = CCM_CBC_BLOCK_LEN, 38 .blocksize = CCM_CBC_BLOCK_LEN,
|
H A D | xform_sha2.c | 68 .blocksize = SHA2_224_BLOCK_LEN, 80 .blocksize = SHA2_256_BLOCK_LEN, 92 .blocksize = SHA2_384_BLOCK_LEN, 104 .blocksize = SHA2_512_BLOCK_LEN, 117 .blocksize = SHA2_224_BLOCK_LEN, 129 .blocksize = SHA2_256_BLOCK_LEN, 141 .blocksize = SHA2_384_BLOCK_LEN, 153 .blocksize = SHA2_512_BLOCK_LEN,
|
H A D | xform_gmac.c | 59 .blocksize = AES_ICM_BLOCK_LEN, 72 .blocksize = GMAC_BLOCK_LEN, 86 .blocksize = GMAC_BLOCK_LEN, 100 .blocksize = GMAC_BLOCK_LEN,
|
H A D | xform_sha1.c | 64 .blocksize = SHA1_BLOCK_LEN, 77 .blocksize = SHA1_BLOCK_LEN,
|
H A D | xform_rmd160.c | 64 .blocksize = RIPEMD160_BLOCK_LEN, 77 .blocksize = RIPEMD160_BLOCK_LEN,
|
/freebsd-current/crypto/heimdal/appl/rsh/ |
H A D | common.c | 48 size_t blocksize; local 50 krb5_crypto_getblocksize(context, crypto, &blocksize); 52 ivec_in[0] = malloc(blocksize); 53 memset(ivec_in[0], client, blocksize); 56 ivec_in[1] = malloc(blocksize); 57 memset(ivec_in[1], 2 | client, blocksize); 61 ivec_out[0] = malloc(blocksize); 62 memset(ivec_out[0], !client, blocksize); 65 ivec_out[1] = malloc(blocksize); 66 memset(ivec_out[1], 2 | !client, blocksize); [all...] |
/freebsd-current/sys/fs/ext2fs/ |
H A D | ext2_dir.h | 83 #define EXT2_DIRENT_TAIL(data, blocksize) \ 85 (blocksize) - sizeof(struct ext2fs_direct_tail)))
|
/freebsd-current/sys/crypto/openssl/ |
H A D | ossl_cipher.h | 48 uint16_t blocksize; member in struct:ossl_cipher
|
/freebsd-current/stand/usb/storage/ |
H A D | umass_loader.c | 116 uint32_t blocksize; local 118 if (usb_msc_read_capacity(umass_uaa.device, 0, &nblock, &blocksize) != 0) 121 return (disk_open(dev, ((uint64_t)nblock + 1) * (uint64_t)blocksize, blocksize)); 146 uint32_t blocksize; local 161 &nblock, &blocksize) != 0) 167 *(uint32_t*)buf = blocksize;
|
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | dmu_object.c | 47 dmu_object_alloc_impl(objset_t *os, dmu_object_type_t ot, int blocksize, argument 191 dnode_allocate(dn, ot, blocksize, 226 dmu_object_alloc(objset_t *os, dmu_object_type_t ot, int blocksize, argument 229 return dmu_object_alloc_impl(os, ot, blocksize, 0, bonustype, 234 dmu_object_alloc_ibs(objset_t *os, dmu_object_type_t ot, int blocksize, argument 238 return dmu_object_alloc_impl(os, ot, blocksize, indirect_blockshift, 243 dmu_object_alloc_dnsize(objset_t *os, dmu_object_type_t ot, int blocksize, argument 246 return (dmu_object_alloc_impl(os, ot, blocksize, 0, bonustype, 256 dmu_object_alloc_hold(objset_t *os, dmu_object_type_t ot, int blocksize, argument 260 return (dmu_object_alloc_impl(os, ot, blocksize, indirect_blockshif 265 dmu_object_claim(objset_t *os, uint64_t object, dmu_object_type_t ot, int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) argument 273 dmu_object_claim_dnsize(objset_t *os, uint64_t object, dmu_object_type_t ot, int blocksize, dmu_object_type_t bonustype, int bonuslen, int dnodesize, dmu_tx_t *tx) argument 303 dmu_object_reclaim(objset_t *os, uint64_t object, dmu_object_type_t ot, int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) argument 311 dmu_object_reclaim_dnsize(objset_t *os, uint64_t object, dmu_object_type_t ot, int blocksize, dmu_object_type_t bonustype, int bonuslen, int dnodesize, boolean_t keep_spill, dmu_tx_t *tx) argument [all...] |
/freebsd-current/crypto/openssl/providers/implementations/kdfs/ |
H A D | krb5kdf.c | 246 * N-fold(K) where blocksize is N, and constant_len is K 265 static void n_fold(unsigned char *block, unsigned int blocksize, argument 271 if (constant_len == blocksize) { 277 gcd = blocksize; 286 lcm = blocksize * constant_len / gcd; 289 memset(block, 0, blocksize); 297 b = l % blocksize; 319 for (b = blocksize - 1; b >= 0 && carry != 0; b--) { 363 size_t blocksize; local 396 blocksize [all...] |