HomeSort by: relevance | last modified time | path
    Searched refs:blocksize (Results 1 - 25 of 204) sorted by relevancy

1 2 3 4 5 6 7 8 9

  /src/crypto/external/apache2/openssl/dist/providers/implementations/ciphers/
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,
ciphercommon_block.c 21 * of data remaining in the input that is a multiple of the blocksize. The buffer
25 * buf: a buffer of blocksize bytes
28 * less than the blocksize
29 * blocksize: size of a block. Must be greater than 0 and a power of 2
37 * which is a multiple of the blocksize.
40 size_t blocksize,
43 size_t blockmask = ~(blocksize - 1);
44 size_t bufremain = blocksize - *buflen;
46 assert(*buflen <= blocksize);
47 assert(blocksize > 0 && (blocksize & (blocksize - 1)) == 0)
    [all...]
  /src/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/
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,
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 > 0 && (blocksize & (blocksize - 1)) == 0)
    [all...]
  /src/crypto/external/bsd/heimdal/dist/lib/krb5/
crypto-evp.c 117 size_t i, blocksize; local
126 blocksize = EVP_CIPHER_CTX_block_size(c);
128 if (len < blocksize) {
132 } else if (len == blocksize) {
149 i = ((len - 1) / blocksize) * blocksize;
151 p += i - blocksize;
153 memcpy(ivec2, p, blocksize);
156 tmp[i] = p[i + blocksize] ^ ivec2[i];
157 for (; i < blocksize; i++
    [all...]
  /src/external/bsd/libarchive/dist/libarchive/test/
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=%zu", blocksize)
    [all...]
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)
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=%zu", blocksize)
179 size_t blocksize = 20 * 512; local
    [all...]
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));
  /src/sys/opencrypto/
xform.c 95 /* NB: blocksize of 4 is to generate a properly aligned ESP header */
96 .blocksize = 4,
105 .blocksize = 8,
114 .blocksize = 8,
123 .blocksize = 8,
132 .blocksize = 8,
141 .blocksize = 8,
150 .blocksize = 16,
159 .blocksize = 1,
168 .blocksize = 16
    [all...]
  /src/usr.sbin/installboot/
cd9660.c 68 int rv, blocksize; local
94 blocksize = isonum_723((u_char *)ipd.logical_block_size);
95 if (blocksize != ISO_DEFAULT_BLOCK_SIZE) {
96 warnx("Invalid blocksize %d in `%s'",
97 blocksize, params->filesystem);
101 params->fstype->blocksize = blocksize;
114 int rv, blocksize, found; local
156 blocksize = isonum_723((u_char *)ipd.logical_block_size);
159 loc = (off_t)isonum_733(idr->extent) * blocksize;
    [all...]
fstypes.c 93 assert(params->fstype->blocksize != 0);
104 nblk = s2sb.st_size / params->fstype->blocksize;
105 if (s2sb.st_size % params->fstype->blocksize != 0)
109 params->stage2, s2sb.st_size, params->fstype->blocksize, nblk);
120 i * (params->fstype->blocksize / params->sectorsize);
121 blocks[i].blocksize = params->fstype->blocksize;
136 params->fstype->blocksize = 8192; // XXX: hardcode
  /src/lib/libc/gen/
