| /illumos-gate/usr/src/common/crypto/modes/ |
| H A D | cbc.c | 50 crypto_data_t *out, size_t block_size, in cbc_encrypt_contiguous_blocks() argument 83 need = block_size - ctx->cbc_remainder_len; in cbc_encrypt_contiguous_blocks() 128 &out_data_2, block_size); in cbc_encrypt_contiguous_blocks() 131 if (out_data_1_len == block_size) { in cbc_encrypt_contiguous_blocks() 139 block_size - in cbc_encrypt_contiguous_blocks() 144 out->cd_offset += block_size; in cbc_encrypt_contiguous_blocks() 153 datap += block_size; in cbc_encrypt_contiguous_blocks() 187 crypto_data_t *out, size_t block_size, in cbc_decrypt_contiguous_blocks() argument 203 if (length + ctx->cbc_remainder_len < block_size) { in cbc_decrypt_contiguous_blocks() 220 need = block_size - ctx->cbc_remainder_len; in cbc_decrypt_contiguous_blocks() [all …]
|
| H A D | gcm.c | 164 size_t block_size, uint8_t *blockp, void *iov_or_mp, offset_t *offset, in gcm_encrypt_block() argument 193 block_size - ctx->gcm_remainder_len); in gcm_encrypt_block() 198 &out_data_1_len, &out_data_2, block_size); in gcm_encrypt_block() 201 if (out_data_1_len == block_size) { in gcm_encrypt_block() 208 block_size - out_data_1_len); in gcm_encrypt_block() 212 out->cd_offset += block_size; in gcm_encrypt_block() 229 crypto_data_t *out, size_t block_size, in gcm_mode_encrypt_contiguous_blocks() argument 241 if (length + ctx->gcm_remainder_len < block_size) { in gcm_mode_encrypt_contiguous_blocks() 257 need = block_size - ctx->gcm_remainder_len; in gcm_mode_encrypt_contiguous_blocks() 273 CRYPTO_BYTES2BITS(block_size); in gcm_mode_encrypt_contiguous_blocks() [all …]
|
| H A D | ccm.c | 49 crypto_data_t *out, size_t block_size, in ccm_mode_encrypt_contiguous_blocks() argument 67 if (length + ctx->ccm_remainder_len < block_size) { in ccm_mode_encrypt_contiguous_blocks() 86 need = block_size - ctx->ccm_remainder_len; in ccm_mode_encrypt_contiguous_blocks() 129 ctx->ccm_processed_data_len += block_size; in ccm_mode_encrypt_contiguous_blocks() 140 &out_data_1_len, &out_data_2, block_size); in ccm_mode_encrypt_contiguous_blocks() 143 if (out_data_1_len == block_size) { in ccm_mode_encrypt_contiguous_blocks() 150 block_size - out_data_1_len); in ccm_mode_encrypt_contiguous_blocks() 154 out->cd_offset += block_size; in ccm_mode_encrypt_contiguous_blocks() 162 datap += block_size; in ccm_mode_encrypt_contiguous_blocks() 168 if (remainder > 0 && remainder < block_size) { in ccm_mode_encrypt_contiguous_blocks() [all …]
|
| H A D | ecb.c | 43 crypto_data_t *out, size_t block_size, in ecb_cipher_contiguous_blocks() argument 57 if (length + ctx->ecb_remainder_len < block_size) { in ecb_cipher_contiguous_blocks() 74 need = block_size - ctx->ecb_remainder_len; in ecb_cipher_contiguous_blocks() 102 &out_data_1_len, &out_data_2, block_size); in ecb_cipher_contiguous_blocks() 108 block_size - out_data_1_len); in ecb_cipher_contiguous_blocks() 111 out->cd_offset += block_size; in ecb_cipher_contiguous_blocks() 119 datap += block_size; in ecb_cipher_contiguous_blocks() 125 if (remainder > 0 && remainder < block_size) { in ecb_cipher_contiguous_blocks()
|
| H A D | ctr.c | 97 size_t block_size, in ctr_xor() argument 110 if (ctx->ctr_offset == block_size) { in ctr_xor() 115 keyamt = block_size - ctx->ctr_offset; in ctr_xor() 159 ctx->ctr_offset = block_size - keyamt; in ctr_xor() 168 crypto_data_t *out, size_t block_size, in ctr_mode_contiguous_blocks() argument 179 if (block_size > sizeof (ctx->ctr_keystream)) in ctr_mode_contiguous_blocks() 228 ctr_xor(ctx, inp, out_data, out_data_len, block_size, cipher); in ctr_mode_contiguous_blocks()
|
| /illumos-gate/usr/src/lib/libtecla/common/ |
| H A D | stringrp.c | 63 int block_size; /* The dimension of each character array block */ member 110 sg->block_size = segment_size; in _new_StringGroup() 233 if(length > sg->block_size || length < 0) in _sg_alloc_string() 254 node->unused = sg->block_size; in _sg_alloc_string() 258 node->block = (char *) malloc(sg->block_size); in _sg_alloc_string() 270 copy = node->block + sg->block_size - node->unused; in _sg_alloc_string() 292 node->unused = sg->block_size; in _clr_StringGroup()
|
| /illumos-gate/usr/src/test/zfs-tests/cmd/file_write/ |
| H A D | file_write.c | 59 int block_size = BLOCKSZ; in main() local 74 block_size = atoi(optarg); in main() 120 if (block_size > BIGBUFFERSIZE) { in main() 134 for (i = 0; i < block_size; i++) { in main() 189 "offset = %lld, data = %s%d\n", filename, block_size, in main() 198 if ((n = write(bigfd, &bigbuffer, block_size)) == -1) { in main() 211 good_writes, (good_writes * block_size)); in main()
|
| /illumos-gate/usr/src/boot/libsa/ |
| H A D | ufs.c | 308 size_t block_size; in buf_write_file() local 316 block_size = sblksize(fs, DIP(fp, di_size), file_block); in buf_write_file() 332 if (*size_p > block_size - off) in buf_write_file() 333 *size_p = block_size - off; in buf_write_file() 339 if (((off > 0) || (*size_p + off < block_size)) && in buf_write_file() 348 block_size, fp->f_buf, &fp->f_buf_size); in buf_write_file() 367 block_size, fp->f_buf, &fp->f_buf_size); in buf_write_file() 383 size_t block_size; in buf_read_file() local 388 block_size = sblksize(fs, DIP(fp, di_size), file_block); in buf_read_file() 399 bzero(fp->f_buf, block_size); in buf_read_file() [all …]
|
| /illumos-gate/usr/src/uts/sun4v/io/ |
| H A D | vdsk_common.c | 65 ((((sizeof (efi_gpe_t) * (nparts) - 1) / (vdisk)->block_size) + 1) * \ 66 (vdisk)->block_size) 176 if (LE_32(gpt->efi_gpt_HeaderSize) > dev->block_size) { in vd_efi_check_gpt() 179 dev->block_size); in vd_efi_check_gpt() 217 ASSERT(dev->block_size >= sizeof (efi_gpt_t)); in vd_efi_alloc_and_read() 218 gpt_len = dev->block_size; in vd_efi_alloc_and_read() 359 kmem_free(gpt, dev->block_size); in vd_efi_free()
|
| /illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/ |
| H A D | zfs_send_006_pos.ksh | 98 typeset -l block_size 107 for block_size in 64 128 256; do 108 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS1/file$block_size \ 109 bs=1M count=$block_size 110 log_must zfs snapshot $TESTPOOL/$TESTFS1@snap$block_size
|
| /illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
| H A D | pkgobjmap.c | 484 ulong_t block_size; in nblks() local 487 block_size = (ulong_t)get_blk_size_n(fsys_entry); in nblks() 492 nblk(block_size, block_size, frag_size); in nblks() 494 blk = nblk(ext->cf_ent.cinfo.size, block_size, in nblks() 507 ulong_t block_size; in size_xchng() local 517 block_size = (ulong_t)get_blk_size_n(fsys_entry); in size_xchng() 520 blks1 = nblk(ext1->cf_ent.cinfo.size, block_size, frag_size); in size_xchng() 521 blks2 = nblk(ext2->cf_ent.cinfo.size, block_size, frag_size); in size_xchng()
|
| H A D | listmgr.c | 62 int block_size; /* just to save time - alloc size */ member 149 new_size = (seg_size + bl_ptr->block_size); in alloc_next_seg() 163 new_size = bl_ptr->block_size; in alloc_next_seg() 187 bl_ptr->block_size); in alloc_next_seg() 227 bl_ptr->block_size); in alloc_next_seg() 272 bl_ptr->block_size = (count_per_block * struct_size); in bl_create()
|
| /illumos-gate/usr/src/test/zfs-tests/tests/functional/removal/ |
| H A D | removal.kshlib | 101 typeset block_size=$2 103 typeset nblocks=$((file_size / block_size)) 108 bs=$block_size count=1 seek=$((RANDOM % nblocks)) >/dev/null 2>&1
|
| /illumos-gate/usr/src/cmd/hal/probing/volume/ |
| H A D | probe-volume.c | 435 unsigned int block_size; in main() local 516 block_size = mi.dki_lbsize; in main() 517 vol_size = mi.dki_capacity * block_size; in main() 523 block_size = 512; in main() 526 libhal_device_set_property_int (ctx, udi, "volume.block_size", block_size, &error); in main() 556 if (!find_dos_drive(fd, dos_num, block_size, &probe_offset)) { in main() 570 partition_start = vtoc.v_part[partition_number].p_start * block_size; in main() 579 partition_start = gpt->efi_parts[partition_number].p_start * block_size; in main()
|
| /illumos-gate/usr/src/lib/libdwarf/common/ |
| H A D | pro_forms.c | 601 Dwarf_Unsigned block_size, in dwarf_add_AT_block() argument 608 block_data,block_size,&new_attr,error); in dwarf_add_AT_block() 620 Dwarf_Unsigned block_size, in dwarf_add_AT_block_a() argument 643 result = _dwarf_pro_encode_leb128_nm(block_size, &len_size, in dwarf_add_AT_block_a() 661 new_attr->ar_nbytes = len_size + block_size; in dwarf_add_AT_block_a() 665 _dwarf_p_get_alloc(dbg, len_size + block_size); in dwarf_add_AT_block_a() 676 memcpy(attrdata, block_data, block_size); in dwarf_add_AT_block_a() 966 Dwarf_Unsigned block_size = 0; in dwarf_add_AT_location_expr_a() local 989 block_size = loc_expr->ex_next_byte_offset; in dwarf_add_AT_location_expr_a() 1024 if (block_size <= UCHAR_MAX) { in dwarf_add_AT_location_expr_a() [all …]
|
| /illumos-gate/usr/src/uts/common/fs/smbsrv/ |
| H A D | smb_fsinfo.c | 72 unsigned long block_size, unit_size; in smb_com_query_information_disk() local 86 block_size = fssize.fs_bytes_per_sector; in smb_com_query_information_disk() 95 while (block_size > 512) { in smb_com_query_information_disk() 96 block_size >>= 1; in smb_com_query_information_disk() 116 bytes_per_block = (unsigned short)block_size; in smb_com_query_information_disk()
|
| /illumos-gate/usr/src/grub/grub-0.97/util/ |
| H A D | mkbimage | 39 block_size=512 286 file_size=$(($file_size / $block_size + 1)) 339 dd if=/dev/zero of=$image bs=$block_size count=$(($cyl_size * $cylinders)) 351 offset="$(($sectors * $block_size))"
|
| /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/ |
| H A D | dk_encrypt.c | 52 blocksize = enc->block_size; in krb5_dk_encrypt_length() 87 blocksize = enc->block_size; in krb5_dk_encrypt() 175 blocksize = enc->block_size; 249 blocksize = enc->block_size; in krb5int_aes_dk_encrypt()
|
| /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/ |
| H A D | old_encrypt.c | 44 blocksize = enc->block_size; in krb5_old_encrypt_length() 66 blocksize = enc->block_size; in krb5_old_encrypt()
|
| /illumos-gate/usr/src/uts/common/io/atu/ |
| H A D | atu.c | 921 int block_size, bytes_left = 0, block = 0, err, i, count = 0; in atu_dfu_stage1() local 966 block_size = DFU_MaxBlockSize; in atu_dfu_stage1() 968 block_size = bytes_left; in atu_dfu_stage1() 971 block_size, ptr); in atu_dfu_stage1() 978 ptr += block_size; in atu_dfu_stage1() 979 bytes_left -= block_size; in atu_dfu_stage1() 980 if (block_size == 0) in atu_dfu_stage1() 1033 int block_size, bytes_left = 0, block = 0, err, i; in atu_dfu_stage2() local 1043 block_size = 1024; in atu_dfu_stage2() 1045 block_size = bytes_left; in atu_dfu_stage2() [all …]
|
| /illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
| H A D | pk11keys.c | 560 int i, blocks, block_size; in PKCS_EncryptData() local 617 block_size = out_len - 11; in PKCS_EncryptData() 622 blocks = plaintext->Length/block_size; in PKCS_EncryptData() 634 ckRv = C_Encrypt(ckSession, (CK_BYTE_PTR)in_data, block_size, in PKCS_EncryptData() 648 in_data += block_size; in PKCS_EncryptData() 651 if (plaintext->Length % block_size) { in PKCS_EncryptData() 663 in_len = plaintext->Length % block_size; in PKCS_EncryptData()
|
| /illumos-gate/usr/src/cmd/hal/probing/storage/ |
| H A D | probe-storage.c | 340 unsigned int block_size = 512; in main() local 409 block_size = minfo.dki_lbsize; in main() 424 block_size = minfo.dki_lbsize; in main() 437 dos_cnt = get_num_dos_drives(fd, block_size); in main()
|
| /illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
| H A D | pmcs_sata.c | 341 uint32_t block_size = 512; /* XXXX */ in pmcs_sata_special_work() local 370 rp[4] = (block_size >> 24) & 0xff; in pmcs_sata_special_work() 371 rp[5] = (block_size >> 16) & 0xff; in pmcs_sata_special_work() 372 rp[6] = (block_size >> 8) & 0xff; in pmcs_sata_special_work() 373 rp[7] = (block_size) & 0xff; in pmcs_sata_special_work()
|
| /illumos-gate/usr/src/cmd/abi/appcert/scripts/ |
| H A D | appcert.pl | 690 my $block_size = 20; 701 $ENV{'AC_BLOCK_MAX'} = $i + $block_size; 705 $i += $block_size;
|
| /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
| H A D | block_size.c | 45 *blocksize = krb5_enctypes_list[i].enc->block_size; in krb5_c_block_size()
|