/illumos-gate/usr/src/lib/storage/liba5k/common/hdrs/ |
H A D | a_state.h | 80 uint_t block_size; member in struct:capacity_data_struct
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | stringrp.c | 65 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/common/crypto/modes/ |
H A D | cbc.c | 43 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 D | ecb.c | 43 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 D | ctr.c | 44 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
|
H A D | ccm.c | 49 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 D | gcm.c | 132 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...] |
/illumos-gate/usr/src/test/zfs-tests/cmd/file_write/ |
H A D | file_write.c | 55 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/pkcs11/pkcs11_softtoken/common/ |
H A D | softEncryptUtil.c | 44 soft_add_pkcs7_padding(CK_BYTE *buf, int block_size, CK_ULONG data_len) argument 46 (void) pkcs7_encode(NULL, data_len, buf, block_size, block_size);
|
H A D | softMAC.c | 671 uint64_t *opad, uint_t blocks_per_int64, uint_t block_size) 683 SHA2Update(&ctx->hc_icontext, (uint8_t *)ipad, block_size); 687 SHA2Update(&ctx->hc_ocontext, (uint8_t *)opad, block_size); 670 sha2_hmac_ctx_init(uint_t mech, sha2_hc_ctx_t *ctx, uint64_t *ipad, uint64_t *opad, uint_t blocks_per_int64, uint_t block_size) argument
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | utility.c | 526 UINT32 block_size, 533 pad_len = block_size - (data_len % block_size); 525 add_pkcs_padding(CK_BYTE * ptr, UINT32 block_size, UINT32 data_len, UINT32 total_len) argument
|
/illumos-gate/usr/src/lib/libtnfprobe/ |
H A D | tnf_buf.c | 135 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/cmd/svr4pkg/libinst/ |
H A D | listmgr.c | 62 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 D | pkgobjmap.c | 484 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/tools/ctf/dwarf/common/ |
H A D | pro_forms.c | 368 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/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_sata.c | 340 uint32_t block_size = 512; /* XXXX */ local 369 rp[4] = (block_size >> 24) & 0xff; 370 rp[5] = (block_size >> 16) & 0xff; 371 rp[6] = (block_size >> 8) & 0xff; 372 rp[7] = (block_size) & 0xff;
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fsinfo.c | 72 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/boot/lib/libstand/ |
H A D | ufs.c | 312 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/cmd/hal/probing/storage/ |
H A D | probe-storage.c | 340 unsigned int block_size = 512; local 409 block_size = minfo.dki_lbsize; 424 block_size = minfo.dki_lbsize; 437 dos_cnt = get_num_dos_drives(fd, block_size);
|
/illumos-gate/usr/src/cmd/hal/probing/volume/ |
H A D | probe-volume.c | 436 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;
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | sha2_mod.c | 880 int i, block_size, blocks_per_int64; local 884 block_size = SHA256_HMAC_BLOCK_SIZE; 887 block_size = SHA512_HMAC_BLOCK_SIZE; 891 (void) bzero(ipad, block_size); 892 (void) bzero(opad, block_size); 904 SHA2Update(&ctx->hc_icontext, (uint8_t *)ipad, block_size); 908 SHA2Update(&ctx->hc_ocontext, (uint8_t *)opad, block_size);
|
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/ |
H A D | api_public.h | 147 unsigned long block_size; /* size of one block */ member in struct:device_info::__anon363::__anon364
|
/illumos-gate/usr/src/lib/libtnf/ |
H A D | libtnf.h | 147 size_t block_size; /* size of a block */ member in struct:TNF
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | pk11keys.c | 560 int i, blocks, block_size; local 617 block_size = out_len - 11; 622 blocks = plaintext->Length/block_size; 634 ckRv = C_Encrypt(ckSession, (CK_BYTE_PTR)in_data, block_size, 648 in_data += block_size; 651 if (plaintext->Length % block_size) { 663 in_len = plaintext->Length % block_size;
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_bmap.c | 86 off_t block_size; /* Size of this block, in bytes */ member in struct:ufs_allocated_block 643 undo_table[alloced_blocks].block_size = bsize; 768 undo_table[alloced_blocks].block_size = bsize; 1166 free(ip, table[i].this_block, table[i].block_size,
|