| /src/crypto/openssl/crypto/evp/ |
| H A D | e_aes_cbc_hmac_sha1.c | 57 void aesni_cbc_sha1_enc(const void *inp, void *out, size_t blocks, 61 void aesni256_cbc_sha1_dec(const void *inp, void *out, size_t blocks, 145 int blocks; member 153 int blocks; member 171 } blocks[8]; in tls1_1_multi_block_encrypt() local 181 if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0) in tls1_1_multi_block_encrypt() 213 memcpy(blocks[0].c, key->md.data, 8); in tls1_1_multi_block_encrypt() 214 seqnum = BSWAP8(blocks[0].q[0]); in tls1_1_multi_block_encrypt() 230 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_1_multi_block_encrypt() 233 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 | 57 int aesni_cbc_sha256_enc(const void *inp, void *out, size_t blocks, 139 int blocks; member 147 int blocks; member 165 } blocks[8]; in tls1_1_multi_block_encrypt() local 175 if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0) in tls1_1_multi_block_encrypt() 208 memcpy(blocks[0].c, key->md.data, 8); in tls1_1_multi_block_encrypt() 209 seqnum = BSWAP8(blocks[0].q[0]); in tls1_1_multi_block_encrypt() 228 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_1_multi_block_encrypt() 231 blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry; in tls1_1_multi_block_encrypt() 232 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); 81 md5_off = MD5_CBLOCK - key->md.num, blocks; in rc4_hmac_md5_cipher() local 97 …if (plen > md5_off && (blocks = (plen - md5_off) / MD5_CBLOCK) && (OPENSSL_ia32cap_P[0] & (1 << 20… in rc4_hmac_md5_cipher() 102 &key->md, in + md5_off, blocks); in rc4_hmac_md5_cipher() 103 blocks *= MD5_CBLOCK; in rc4_hmac_md5_cipher() 104 rc4_off += blocks; in rc4_hmac_md5_cipher() 105 md5_off += blocks; in rc4_hmac_md5_cipher() 106 key->md.Nh += blocks >> 29; in rc4_hmac_md5_cipher() 107 key->md.Nl += blocks <<= 3; in rc4_hmac_md5_cipher() 108 if (key->md.Nl < (unsigned int)blocks) in rc4_hmac_md5_cipher() [all …]
|
| /src/contrib/xz/src/liblzma/common/ |
| H A D | index_hash.c | 48 lzma_index_hash_info blocks; member 82 index_hash->blocks.blocks_size = 0; in lzma_index_hash_init() 83 index_hash->blocks.uncompressed_size = 0; in lzma_index_hash_init() 84 index_hash->blocks.count = 0; in lzma_index_hash_init() 85 index_hash->blocks.index_list_size = 0; in lzma_index_hash_init() 96 (void)lzma_check_init(&index_hash->blocks.check, LZMA_CHECK_BEST); in lzma_index_hash_init() 118 return index_size(index_hash->blocks.count, in lzma_index_hash_size() 119 index_hash->blocks.index_list_size); in lzma_index_hash_size() 154 hash_append(&index_hash->blocks, unpadded_size, uncompressed_size); in lzma_index_hash_append() 157 if (index_hash->blocks.blocks_size > LZMA_VLI_MAX in lzma_index_hash_append() [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_property/ |
| H A D | zfs_written_property_001_pos.ksh | 59 typeset -l blocks=50 75 count=$blocks 78 ((expected_written=blocks * mb_block)) 81 ((total = total + blocks)) 82 ((blocks = blocks + 50)) 86 blocks=0 89 if [[ $blocks -eq 0 ]]; then 95 ((expected_written = blocks * mb_block)) 99 ((blocks = blocks + 50)) 107 blocks=50 [all …]
|
| /src/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 …]
|
| /src/crypto/openssl/crypto/ml_dsa/ |
| H A D | ml_dsa_sample.c | 120 uint8_t blocks[SHAKE128_BLOCKSIZE], *b, *end = blocks + sizeof(blocks); in rej_ntt_poly() local 126 if (!shake_xof(g_ctx, md, seed, seed_len, blocks, sizeof(blocks))) in rej_ntt_poly() 130 for (b = blocks; b < end; b += 3) { in rej_ntt_poly() 136 if (!EVP_DigestSqueeze(g_ctx, blocks, sizeof(blocks))) in rej_ntt_poly() 164 uint8_t blocks[SHAKE256_BLOCKSIZE], *b, *end = blocks + sizeof(blocks); in rej_bounded_poly() local 167 if (!shake_xof(h_ctx, md, seed, seed_len, blocks, sizeof(blocks))) in rej_bounded_poly() 171 for (b = blocks; b < end; b++) { in rej_bounded_poly() 182 if (!EVP_DigestSqueeze(h_ctx, blocks, sizeof(blocks))) in rej_bounded_poly()
|
| /src/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 …]
|
| /src/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()
|
| /src/contrib/bsddialog/examples_library/ |
| H A D | slider.c | 17 unsigned long start, end, blocks[2][2]; in main() local 22 blocks[0][0] = 5; in main() 23 blocks[0][1] = 10; in main() 24 blocks[1][0] = 80; in main() 25 blocks[1][1] = 90; in main() 35 &end, false, 2, blocks); in main()
|
| /src/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
|
| /src/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()
|
| /src/crypto/openssl/crypto/sm4/asm/ |
| H A D | vpsm4-armv8.pl | 38 my ($inp,$outp,$blocks,$rks)=("x0","x1","w2","x3"); 767 cmp $blocks,#8 784 subs $blocks,$blocks,#8 788 cmp $blocks,#4 799 sub $blocks,$blocks,#4 802 cmp $blocks,#1 815 cmp $blocks,#2 869 cmp $blocks,#4 899 subs $blocks,$blocks,#4 903 subs $blocks,$blocks,#1 [all …]
|
| H A D | vpsm4_ex-armv8.pl | 41 my ($inp,$outp,$blocks,$rks)=("x0","x1","w2","x3"); 765 cmp $blocks,#8 782 subs $blocks,$blocks,#8 786 cmp $blocks,#4 797 sub $blocks,$blocks,#4 800 cmp $blocks,#1 813 cmp $blocks,#2 867 cmp $blocks,#4 897 subs $blocks,$blocks,#4 901 subs $blocks,$blocks,#1 [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rewrite/ |
| H A D | zfs_rewrite_skip_clone.ksh | 61 typeset blocks=$(get_same_blocks $TESTPOOL/$TESTFS source \ 63 log_must [ "$blocks" = "0 1 2 3" ] 70 typeset blocks=$(get_same_blocks $TESTPOOL/$TESTFS source \ 72 log_must [ "$blocks" = "0 1 2 3" ] 79 typeset blocks=$(get_same_blocks $TESTPOOL/$TESTFS source \ 81 log_must [ -z "$blocks" ]
|
| /src/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
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/ |
| H A D | block_cloning_copyfilerange_fallback.ksh | 58 typeset blocks=$(get_same_blocks $TESTPOOL file $TESTPOOL clone) 59 log_must [ "$blocks" = "0 1 2 3" ] 69 typeset blocks=$(get_same_blocks $TESTPOOL file $TESTPOOL clone) 70 log_must [ "$blocks" = "1 2 3" ] 80 typeset blocks=$(get_same_blocks $TESTPOOL file $TESTPOOL clone) 81 log_must [ "$blocks" = "1" ]
|
| /src/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 …]
|
| /src/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>
|
| /src/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);
|
| /src/sys/contrib/openzfs/module/icp/algs/blake3/ |
| H A D | blake3_impl.c | 50 size_t num_inputs, size_t blocks, const uint32_t key[8], 73 size_t num_inputs, size_t blocks, const uint32_t key[8], in blake3_hash_many_sse2() argument 77 zfs_blake3_hash_many_sse2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many_sse2() 114 size_t num_inputs, size_t blocks, const uint32_t key[8], 137 size_t num_inputs, size_t blocks, const uint32_t key[8], in blake3_hash_many_sse41() argument 141 zfs_blake3_hash_many_sse41(inputs, num_inputs, blocks, key, counter, in blake3_hash_many_sse41() 169 size_t num_inputs, size_t blocks, const uint32_t key[8], 174 size_t num_inputs, size_t blocks, const uint32_t key[8], in blake3_hash_many_avx2() argument 178 zfs_blake3_hash_many_avx2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many_avx2() 210 size_t num_inputs, size_t blocks, const uint32_t key[8], [all …]
|