Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 25 of 87) sorted by relevance

1234

/titanic_44/usr/src/common/crypto/modes/
H A Dcbc.c43 crypto_data_t *out, size_t block_size, in cbc_encrypt_contiguous_blocks() argument
59 if (length + ctx->cbc_remainder_len < block_size) { in cbc_encrypt_contiguous_blocks()
76 need = block_size - ctx->cbc_remainder_len; in cbc_encrypt_contiguous_blocks()
114 &out_data_1_len, &out_data_2, block_size); in cbc_encrypt_contiguous_blocks()
117 if (out_data_1_len == block_size) { in cbc_encrypt_contiguous_blocks()
124 block_size - out_data_1_len); in cbc_encrypt_contiguous_blocks()
128 out->cd_offset += block_size; in cbc_encrypt_contiguous_blocks()
136 datap += block_size; in cbc_encrypt_contiguous_blocks()
142 if (remainder > 0 && remainder < block_size) { in cbc_encrypt_contiguous_blocks()
170 crypto_data_t *out, size_t block_size, in cbc_decrypt_contiguous_blocks() argument
[all …]
H A Dgcm.c132 crypto_data_t *out, size_t block_size, in gcm_mode_encrypt_contiguous_blocks() argument
150 if (length + ctx->gcm_remainder_len < block_size) { in gcm_mode_encrypt_contiguous_blocks()
167 need = block_size - ctx->gcm_remainder_len; in gcm_mode_encrypt_contiguous_blocks()
195 ctx->gcm_processed_data_len += block_size; in gcm_mode_encrypt_contiguous_blocks()
206 &out_data_1_len, &out_data_2, block_size); in gcm_mode_encrypt_contiguous_blocks()
209 if (out_data_1_len == block_size) { in gcm_mode_encrypt_contiguous_blocks()
216 block_size - out_data_1_len); in gcm_mode_encrypt_contiguous_blocks()
220 out->cd_offset += block_size; in gcm_mode_encrypt_contiguous_blocks()
231 datap += block_size; in gcm_mode_encrypt_contiguous_blocks()
237 if (remainder > 0 && remainder < block_size) { in gcm_mode_encrypt_contiguous_blocks()
[all …]
H A Dccm.c49 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 Decb.c43 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 Dctr.c44 crypto_data_t *out, size_t block_size, in ctr_mode_contiguous_blocks() argument
60 if (length + ctx->ctr_remainder_len < block_size) { in ctr_mode_contiguous_blocks()
77 need = block_size - ctx->ctr_remainder_len; in ctr_mode_contiguous_blocks()
130 &out_data_1_len, &out_data_2, block_size); in ctr_mode_contiguous_blocks()
136 block_size - out_data_1_len); in ctr_mode_contiguous_blocks()
139 out->cd_offset += block_size; in ctr_mode_contiguous_blocks()
147 datap += block_size; in ctr_mode_contiguous_blocks()
153 if (remainder > 0 && remainder < block_size) { in ctr_mode_contiguous_blocks()
/titanic_44/usr/src/cmd/tnf/tnfxtract/
H A Dtnfxtract.c187 block_num * tnf_header->block_size; in read_tnf_block()
189 tnf_header->block_size) != tnf_header->block_size) { in read_tnf_block()
217 offset = tnf_header->block_size + start * sizeof (tnf_ref32_t); in read_tnf_fwzone()
312 writeout(local_buf, 0, tnf_header->block_size); in main()
317 tnf_header->directory_size / tnf_header->block_size; in main()
318 fwzonesize = tnf_header->directory_size - tnf_header->block_size; in main()
349 tnf_header->block_size); in main()
356 ((char *) blockp + tnf_header->block_size); in main()
379 tnf_header->block_size); in main()
386 ((char *) blockp + tnf_header->block_size); in main()
[all …]
/titanic_44/usr/src/lib/libtecla/common/
H A Dstringrp.c65 int block_size; /* The dimension of each character array block */ member
112 sg->block_size = segment_size; in _new_StringGroup()
235 if(length > sg->block_size || length < 0) in _sg_alloc_string()
256 node->unused = sg->block_size; in _sg_alloc_string()
260 node->block = (char *) malloc(sg->block_size); in _sg_alloc_string()
272 copy = node->block + sg->block_size - node->unused; in _sg_alloc_string()
294 node->unused = sg->block_size; in _clr_StringGroup()
/titanic_44/usr/src/test/zfs-tests/cmd/file_write/
H A Dfile_write.c55 int block_size = BLOCKSZ; in main() local
69 block_size = atoi(optarg); in main()
115 if (block_size > BIGBUFFERSIZE) { in main()
129 for (i = 0; i < block_size; i++) { in main()
182 "offset = %lld, data = %s%d\n", filename, block_size, in main()
191 if ((n = write(bigfd, &bigbuffer, block_size)) == -1) { in main()
203 good_writes, (good_writes * block_size)); in main()
/titanic_44/usr/src/lib/libtnfprobe/
H A Dtnf_buf.c135 while (b != fh->com.block_size) { in tnfw_b_alloc_block()
161 i += fh->com.block_size; in tnfw_b_alloc_block()
204 ((char *)fh + blocknum * fh->com.block_size); in tnfw_b_alloc_block()
336 tnfw_b_init_buffer(char *buf, int blocks, int block_size, boolean_t zfod) in tnfw_b_init_buffer() argument
352 if (block_size != 512 || block_size < sizeof (tnf_buf_file_header_t)) in tnfw_b_init_buffer()
358 for (b = (unsigned)block_size, block_shift = 0; (b & 1) == 0; b >>= 1) in tnfw_b_init_buffer()
368 forwarding_ptrs.fw_file_header = (char *)fh + block_size; in tnfw_b_init_buffer()
369 forwarding_ptrs.fw_block_header = (char *)fh + block_size + in tnfw_b_init_buffer()
371 forwarding_ptrs.fw_root = (char *)fh + block_size + in tnfw_b_init_buffer()
374 fh->next_fw_alloc = block_size + (3 * sizeof (tnf_ref32_t)); in tnfw_b_init_buffer()
[all …]
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dpacket.c606 data_dump(enc->iv, enc->block_size); in set_newkeys()
611 enc->iv, enc->block_size, crypt_type); in set_newkeys()
651 if (enc->block_size >= 16) in set_newkeys()
652 *max_blocks = (u_int64_t)1 << (enc->block_size * 2); in set_newkeys()
654 *max_blocks = ((u_int64_t)1 << 30) / enc->block_size; in set_newkeys()
657 *max_blocks = MIN(*max_blocks, rekey_limit / enc->block_size); in set_newkeys()
735 int block_size; in packet_send2_wrapped() local
742 block_size = enc ? enc->block_size : 8; in packet_send2_wrapped()
774 padlen = block_size - (len % block_size); in packet_send2_wrapped()
776 padlen += block_size; in packet_send2_wrapped()
[all …]
H A Dcipher.c67 u_int block_size; member
98 return (c->block_size); in cipher_blocksize()
218 if (iv != NULL && ivlen < cipher->block_size) in cipher_init()
262 if (len % cc->cipher->block_size) in cipher_crypt()
391 ssh1_3des.block_size = 8; in evp_ssh1_3des()
/titanic_44/usr/src/lib/libtnf/
H A Dreader.c81 tnf->block_size = _GET_UINT32(tnf, (tnf_uint32_t *)p); in tnf_reader_begin()
96 tnf->block_count -= tnf->directory_size / tnf->block_size; in tnf_reader_begin()
103 tmpsz = tnf->directory_size + tnf->block_count * tnf->block_size; in tnf_reader_begin()
116 while (tmpsz != tnf->block_size) { in tnf_reader_begin()
122 tnf->block_mask = ~(tnf->block_size - 1); in tnf_reader_begin()
/titanic_44/usr/src/uts/sun4v/io/
H A Dvdsk_common.c65 ((((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()
/titanic_44/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_006_pos.ksh96 typeset -l block_size
105 for block_size in 64 128 256; do
106 log_must $DD if=/dev/urandom of=/$TESTPOOL/$TESTFS1/file$block_size \
107 bs=1M count=$block_size
108 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$block_size
/titanic_44/usr/src/tools/ctf/dwarf/common/
H A Dpro_forms.c368 Dwarf_Unsigned block_size, in dwarf_add_AT_block() argument
391 result = _dwarf_pro_encode_leb128_nm(block_size, &len_size, in dwarf_add_AT_block()
409 new_attr->ar_nbytes = len_size + block_size; in dwarf_add_AT_block()
413 _dwarf_p_get_alloc(dbg, len_size + block_size); in dwarf_add_AT_block()
424 memcpy(attrdata, block_data, block_size); in dwarf_add_AT_block()
656 int block_size; in dwarf_add_AT_location_expr() local
679 block_size = loc_expr->ex_next_byte_offset; in dwarf_add_AT_location_expr()
713 if (block_size <= UCHAR_MAX) { in dwarf_add_AT_location_expr()
717 } else if (block_size <= USHRT_MAX) { in dwarf_add_AT_location_expr()
721 } else if (block_size <= UINT_MAX) { in dwarf_add_AT_location_expr()
[all …]
/titanic_44/usr/src/cmd/svr4pkg/libinst/
H A Dpkgobjmap.c484 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 Dlistmgr.c62 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()
/titanic_44/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c436 unsigned int block_size; in main() local
517 block_size = mi.dki_lbsize; in main()
518 vol_size = mi.dki_capacity * block_size; in main()
524 block_size = 512; in main()
527 libhal_device_set_property_int (ctx, udi, "volume.block_size", block_size, &error); in main()
557 if (!find_dos_drive(fd, dos_num, block_size, &probe_offset)) { in main()
571 partition_start = vtoc.v_part[partition_number].p_start * block_size; in main()
580 partition_start = gpt->efi_parts[partition_number].p_start * block_size; in main()
/titanic_44/usr/src/uts/common/fs/smbsrv/
H A Dsmb_fsinfo.c103 unsigned long block_size, unit_size; in smb_com_query_information_disk() local
117 block_size = fssize.fs_bytes_per_sector; in smb_com_query_information_disk()
126 while (block_size > 512) { in smb_com_query_information_disk()
127 block_size >>= 1; in smb_com_query_information_disk()
147 bytes_per_block = (unsigned short)block_size; in smb_com_query_information_disk()
/titanic_44/usr/src/grub/grub-0.97/util/
H A Dmkbimage39 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))"
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/
H A Ddk_encrypt.c52 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()
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/
H A Dold_encrypt.c44 blocksize = enc->block_size; in krb5_old_encrypt_length()
66 blocksize = enc->block_size; in krb5_old_encrypt()
/titanic_44/usr/src/psm/stand/boot/sparc/common/
H A Dwanboot.c1228 size_t block_size; in process_wanbootfs() local
1254 block_size = DES3_BLOCK_SIZE; in process_wanbootfs()
1256 cbc_makehandle(&ch, eh, DES3_KEY_SIZE, block_size, in process_wanbootfs()
1266 block_size = AES_BLOCK_SIZE; in process_wanbootfs()
1268 cbc_makehandle(&ch, eh, AES_128_KEY_SIZE, block_size, in process_wanbootfs()
1304 if (read_bytes(handle, (char *)iv, block_size) != 0) { in process_wanbootfs()
1309 wanbootfs_size -= block_size; in process_wanbootfs()
1311 HMACUpdate(&sha, (uchar_t *)iv, block_size); in process_wanbootfs()
/titanic_44/usr/src/uts/common/io/atu/
H A Datu.c921 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 …]
/titanic_44/usr/src/lib/libkmf/libkmf/common/
H A Dpk11keys.c560 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()

1234