/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_aes_cbc_hmac_sha1.c | 59 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 D | e_aes_cbc_hmac_sha256.c | 59 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 D | e_rc4_hmac_md5.c | 40 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 …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_property/ |
H A D | zfs_written_property_001_pos.ksh | 58 typeset -l blocks=50 74 count=$blocks 77 ((expected_written=blocks * mb_block)) 80 ((total = total + blocks)) 81 ((blocks = blocks + 50)) 85 blocks=0 88 if [[ $blocks -eq 0 ]]; then 94 ((expected_written = blocks * mb_block)) 98 ((blocks = blocks + 50)) 106 blocks=50 [all …]
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_cbc_hmac_sha1_hw.c | 36 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 D | cipher_aes_cbc_hmac_sha256_hw.c | 36 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 D | cipher_chacha20_hw.c | 70 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 D | cipher_rc4_hmac_md5_hw.c | 58 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 …]
|
/freebsd/crypto/openssl/crypto/modes/ |
H A D | ctr128.c | 168 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 …]
|
/freebsd/sys/net/route/ |
H A D | nhop_utils.c | 57 bh->blocks = _ITEMS_TO_BLOCKS(num_items); in bitmask_init() 64 if ((bh->items_count * 2 > _BLOCKS_TO_ITEMS(bh->blocks)) && bh->items_count < 65536) in bitmask_get_resize_items() 65 return (_BLOCKS_TO_ITEMS(bh->blocks) * 2); in bitmask_get_resize_items() 121 if (bi->blocks < new_blocks) { in bitmask_copy() 123 if (bi->blocks > 0) in bitmask_copy() 124 memcpy(new_idx, bi->idx, _BLOCKS_TO_SZ(bi->blocks)); in bitmask_copy() 128 for (int i = new_blocks; i < bi->blocks; i++) { in bitmask_copy() 143 bh->blocks = _ITEMS_TO_BLOCKS(new_items); in bitmask_swap() 162 for (i = off; i < bi->blocks; i++, mask++) { in bitmask_alloc_idx() 197 if (i >= bi->blocks) in bitmask_free_idx()
|
/freebsd/sys/contrib/device-tree/Bindings/sifive/ |
H A D | sifive-blocks-ip-versioning.txt | 1 DT compatible string versioning for SiFive open-source IP blocks 4 strings for open-source SiFive IP blocks. HDL for these IP blocks 7 https://github.com/sifive/sifive-blocks 14 https://github.com/sifive/sifive-blocks/blob/v1.0/src/main/scala/devices/uart/UART.scala#L43 16 Until these IP blocks (or IP integration) support version 17 auto-discovery, the maintainers of these IP blocks intend to increment 19 interface to these IP blocks changes, or when the functionality of the 20 underlying IP blocks changes in a way that software should be aware of. 25 upstream sifive-blocks commits. It is expected that most drivers will
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | crypto_internal-cipher.c | 106 size_t i, j, blocks; in crypto_cipher_encrypt() local 119 blocks = len / AES_BLOCK_SIZE; in crypto_cipher_encrypt() 120 for (i = 0; i < blocks; i++) { in crypto_cipher_encrypt() 133 blocks = len / 8; in crypto_cipher_encrypt() 134 for (i = 0; i < blocks; i++) { in crypto_cipher_encrypt() 147 blocks = len / 8; in crypto_cipher_encrypt() 148 for (i = 0; i < blocks; i++) { in crypto_cipher_encrypt() 169 size_t i, j, blocks; in crypto_cipher_decrypt() local 183 blocks = len / AES_BLOCK_SIZE; in crypto_cipher_decrypt() 184 for (i = 0; i < blocks; i++) { in crypto_cipher_decrypt() [all …]
|
H A D | aes-cbc.c | 29 int i, j, blocks; in aes_128_cbc_encrypt() local 39 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_encrypt() 40 for (i = 0; i < blocks; i++) { in aes_128_cbc_encrypt() 65 int i, j, blocks; in aes_128_cbc_decrypt() local 75 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_decrypt() 76 for (i = 0; i < blocks; i++) { in aes_128_cbc_decrypt()
|
/freebsd/tools/diag/prtblknos/ |
H A D | README | 3 of blocks used by a requested list of inodes. 5 For example, to list the blocks referenced by your kernel: 8 Filesystem 1K-blocks Used Avail Capacity Mounted on 24 Each contiguous range of blocks is printed on a line. 26 previous set of blocks to the beginning of the next set of blocks. 30 size blocks which by today's default is 32Kb. 35 physical block numbers reference 4Kb blocks. The distances listed 43 half the block size (say 32Kb blocks with 16Kb fragments) then the
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/ |
H A D | block_cloning_copyfilerange_fallback.ksh | 61 typeset blocks=$(get_same_blocks $TESTPOOL file $TESTPOOL clone) 62 log_must [ "$blocks" = "0 1 2 3" ] 72 typeset blocks=$(get_same_blocks $TESTPOOL file $TESTPOOL clone) 73 log_must [ "$blocks" = "1 2 3" ] 83 typeset blocks=$(get_same_blocks $TESTPOOL file $TESTPOOL clone) 84 log_must [ "$blocks" = "1" ]
|
H A D | block_cloning_ficlonerange_partial.ksh | 53 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2) 54 log_must [ "$blocks" = "" ] 61 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2) 62 log_must [ "$blocks" = "1 2" ]
|
H A D | block_cloning_copyfilerange_partial.ksh | 57 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2) 58 log_must [ "$blocks" = "" ] 65 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2) 66 log_must [ "$blocks" = "1 2" ]
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | aes_platform.h | 49 size_t blocks, const AES_KEY *key, 177 size_t blocks, const void *key, 183 size_t blocks, const void *key, 192 size_t blocks, 209 size_t blocks, 216 size_t blocks, 285 size_t blocks, const AES_KEY *key, 288 size_t blocks, const AES_KEY *key, 291 size_t blocks, const AES_KEY *key, 294 size_t blocks, const AES_KEY *key1, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | GCOV.cpp | 58 SmallVector<const GCOVBlock *, 1> blocks; member 149 fn->blocks.push_back(std::make_unique<GCOVBlock>(i)); in readGCNO() 154 fn->blocks.push_back(std::make_unique<GCOVBlock>(i)); in readGCNO() 158 if (srcNo >= fn->blocks.size()) { in readGCNO() 160 << fn->blocks.size() << ")\n"; in readGCNO() 163 GCOVBlock *src = fn->blocks[srcNo].get(); in readGCNO() 168 GCOVBlock *dst = fn->blocks[dstNo].get(); in readGCNO() 179 if (srcNo >= fn->blocks.size()) { in readGCNO() 181 << fn->blocks.size() << ")\n"; in readGCNO() 184 GCOVBlock &Block = *fn->blocks[srcNo]; in readGCNO() [all …]
|
/freebsd/contrib/libxo/doc/ |
H A D | formatting.rst | 92 xo_emit("{:blocks/%d}\t{:path/%s}\n", num_blocks, path); 107 <blocks>36</blocks> 111 <blocks>40</blocks> 115 <blocks>90</blocks> 133 { "blocks": 36, "path" : "./src" }, 134 { "blocks": 40, "path" : "./bin" }, 135 { "blocks": 90, "path" : "./" } 152 <div class="data" data-tag="blocks">36</div> 157 <div class="data" data-tag="blocks">40</div> 162 <div class="data" data-tag="blocks">90</div>
|
/freebsd/tools/test/stress2/misc/ |
H A D | write.sh | 104 off_t blocks; 139 for (i = 0; i < t[indx].blocks; i++) { 183 t[i].blocks = 2LL << (arc4random() % 18); 184 if (t[i].blocks * t[i].blocksize > MAXSIZ) 185 t[i].blocks = MAXSIZ / t[i].blocksize; 190 t[i].maxdelay, (long long)t[i].blocks, 191 (long long)t[i].blocksize * t[i].blocks / 1024 / 1024);
|
H A D | split.sh | 63 local blocks md5 md5a orig s spmax spmin 67 blocks=`jot -r 1 1 $mx` 68 dd if=/dev/random of=file.$1 bs=1023 count=$blocks status=none 72 spmax=$((1023 * blocks / 2))
|
/freebsd/sys/contrib/openzfs/module/icp/algs/blake3/ |
H A D | blake3_impl.c | 49 size_t num_inputs, size_t blocks, const uint32_t key[8], 72 size_t num_inputs, size_t blocks, const uint32_t key[8], in blake3_hash_many_sse2() argument 76 zfs_blake3_hash_many_sse2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many_sse2() 113 size_t num_inputs, size_t blocks, const uint32_t key[8], 136 size_t num_inputs, size_t blocks, const uint32_t key[8], in blake3_hash_many_sse41() argument 140 zfs_blake3_hash_many_sse41(inputs, num_inputs, blocks, key, counter, in blake3_hash_many_sse41() 168 size_t num_inputs, size_t blocks, const uint32_t key[8], 173 size_t num_inputs, size_t blocks, const uint32_t key[8], in blake3_hash_many_avx2() argument 177 zfs_blake3_hash_many_avx2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many_avx2() 209 size_t num_inputs, size_t blocks, const uint32_t key[8], [all …]
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | hash.h | 84 const uint32_t *blocks = (const uint32_t *) (data + nblocks*4); in hash_x86_32() local 88 uint32_t k1 = hash_get_block_32(blocks, i); in hash_x86_32() 140 const uint32_t *blocks = (const uint32_t *) (data + nblocks*16); in hash_x86_128() local 144 uint32_t k1 = hash_get_block_32(blocks, i*4 + 0); in hash_x86_128() 145 uint32_t k2 = hash_get_block_32(blocks, i*4 + 1); in hash_x86_128() 146 uint32_t k3 = hash_get_block_32(blocks, i*4 + 2); in hash_x86_128() 147 uint32_t k4 = hash_get_block_32(blocks, i*4 + 3); in hash_x86_128() 238 const uint64_t *blocks = (const uint64_t *) (data); in hash_x64_128() local 242 uint64_t k1 = hash_get_block_64(blocks, i*2 + 0); in hash_x64_128() 243 uint64_t k2 = hash_get_block_64(blocks, i*2 + 1); in hash_x64_128()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/BLAKE3/ |
H A D | blake3_dispatch.c | 196 size_t blocks, const uint32_t key[8], uint64_t counter, in blake3_hash_many() argument 204 blake3_hash_many_avx512(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() 212 blake3_hash_many_avx2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() 220 blake3_hash_many_sse41(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() 228 blake3_hash_many_sse2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() 237 blake3_hash_many_neon(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() 242 blake3_hash_many_portable(inputs, num_inputs, blocks, key, counter, in blake3_hash_many()
|