Searched refs:block_size (Results 1 - 25 of 82) sorted by relevance

1234

/illumos-gate/usr/src/common/crypto/modes/
H A Dcbc.c43 crypto_data_t *out, size_t block_size,
59 if (length + ctx->cbc_remainder_len < block_size) {
76 need = block_size - ctx->cbc_remainder_len;
114 &out_data_1_len, &out_data_2, block_size);
117 if (out_data_1_len == block_size) {
124 block_size - out_data_1_len);
128 out->cd_offset += block_size;
136 datap += block_size;
142 if (remainder > 0 && remainder < block_size) {
170 crypto_data_t *out, size_t block_size,
42 cbc_encrypt_contiguous_blocks(cbc_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
169 cbc_decrypt_contiguous_blocks(cbc_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*decrypt)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
282 cbc_init_ctx(cbc_ctx_t *cbc_ctx, char *param, size_t param_len, size_t block_size, void (*copy_block)(uint8_t *, uint64_t *)) argument
[all...]
H A Decb.c43 crypto_data_t *out, size_t block_size,
57 if (length + ctx->ecb_remainder_len < block_size) {
74 need = block_size - ctx->ecb_remainder_len;
102 &out_data_1_len, &out_data_2, block_size);
108 block_size - out_data_1_len);
111 out->cd_offset += block_size;
119 datap += block_size;
125 if (remainder > 0 && remainder < block_size) {
42 ecb_cipher_contiguous_blocks(ecb_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*cipher)(const void *ks, const uint8_t *pt, uint8_t *ct)) argument
H A Dgcm.c132 crypto_data_t *out, size_t block_size,
150 if (length + ctx->gcm_remainder_len < block_size) {
167 need = block_size - ctx->gcm_remainder_len;
195 ctx->gcm_processed_data_len += block_size;
206 &out_data_1_len, &out_data_2, block_size);
209 if (out_data_1_len == block_size) {
216 block_size - out_data_1_len);
220 out->cd_offset += block_size;
231 datap += block_size;
237 if (remainder > 0 && remainder < block_size) {
131 gcm_mode_encrypt_contiguous_blocks(gcm_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
252 gcm_encrypt_final(gcm_ctx_t *ctx, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
330 gcm_decrypt_incomplete_block(gcm_ctx_t *ctx, size_t block_size, size_t index, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
370 gcm_mode_decrypt_contiguous_blocks(gcm_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
409 gcm_decrypt_final(gcm_ctx_t *ctx, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
513 gcm_format_initial_blocks(uchar_t *iv, ulong_t iv_len, gcm_ctx_t *ctx, size_t block_size, void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
564 gcm_init(gcm_ctx_t *ctx, unsigned char *iv, size_t iv_len, unsigned char *auth_data, size_t auth_data_len, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
613 gcm_init_ctx(gcm_ctx_t *gcm_ctx, char *param, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
653 gmac_init_ctx(gcm_ctx_t *gcm_ctx, char *param, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
[all...]
H A Dccm.c49 crypto_data_t *out, size_t block_size,
67 if (length + ctx->ccm_remainder_len < block_size) {
86 need = block_size - ctx->ccm_remainder_len;
129 ctx->ccm_processed_data_len += block_size;
140 &out_data_1_len, &out_data_2, block_size);
143 if (out_data_1_len == block_size) {
150 block_size - out_data_1_len);
154 out->cd_offset += block_size;
162 datap += block_size;
168 if (remainder > 0 && remainder < block_size) {
48 ccm_mode_encrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
207 ccm_encrypt_final(ccm_ctx_t *ctx, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
359 ccm_mode_decrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
527 ccm_decrypt_final(ccm_ctx_t *ctx, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
770 ccm_init(ccm_ctx_t *ctx, unsigned char *nonce, size_t nonce_len, unsigned char *auth_data, size_t auth_data_len, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
854 ccm_init_ctx(ccm_ctx_t *ccm_ctx, char *param, int kmflag, boolean_t is_encrypt_init, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
[all...]
H A Dctr.c44 crypto_data_t *out, size_t block_size,
60 if (length + ctx->ctr_remainder_len < block_size) {
77 need = block_size - ctx->ctr_remainder_len;
130 &out_data_1_len, &out_data_2, block_size);
136 block_size - out_data_1_len);
139 out->cd_offset += block_size;
147 datap += block_size;
153 if (remainder > 0 && remainder < block_size) {
43 ctr_mode_contiguous_blocks(ctr_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*cipher)(const void *ks, const uint8_t *pt, uint8_t *ct), void (*xor_block)(uint8_t *, uint8_t *)) argument
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dblock_size.c45 *blocksize = krb5_enctypes_list[i].enc->block_size;
/illumos-gate/usr/src/lib/libtecla/common/
H A Dstringrp.c65 int block_size; /* The dimension of each character array block */ member in struct:StringGroup
112 sg->block_size = segment_size;
233 * If the string is longer than block_size, then we can't record it.
235 if(length > sg->block_size || length < 0)
256 node->unused = sg->block_size;
260 node->block = (char *) malloc(sg->block_size);
272 copy = node->block + sg->block_size - node->unused;
294 node->unused = sg->block_size;
/illumos-gate/usr/src/test/zfs-tests/cmd/file_write/
H A Dfile_write.c55 int block_size = BLOCKSZ; local
69 block_size = atoi(optarg);
115 if (block_size > BIGBUFFERSIZE) {
116 (void) printf("block_size is too large max==%d.\n",
129 for (i = 0; i < block_size; i++) {
181 (void) printf("%s: block_size = %d, write_count = %d, "
182 "offset = %lld, data = %s%d\n", filename, block_size,
191 if ((n = write(bigfd, &bigbuffer, block_size)) == -1) {
203 good_writes, (good_writes * block_size));
221 " [-b block_size]\
[all...]
/illumos-gate/usr/src/lib/libtnf/
H A Dreader.c81 tnf->block_size = _GET_UINT32(tnf, (tnf_uint32_t *)p);
96 tnf->block_count -= tnf->directory_size / tnf->block_size;
103 tmpsz = tnf->directory_size + tnf->block_count * tnf->block_size;
116 while (tmpsz != tnf->block_size) {
122 tnf->block_mask = ~(tnf->block_size - 1);
/illumos-gate/usr/src/cmd/tnf/tnfxtract/
H A Dtnfxtract.c187 block_num * tnf_header->block_size;
189 tnf_header->block_size) != tnf_header->block_size) {
217 offset = tnf_header->block_size + start * sizeof (tnf_ref32_t);
312 writeout(local_buf, 0, tnf_header->block_size);
317 tnf_header->directory_size / tnf_header->block_size;
318 fwzonesize = tnf_header->directory_size - tnf_header->block_size;
349 tnf_header->block_size);
356 ((char *) blockp + tnf_header->block_size);
379 tnf_header->block_size);
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/raw/
H A Draw_encrypt.c44 blocksize = enc->block_size;
/illumos-gate/usr/src/lib/libtnfprobe/
H A Dtnf_buf.c135 while (b != fh->com.block_size) {
161 i += fh->com.block_size;
204 ((char *)fh + blocknum * fh->com.block_size);
336 tnfw_b_init_buffer(char *buf, int blocks, int block_size, boolean_t zfod) argument
352 if (block_size != 512 || block_size < sizeof (tnf_buf_file_header_t))
358 for (b = (unsigned)block_size, block_shift = 0; (b & 1) == 0; b >>= 1)
368 forwarding_ptrs.fw_file_header = (char *)fh + block_size;
369 forwarding_ptrs.fw_block_header = (char *)fh + block_size +
371 forwarding_ptrs.fw_root = (char *)fh + block_size
[all...]
/illumos-gate/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) {
179 dev->block_size);
217 ASSERT(dev->block_size >= sizeof (efi_gpt_t));
218 gpt_len = dev->block_size;
359 kmem_free(gpt, dev->block_size);
/illumos-gate/usr/src/lib/storage/liba5k/common/hdrs/
H A Da_state.h80 uint_t block_size; member in struct:capacity_data_struct
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/
H A Dold_encrypt.c44 blocksize = enc->block_size;
66 blocksize = enc->block_size;
/illumos-gate/usr/src/boot/lib/libstand/
H A Dufs.c312 size_t block_size; local
320 block_size = sblksize(fs, DIP(fp, di_size), file_block);
336 if (*size_p > block_size - off)
337 *size_p = block_size - off;
343 if (((off > 0) || (*size_p + off < block_size)) &&
352 block_size, fp->f_buf, &fp->f_buf_size);
371 block_size, fp->f_buf, &fp->f_buf_size);
390 size_t block_size; local
395 block_size = sblksize(fs, DIP(fp, di_size), file_block);
406 bzero(fp->f_buf, block_size);
[all...]
/illumos-gate/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
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dlistmgr.c62 int block_size; /* just to save time - alloc size */ member in struct:blk_list_cs
149 new_size = (seg_size + bl_ptr->block_size);
163 new_size = bl_ptr->block_size;
187 bl_ptr->block_size);
227 bl_ptr->block_size);
272 bl_ptr->block_size = (count_per_block * struct_size);
H A Dpkgobjmap.c484 ulong_t block_size; local
487 block_size = (ulong_t)get_blk_size_n(fsys_entry);
492 nblk(block_size, block_size, frag_size);
494 blk = nblk(ext->cf_ent.cinfo.size, block_size,
507 ulong_t block_size; local
517 block_size = (ulong_t)get_blk_size_n(fsys_entry);
520 blks1 = nblk(ext1->cf_ent.cinfo.size, block_size, frag_size);
521 blks2 = nblk(ext2->cf_ent.cinfo.size, block_size, frag_size);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/
H A Ddk_encrypt.c52 blocksize = enc->block_size;
87 blocksize = enc->block_size;
175 blocksize = enc->block_size;
249 blocksize = enc->block_size;
/illumos-gate/usr/src/tools/ctf/dwarf/common/
H A Dpro_forms.c368 Dwarf_Unsigned block_size,
391 result = _dwarf_pro_encode_leb128_nm(block_size, &len_size,
409 new_attr->ar_nbytes = len_size + block_size;
413 _dwarf_p_get_alloc(dbg, len_size + block_size);
424 memcpy(attrdata, block_data, block_size);
656 int block_size; local
679 block_size = loc_expr->ex_next_byte_offset;
713 if (block_size <= UCHAR_MAX) {
717 } else if (block_size <= USHRT_MAX) {
721 } else if (block_size <
363 dwarf_add_AT_block( Dwarf_P_Debug dbg, Dwarf_P_Die ownerdie, Dwarf_Half attr, Dwarf_Small *block_data, Dwarf_Unsigned block_size, Dwarf_Error *error ) argument
[all...]
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/
H A Dapi_public.h147 unsigned long block_size; /* size of one block */ member in struct:device_info::__anon363::__anon364
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_fsinfo.c72 unsigned long block_size, unit_size; local
86 block_size = fssize.fs_bytes_per_sector;
95 while (block_size > 512) {
96 block_size >>= 1;
116 bytes_per_block = (unsigned short)block_size;
/illumos-gate/usr/src/grub/grub-0.97/util/
H A Dmkbimage39 block_size=512
284 # First, find the size of the tar file in block_size.
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/cmd/hal/probing/volume/
H A Dprobe-volume.c436 unsigned int block_size; local
517 block_size = mi.dki_lbsize;
518 vol_size = mi.dki_capacity * block_size;
524 block_size = 512;
527 libhal_device_set_property_int (ctx, udi, "volume.block_size", block_size, &error);
557 if (!find_dos_drive(fd, dos_num, block_size, &probe_offset)) {
571 partition_start = vtoc.v_part[partition_number].p_start * block_size;
580 partition_start = gpt->efi_parts[partition_number].p_start * block_size;

Completed in 208 milliseconds

1234