getbsize.c 57 long n, max, mul, blocksize; local
66 if ((p = getenv("BLOCKSIZE")) != NULL && *p != '\0') {
94 fmterr: warnx("%s: unknown blocksize", p);
101 warnx("maximum blocksize is %ldG", MAXB / GB);
104 if ((blocksize = n * mul) < 512) {
105 underflow: warnx("%s: minimum blocksize is 512", p);
107 blocksize = n = 512;
110 blocksize = n = 512;
116 *blocksizep = blocksize;
  /src/sbin/swapctl/
swaplist.c 90 long blocksize; local
143 blocksize = 1024;
149 blocksize = 1024 * 1024;
153 blocksize = 1024 * 1024 * 1024;
159 header = getbsize(&hlen, &blocksize);
162 blocksize = 1; suff = ""; /* unused */
180 totalsize = dbtoqb(totalsize) / blocksize;
220 (long)(dbtoqb(size) / blocksize));
223 cw, (long)(dbtoqb(inuse) / blocksize), cw,
224 (long)(pgtoqb(npgbad) / blocksize), cw
    [all...]
  /src/usr.bin/hexdump/
hexdump.c 58 int blocksize; /* data block size */ variable
82 for (blocksize = 0, tfs = fshead; tfs; tfs = tfs->nextfs) {
84 if (blocksize < tfs->bcnt)
85 blocksize = tfs->bcnt;
  /src/external/zlib/pigz/dist/zopfli/
cache.c 28 void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc) {
30 lmc->length = (unsigned short*)malloc(sizeof(unsigned short) * blocksize);
31 lmc->dist = (unsigned short*)malloc(sizeof(unsigned short) * blocksize);
33 lmc->sublen = (unsigned char*)malloc(ZOPFLI_CACHE_LENGTH * 3 * blocksize);
37 for (i = 0; i < blocksize; i++) lmc->length[i] = 1;
38 for (i = 0; i < blocksize; i++) lmc->dist[i] = 0;
39 for (i = 0; i < ZOPFLI_CACHE_LENGTH * blocksize * 3; i++) lmc->sublen[i] = 0;
cache.h 46 void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc);
  /src/sys/dev/
cgd_crypto.c 136 cgd_cipher_aes_cbc_init(size_t keylen, const void *key, size_t *blocksize)
140 if (!blocksize)
144 if (*blocksize == (size_t)-1)
145 *blocksize = 128;
146 if (*blocksize != 128)
214 cgd_cipher_aes_xts_init(size_t keylen, const void *xtskey, size_t *blocksize)
219 if (!blocksize)
223 if (*blocksize == (size_t)-1)
224 *blocksize = 128;
225 if (*blocksize != 128
    [all...]
  /src/usr.bin/vndcompress/
vnduncompress.c 87 const uint32_t blocksize = be32toh(header.cl2h_blocksize); local
92 if (blocksize < MIN_BLOCKSIZE)
93 errx(1, "blocksize too small: %"PRIu32
95 blocksize, (uint32_t)MIN_BLOCKSIZE);
97 if (MAX_BLOCKSIZE < blocksize)
98 errx(1, "blocksize too large: %"PRIu32
100 blocksize, (uint32_t)MAX_BLOCKSIZE);
102 if ((blocksize % DEV_BSIZE) != 0)
103 errx(1, "bad blocksize: %"PRIu32
105 blocksize, (uint32_t)DEV_BSIZE)
    [all...]
vndcompress.c 68 uint32_t blocksize; /* bytes per block */ member in struct:compress_state
70 uint32_t n_full_blocks; /* floor(size/blocksize) */
71 uint32_t n_blocks; /* ceiling(size/blocksize) */
134 assert(MIN_BLOCKSIZE <= S->blocksize);
135 assert(S->blocksize <= MAX_BLOCKSIZE);
146 void *const uncompbuf = malloc(S->blocksize);
152 void *const compbuf = malloc(2 * (size_t)S->blocksize);
175 (S->size % S->blocksize) : S->blocksize);
177 assert(readsize <= S->blocksize);
    [all...]
  /src/external/gpl3/binutils/dist/gprofng/src/
DataObject.cc 88 blocksize = 32 enumerator in enum:__anon10222
93 if (size > blocksize)
95 if (size == blocksize && (offset % blocksize == 0))
97 if (offset % blocksize == 0)
99 if ((offset + size) % blocksize == 0)
101 if (offset / blocksize == ((offset + size) / blocksize))
  /src/external/gpl3/binutils.old/dist/gprofng/src/
DataObject.cc 88 blocksize = 32 enumerator in enum:__anon11695
93 if (size > blocksize)
95 if (size == blocksize && (offset % blocksize == 0))
97 if (offset % blocksize == 0)
99 if ((offset + size) % blocksize == 0)
101 if (offset / blocksize == ((offset + size) / blocksize))
  /src/bin/ls/
ls.h 41 extern long blocksize; /* block size units */
  /src/sys/arch/macppc/stand/installboot/
installboot.h 93 uint32_t blocksize; member in struct:__anon1627
109 uint32_t blocksize; member in struct:ib_fs
122 uint32_t blocksize; /* blocksize of stage1 */ member in struct:bbinfo_params
  /src/sys/arch/x68k/stand/installboot/
installboot.c 53 size_t blocksize; variable
131 blocksize = label.d_secsize;
132 if (blocksize < 512)
133 blocksize = 512;
134 if (blocksize > MAXBBSIZE)
135 errx(1, "%s: blocksize too large", name);
136 if (read(fd, bootblock, blocksize) != blocksize)
146 if ((label.d_partitions[part].p_offset * blocksize < 32768) &&
210 if (merging && blocksize > bboffset && !floppy
    [all...]

Completed in 21 milliseconds

1 2 3 4 5 6 7 8 9