Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 1705) sorted by relevance

12345678910>>...69

/netbsd-src/crypto/external/bsd/openssl/dist/crypto/evp/
H A De_aes_cbc_hmac_sha1.c59 void aesni_cbc_sha1_enc(const void *inp, void *out, size_t blocks,
63 void aesni256_cbc_sha1_dec(const void *inp, void *out, size_t blocks,
146 int blocks; member
154 int blocks; member
172 } blocks[8]; in tls1_1_multi_block_encrypt() local
183 if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0) in tls1_1_multi_block_encrypt()
215 memcpy(blocks[0].c, key->md.data, 8); in tls1_1_multi_block_encrypt()
216 seqnum = BSWAP8(blocks[0].q[0]); in tls1_1_multi_block_encrypt()
232 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_1_multi_block_encrypt()
235 blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry; in tls1_1_multi_block_encrypt()
[all …]
H A De_aes_cbc_hmac_sha256.c59 int aesni_cbc_sha256_enc(const void *inp, void *out, size_t blocks,
141 int blocks; member
149 int blocks; member
167 } blocks[8]; in tls1_1_multi_block_encrypt() local
178 if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0) in tls1_1_multi_block_encrypt()
211 memcpy(blocks[0].c, key->md.data, 8); in tls1_1_multi_block_encrypt()
212 seqnum = BSWAP8(blocks[0].q[0]); in tls1_1_multi_block_encrypt()
231 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_1_multi_block_encrypt()
234 blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry; in tls1_1_multi_block_encrypt()
235 carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1); in tls1_1_multi_block_encrypt()
[all …]
H A De_rc4_hmac_md5.c40 MD5_CTX *ctx, const void *inp, size_t blocks);
83 md5_off = MD5_CBLOCK - key->md.num, blocks; in rc4_hmac_md5_cipher() local
99 if (plen > md5_off && (blocks = (plen - md5_off) / MD5_CBLOCK) && in rc4_hmac_md5_cipher()
105 &key->md, in + md5_off, blocks); in rc4_hmac_md5_cipher()
106 blocks *= MD5_CBLOCK; in rc4_hmac_md5_cipher()
107 rc4_off += blocks; in rc4_hmac_md5_cipher()
108 md5_off += blocks; in rc4_hmac_md5_cipher()
109 key->md.Nh += blocks >> 29; in rc4_hmac_md5_cipher()
110 key->md.Nl += blocks <<= 3; in rc4_hmac_md5_cipher()
111 if (key->md.Nl < (unsigned int)blocks) in rc4_hmac_md5_cipher()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/evp/
H A De_aes_cbc_hmac_sha1.c53 void aesni_cbc_sha1_enc(const void *inp, void *out, size_t blocks,
57 void aesni256_cbc_sha1_dec(const void *inp, void *out, size_t blocks,
140 int blocks; member
148 int blocks; member
166 } blocks[8]; in tls1_1_multi_block_encrypt() local
177 if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0) in tls1_1_multi_block_encrypt()
209 memcpy(blocks[0].c, key->md.data, 8); in tls1_1_multi_block_encrypt()
210 seqnum = BSWAP8(blocks[0].q[0]); in tls1_1_multi_block_encrypt()
226 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_1_multi_block_encrypt()
229 blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry; in tls1_1_multi_block_encrypt()
[all …]
H A De_aes_cbc_hmac_sha256.c54 int aesni_cbc_sha256_enc(const void *inp, void *out, size_t blocks,
136 int blocks; member
144 int blocks; member
162 } blocks[8]; in tls1_1_multi_block_encrypt() local
173 if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0) in tls1_1_multi_block_encrypt()
206 memcpy(blocks[0].c, key->md.data, 8); in tls1_1_multi_block_encrypt()
207 seqnum = BSWAP8(blocks[0].q[0]); in tls1_1_multi_block_encrypt()
226 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_1_multi_block_encrypt()
229 blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry; in tls1_1_multi_block_encrypt()
230 carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1); in tls1_1_multi_block_encrypt()
[all …]
H A De_rc4_hmac_md5.c33 MD5_CTX *ctx, const void *inp, size_t blocks);
72 md5_off = MD5_CBLOCK - key->md.num, blocks; in rc4_hmac_md5_cipher() local
89 if (plen > md5_off && (blocks = (plen - md5_off) / MD5_CBLOCK) && in rc4_hmac_md5_cipher()
95 &key->md, in + md5_off, blocks); in rc4_hmac_md5_cipher()
96 blocks *= MD5_CBLOCK; in rc4_hmac_md5_cipher()
97 rc4_off += blocks; in rc4_hmac_md5_cipher()
98 md5_off += blocks; in rc4_hmac_md5_cipher()
99 key->md.Nh += blocks >> 29; in rc4_hmac_md5_cipher()
100 key->md.Nl += blocks <<= 3; in rc4_hmac_md5_cipher()
101 if (key->md.Nl < (unsigned int)blocks) in rc4_hmac_md5_cipher()
[all …]
/netbsd-src/external/public-domain/xz/dist/src/liblzma/common/
H A Dindex_hash.c49 lzma_index_hash_info blocks; member
83 index_hash->blocks.blocks_size = 0; in lzma_index_hash_init()
84 index_hash->blocks.uncompressed_size = 0; in lzma_index_hash_init()
85 index_hash->blocks.count = 0; in lzma_index_hash_init()
86 index_hash->blocks.index_list_size = 0; in lzma_index_hash_init()
97 (void)lzma_check_init(&index_hash->blocks.check, LZMA_CHECK_BEST); in lzma_index_hash_init()
119 return index_size(index_hash->blocks.count, in lzma_index_hash_size()
120 index_hash->blocks.index_list_size); in lzma_index_hash_size()
155 return_if_error(hash_append(&index_hash->blocks, in lzma_index_hash_append()
159 if (index_hash->blocks.blocks_size > LZMA_VLI_MAX in lzma_index_hash_append()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha1_hw.c36 void aesni_cbc_sha1_enc(const void *inp, void *out, size_t blocks,
108 int blocks; member
114 int blocks; member
135 } blocks[8]; in tls1_multi_block_encrypt() local
146 if (RAND_bytes_ex(ctx->base.libctx, (IVs = blocks[0].c), 16 * x4, 0) <= 0) in tls1_multi_block_encrypt()
178 memcpy(blocks[0].c, sctx->md.data, 8); in tls1_multi_block_encrypt()
179 seqnum = BSWAP8(blocks[0].q[0]); in tls1_multi_block_encrypt()
195 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_multi_block_encrypt()
198 blocks[i].c[j] = ((u8 *)sctx->md.data)[j] + carry; in tls1_multi_block_encrypt()
199 carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1); in tls1_multi_block_encrypt()
[all …]
H A Dcipher_aes_cbc_hmac_sha256_hw.c36 int aesni_cbc_sha256_enc(const void *inp, void *out, size_t blocks,
112 int blocks; member
118 int blocks; member
139 } blocks[8]; in tls1_multi_block_encrypt() local
150 if (RAND_bytes_ex(ctx->base.libctx, (IVs = blocks[0].c), 16 * x4, 0) <= 0) in tls1_multi_block_encrypt()
182 memcpy(blocks[0].c, sctx->md.data, 8); in tls1_multi_block_encrypt()
183 seqnum = BSWAP8(blocks[0].q[0]); in tls1_multi_block_encrypt()
203 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_multi_block_encrypt()
206 blocks[i].c[j] = ((u8 *)sctx->md.data)[j] + carry; in tls1_multi_block_encrypt()
207 carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1); in tls1_multi_block_encrypt()
[all …]
H A Dcipher_chacha20_hw.c70 size_t blocks = inl / CHACHA_BLK_SIZE; in chacha20_cipher() local
77 if (sizeof(size_t) > sizeof(unsigned int) && blocks > (1U << 28)) in chacha20_cipher()
78 blocks = (1U << 28); in chacha20_cipher()
86 ctr32 += (unsigned int)blocks; in chacha20_cipher()
87 if (ctr32 < blocks) { in chacha20_cipher()
88 blocks -= ctr32; in chacha20_cipher()
91 blocks *= CHACHA_BLK_SIZE; in chacha20_cipher()
92 ChaCha20_ctr32(out, in, blocks, ctx->key.d, ctx->counter); in chacha20_cipher()
93 inl -= blocks; in chacha20_cipher()
94 in += blocks; in chacha20_cipher()
[all …]
H A Dcipher_rc4_hmac_md5_hw.c58 size_t md5_off = MD5_CBLOCK - ctx->md.num, blocks; in cipher_hw_rc4_hmac_md5_cipher() local
75 && (blocks = (plen - md5_off) / MD5_CBLOCK) in cipher_hw_rc4_hmac_md5_cipher()
81 &ctx->md, in + md5_off, blocks); in cipher_hw_rc4_hmac_md5_cipher()
82 blocks *= MD5_CBLOCK; in cipher_hw_rc4_hmac_md5_cipher()
83 rc4_off += blocks; in cipher_hw_rc4_hmac_md5_cipher()
84 md5_off += blocks; in cipher_hw_rc4_hmac_md5_cipher()
85 ctx->md.Nh += blocks >> 29; in cipher_hw_rc4_hmac_md5_cipher()
86 ctx->md.Nl += blocks <<= 3; in cipher_hw_rc4_hmac_md5_cipher()
87 if (ctx->md.Nl < (unsigned int)blocks) in cipher_hw_rc4_hmac_md5_cipher()
121 && (blocks = (len - rc4_off) / MD5_CBLOCK) in cipher_hw_rc4_hmac_md5_cipher()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dbitmapped_block.d128 auto blocks = capacity.divideRoundUp(blockSize); in totalAllocation() local
129 auto leadingUlongs = blocks.divideRoundUp(64); in totalAllocation()
137 return leadingUlongs * 8 + maxSlack + blockSize * blocks; in totalAllocation()
262 const blocks = s.divideRoundUp(blockSize); in allocate() local
266 switch (blocks) in allocate()
290 result = smallAlloc(cast(uint) blocks); in allocate()
293 result = hugeAlloc(blocks); in allocate()
368 size_t blocks, ref void[] result)
370 assert(blocks > 0);
373 if (msbIdx + blocks <= 64)
[all …]
/netbsd-src/external/gpl2/libmalloc/dist/
H A Dmalloc.c169 __malloc_size_t block, blocks, lastblocks, start; local
270 blocks = BLOCKIFY (size);
272 while (_heapinfo[block].free.size < blocks)
284 (morecore ((blocks - lastblocks) * BLOCKSIZE)) != NULL)
290 _heapinfo[block].free.size += (blocks - lastblocks);
291 _bytes_free += (blocks - lastblocks) * BLOCKSIZE;
294 result = morecore (blocks * BLOCKSIZE);
299 _heapinfo[block].busy.info.size = blocks;
301 _bytes_used += blocks * BLOCKSIZE;
309 if (_heapinfo[block].free.size > blocks)
[all …]
H A Drealloc.c116 __malloc_size_t block, blocks, oldlimit; local
149 blocks = BLOCKIFY (size);
150 if (blocks < _heapinfo[block].busy.info.size)
154 _heapinfo[block + blocks].busy.type = 0;
155 _heapinfo[block + blocks].busy.info.size
156 = _heapinfo[block].busy.info.size - blocks;
157 _heapinfo[block].busy.info.size = blocks;
162 _free_internal (ADDRESS (block + blocks));
165 else if (blocks == _heapinfo[block].busy.info.size)
173 blocks = _heapinfo[block].busy.info.size;
[all …]
H A Dgmalloc.c515 __malloc_size_t block, blocks, lastblocks, start; local
616 blocks = BLOCKIFY (size);
618 while (_heapinfo[block].free.size < blocks)
630 (morecore ((blocks - lastblocks) * BLOCKSIZE)) != NULL)
636 _heapinfo[block].free.size += (blocks - lastblocks);
637 _bytes_free += (blocks - lastblocks) * BLOCKSIZE;
640 result = morecore (blocks * BLOCKSIZE);
645 _heapinfo[block].busy.info.size = blocks;
647 _bytes_used += blocks * BLOCKSIZE;
655 if (_heapinfo[block].free.size > blocks)
[all …]
/netbsd-src/sys/ufs/ufs/
H A Dquota1_subr.c57 struct quotaval *blocks, struct quotaval *files) in dqblk_to_quotavals() argument
61 blocks->qv_hardlimit = dqblk2q2e_limit(dqblk->dqb_bhardlimit); in dqblk_to_quotavals()
62 blocks->qv_softlimit = dqblk2q2e_limit(dqblk->dqb_bsoftlimit); in dqblk_to_quotavals()
63 blocks->qv_usage = dqblk->dqb_curblocks; in dqblk_to_quotavals()
64 blocks->qv_expiretime = dqblk->dqb_btime; in dqblk_to_quotavals()
73 quotavals_to_dqblk(const struct quotaval *blocks, const struct quotaval *files, in quotavals_to_dqblk() argument
78 dqblk->dqb_bhardlimit = q2e2dqblk_limit(blocks->qv_hardlimit); in quotavals_to_dqblk()
79 dqblk->dqb_bsoftlimit = q2e2dqblk_limit(blocks->qv_softlimit); in quotavals_to_dqblk()
80 dqblk->dqb_curblocks = blocks->qv_usage; in quotavals_to_dqblk()
81 dqblk->dqb_btime = blocks->qv_expiretime; in quotavals_to_dqblk()
/netbsd-src/sys/ufs/lfs/
H A Dulfs_quota1_subr.c59 struct quotaval *blocks, struct quotaval *files) in lfs_dqblk_to_quotavals() argument
63 blocks->qv_hardlimit = dqblk2q2e_limit(dqblk->dqb_bhardlimit); in lfs_dqblk_to_quotavals()
64 blocks->qv_softlimit = dqblk2q2e_limit(dqblk->dqb_bsoftlimit); in lfs_dqblk_to_quotavals()
65 blocks->qv_usage = dqblk->dqb_curblocks; in lfs_dqblk_to_quotavals()
66 blocks->qv_expiretime = dqblk->dqb_btime; in lfs_dqblk_to_quotavals()
75 lfs_quotavals_to_dqblk(const struct quotaval *blocks, const struct quotaval *files, in lfs_quotavals_to_dqblk() argument
80 dqblk->dqb_bhardlimit = q2e2dqblk_limit(blocks->qv_hardlimit); in lfs_quotavals_to_dqblk()
81 dqblk->dqb_bsoftlimit = q2e2dqblk_limit(blocks->qv_softlimit); in lfs_quotavals_to_dqblk()
82 dqblk->dqb_curblocks = blocks->qv_usage; in lfs_quotavals_to_dqblk()
83 dqblk->dqb_btime = blocks->qv_expiretime; in lfs_quotavals_to_dqblk()
H A DREADME20 0 or more data blocks
21 0 or more inode blocks
23 The segment summary and inode/data blocks start after the super block (if
29 | block | blocks | block | blocks | ...
32 The data/inode blocks following a summary block are described by the
35 blocks described by the summary. Additionally, the summary is checksummed
52 | . | blocks in the segment.
60 | inode-1 | blocks in the segment.
63 Inode blocks are blocks of on-disk inodes in the same format as those in
66 sizeof(inode) to a block. Data blocks are exactly as in the FFS. Both
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/selftests/
H A Di915_buddy.c119 struct list_head *blocks, in igt_check_blocks() argument
132 list_for_each_entry(block, blocks, link) { in igt_check_blocks()
324 LIST_HEAD(blocks); in igt_buddy_alloc_smoke()
359 list_add_tail(&block->link, &blocks); in igt_buddy_alloc_smoke()
371 err = igt_check_blocks(&mm, &blocks, total, false); in igt_buddy_alloc_smoke()
373 i915_buddy_free_list(&mm, &blocks); in igt_buddy_alloc_smoke()
401 LIST_HEAD(blocks); in igt_buddy_alloc_pessimistic()
426 list_add_tail(&block->link, &blocks); in igt_buddy_alloc_pessimistic()
436 list_add_tail(&block->link, &blocks); in igt_buddy_alloc_pessimistic()
444 list_add_tail(&block->link, &blocks); in igt_buddy_alloc_pessimistic()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/
H A Dintel_memory_region.c42 struct list_head *blocks) in intel_memory_region_free_pages() argument
47 list_for_each_entry_safe(block, on, blocks, link) { in intel_memory_region_free_pages()
51 INIT_LIST_HEAD(blocks); in intel_memory_region_free_pages()
58 struct list_head *blocks) in __intel_memory_region_put_pages_buddy() argument
61 mem->avail += intel_memory_region_free_pages(mem, blocks); in __intel_memory_region_put_pages_buddy()
68 struct list_head blocks; in __intel_memory_region_put_block_buddy() local
70 INIT_LIST_HEAD(&blocks); in __intel_memory_region_put_block_buddy()
71 list_add(&block->link, &blocks); in __intel_memory_region_put_block_buddy()
72 __intel_memory_region_put_pages_buddy(block->private, &blocks); in __intel_memory_region_put_block_buddy()
79 struct list_head *blocks) in __intel_memory_region_get_pages_buddy() argument
[all …]
/netbsd-src/external/gpl2/mkhybrid/dist/libhfs_iso/
H A Dfile.c154 ExtDescriptor blocks; in f_alloc() local
165 blocks.xdrNumABlks = clumpsz / vol->mdb.drAlBlkSiz; in f_alloc()
167 if (v_allocblocks(vol, &blocks) < 0) in f_alloc()
193 v_freeblocks(vol, &blocks); in f_alloc()
199 v_freeblocks(vol, &blocks); in f_alloc()
210 v_freeblocks(vol, &blocks); in f_alloc()
218 file->ext[i].xdrStABN + file->ext[i].xdrNumABlks == blocks.xdrStABN) in f_alloc()
219 file->ext[i].xdrNumABlks += blocks.xdrNumABlks; in f_alloc()
225 file->ext[i] = blocks; in f_alloc()
234 file->ext[0] = blocks; in f_alloc()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/modes/
H A Dctr128.c168 size_t blocks = len / 16; in CRYPTO_ctr128_encrypt_ctr32() local
174 if (sizeof(size_t) > sizeof(unsigned int) && blocks > (1U << 28)) in CRYPTO_ctr128_encrypt_ctr32()
175 blocks = (1U << 28); in CRYPTO_ctr128_encrypt_ctr32()
182 ctr32 += (u32)blocks; in CRYPTO_ctr128_encrypt_ctr32()
183 if (ctr32 < blocks) { in CRYPTO_ctr128_encrypt_ctr32()
184 blocks -= ctr32; in CRYPTO_ctr128_encrypt_ctr32()
187 (*func) (in, out, blocks, key, ivec); in CRYPTO_ctr128_encrypt_ctr32()
193 blocks *= 16; in CRYPTO_ctr128_encrypt_ctr32()
194 len -= blocks; in CRYPTO_ctr128_encrypt_ctr32()
195 out += blocks; in CRYPTO_ctr128_encrypt_ctr32()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/modes/
H A Dctr128.c172 size_t blocks = len / 16; in CRYPTO_ctr128_encrypt_ctr32() local
178 if (sizeof(size_t) > sizeof(unsigned int) && blocks > (1U << 28)) in CRYPTO_ctr128_encrypt_ctr32()
179 blocks = (1U << 28); in CRYPTO_ctr128_encrypt_ctr32()
186 ctr32 += (u32)blocks; in CRYPTO_ctr128_encrypt_ctr32()
187 if (ctr32 < blocks) { in CRYPTO_ctr128_encrypt_ctr32()
188 blocks -= ctr32; in CRYPTO_ctr128_encrypt_ctr32()
191 (*func) (in, out, blocks, key, ivec); in CRYPTO_ctr128_encrypt_ctr32()
197 blocks *= 16; in CRYPTO_ctr128_encrypt_ctr32()
198 len -= blocks; in CRYPTO_ctr128_encrypt_ctr32()
199 out += blocks; in CRYPTO_ctr128_encrypt_ctr32()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dmemory-block.cc35 block_list **blocks = &m_blocks; in reduce_free_list() local
39 for (;num > 0 && *blocks; num--) in reduce_free_list()
40 blocks = &(*blocks)->m_next; in reduce_free_list()
42 if (!*blocks) in reduce_free_list()
47 block_list *to_free = *blocks; in reduce_free_list()
48 *blocks = NULL; in reduce_free_list()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dmemory-block.cc35 block_list **blocks = &m_blocks; in reduce_free_list() local
39 for (;num > 0 && *blocks; num--) in reduce_free_list()
40 blocks = &(*blocks)->m_next; in reduce_free_list()
42 if (!*blocks) in reduce_free_list()
47 block_list *to_free = *blocks; in reduce_free_list()
48 *blocks = NULL; in reduce_free_list()

12345678910>>...69