/netbsd-current/crypto/external/bsd/openssl/dist/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...] |
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/krb5/ |
H A D | 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; [all...] |
/netbsd-current/external/bsd/libarchive/dist/libarchive/test/ |
H A D | test_write_format_tar.c | 37 size_t blocksize; local 40 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { 48 archive_write_set_bytes_per_block(a, (int)blocksize)); 50 archive_write_set_bytes_in_last_block(a, (int)blocksize)); 51 assertEqualInt(blocksize, 55 assertEqualInt(blocksize, 84 failure("blocksize [all...] |
H A D | test_write_open_memory.c | 49 size_t blocksize = 94; local 56 archive_write_set_bytes_per_block(a, (int)blocksize)); 61 if (i < (511/blocksize)*blocksize)
|
H A D | test_write_format_tar_sparse.c | 37 size_t blocksize; local 46 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { 54 archive_write_set_bytes_per_block(a, (int)blocksize)); 56 archive_write_set_bytes_in_last_block(a, (int)blocksize)); 57 assertEqualInt(blocksize, 61 assertEqualInt(blocksize, 97 failure("blocksize 180 size_t blocksize = 20 * 512; local [all...] |
H A D | test_write_filter_program.c | 37 int blocksize = 1024; local 44 /* NOTE: Setting blocksize=1024 will cause gunzip failure because 46 * exit code 1. So we should set blocksize=1 in order not to 51 blocksize = 1; 65 assertA(0 == archive_write_set_bytes_per_block(a, blocksize)); 66 assertA(0 == archive_write_set_bytes_in_last_block(a, blocksize)); 67 assertA(blocksize == archive_write_get_bytes_in_last_block(a)); 69 assertA(blocksize == archive_write_get_bytes_in_last_block(a));
|
/netbsd-current/sys/opencrypto/ |
H A D | 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 [all...] |
/netbsd-current/distrib/cdrom/macppc_installboot/ |
H A D | cd9660.c | 65 int rv, blocksize; local 91 blocksize = isonum_723((u_char *)ipd.logical_block_size); 92 if (blocksize != ISO_DEFAULT_BLOCK_SIZE) { 93 warnx("Invalid blocksize %d in `%s'", 94 blocksize, params->filesystem); 98 params->fstype->blocksize = blocksize; 111 int rv, blocksize, found; local 153 blocksize = isonum_723((u_char *)ipd.logical_block_size); 156 loc = (off_t)isonum_733(idr->extent) * blocksize; [all...] |
H A D | installboot.h | 93 uint32_t blocksize; member in struct:__anon3 109 uint32_t blocksize; member in struct:ib_fs 122 uint32_t blocksize; /* blocksize of stage1 */ member in struct:bbinfo_params
|
/netbsd-current/usr.sbin/installboot/ |
H A D | cd9660.c | 65 int rv, blocksize; local 91 blocksize = isonum_723((u_char *)ipd.logical_block_size); 92 if (blocksize != ISO_DEFAULT_BLOCK_SIZE) { 93 warnx("Invalid blocksize %d in `%s'", 94 blocksize, params->filesystem); 98 params->fstype->blocksize = blocksize; 111 int rv, blocksize, found; local 153 blocksize = isonum_723((u_char *)ipd.logical_block_size); 156 loc = (off_t)isonum_733(idr->extent) * blocksize; [all...] |
H A D | 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
|
/netbsd-current/lib/libc/gen/ |
H A D | getbsize.c | 57 long n, max, mul, blocksize; local 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;
|
/netbsd-current/sbin/swapctl/ |
H A D | swaplist.c | 60 long blocksize; local 87 blocksize = 1024; 93 blocksize = 1024 * 1024; 97 blocksize = 1024 * 1024 * 1024; 103 header = getbsize(&hlen, &blocksize); 106 blocksize = 1; suff = ""; /* unused */ 135 (long)(dbtoqb(size) / blocksize)); 138 (long)(dbtoqb(inuse) / blocksize), 139 (long)(dbtoqb(size - inuse) / blocksize), 172 (long)(dbtoqb(totalinuse) / blocksize), [all...] |
/netbsd-current/usr.bin/hexdump/ |
H A D | 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;
|
/netbsd-current/external/zlib/pigz/dist/zopfli/ |
H A D | cache.c | 28 void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc) { argument 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;
|
H A D | cache.h | 46 void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc);
|
/netbsd-current/sys/dev/ |
H A D | cgd_crypto.c | 136 cgd_cipher_aes_cbc_init(size_t keylen, const void *key, size_t *blocksize) argument 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) argument 219 if (!blocksize) 223 if (*blocksize == (size_t)-1) 224 *blocksize = 128; 225 if (*blocksize ! 295 cgd_cipher_3des_init(size_t keylen, const void *key, size_t *blocksize) argument 372 cgd_cipher_bf_init(size_t keylen, const void *key, size_t *blocksize) argument 431 cgd_cipher_adiantum_init(size_t keylen, const void *key, size_t *blocksize) argument [all...] |
/netbsd-current/usr.bin/vndcompress/ |
H A D | 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_ [all...] |
H A D | 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); 762 compress_block(int in_fd, int out_fd, uint32_t blkno, uint32_t blocksize, uint32_t readsize, void *uncompbuf, void *compbuf) argument [all...] |
/netbsd-current/external/gpl3/binutils/dist/gprofng/src/ |
H A D | DataObject.cc | 88 blocksize = 32 enumerator in enum:__anon537 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))
|
/netbsd-current/sys/arch/x68k/stand/installboot/ |
H A D | 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 > bboffse [all...] |
/netbsd-current/crypto/external/bsd/openssl/dist/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...] |
/netbsd-current/bin/ls/ |
H A D | ls.h | 39 extern long blocksize; /* block size units */
|
/netbsd-current/crypto/external/bsd/netpgp/dist/src/netpgpverify/ |
H A D | chk.sh | 73 blocksize=$(awk '/^block size:/ { print $3 }' ${dir}/+PKG_HASH) 80 printf "block size: ${blocksize}\n" >> ${dir}/calc 86 dd if=${dir}/$1 of=${dir}/in bs=${blocksize} count=1 skip=${n} 2>/dev/null 88 off=$(( off + ${blocksize} ))
|