/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/ |
H A D | old_encrypt.c | 42 size_t blocksize, hashsize; local 44 blocksize = enc->block_size; 47 *length = krb5_roundup(blocksize+hashsize+inputlen, blocksize); 62 size_t blocksize, hashsize, enclen; local 66 blocksize = enc->block_size; 80 datain.length = blocksize; 85 (void) memcpy(output->data+blocksize+hashsize, input->data, input->length); 90 datain.data = output->data+blocksize; 110 if (real_ivec && ivec != NULL && ivec->length == blocksize) [all...] |
H A D | old_decrypt.c | 48 size_t blocksize, hashsize, plainsize; local 54 blocksize = enc->block_size; 58 if (input->length < blocksize + hashsize || input->length % blocksize != 0) 60 plainsize = input->length - blocksize - hashsize; 83 if (ivec != NULL && ivec->length == blocksize) { 84 cn = MALLOC(blocksize); 89 (void) memcpy(cn, input->data + input->length - blocksize, blocksize); 105 (void) memcpy(orig_cksum, output.data+blocksize, hashsiz [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | block_size.c | 33 size_t *blocksize) 45 *blocksize = krb5_enctypes_list[i].enc->block_size; 32 krb5_c_block_size(krb5_context context, krb5_enctype enctype, size_t *blocksize) argument
|
H A D | hmac.c | 100 * ipad is the byte 0x36 repeated blocksize times 101 * opad is the byte 0x5c repeated blocksize times 113 size_t hashsize, blocksize; local 140 blocksize = hash->blocksize; 142 if (key->length > blocksize) 153 if ((xorkey = (unsigned char *) MALLOC(blocksize)) == NULL) 156 FREE(xorkey, blocksize); 161 FREE(xorkey, blocksize); 168 (void) memset(xorkey, 0x36, blocksize); [all...] |
H A D | combine_keys.c | 307 size_t blocksize, keybytes, keylength, n; local 311 blocksize = enc->block_size; 317 if ((inblockdata = (unsigned char *) malloc(blocksize)) == NULL) 320 if ((outblockdata = (unsigned char *) malloc(blocksize)) == NULL) { 326 inblock.length = blocksize; 329 outblock.length = blocksize; 359 memset(inblockdata, 0, blocksize); 360 memset(outblockdata, 0, blocksize);
|
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/ |
H A D | dk_encrypt.c | 40 dk_encrypt) assume the confounder is always the blocksize, and the 41 padding is always zero bytes up to the blocksize. If these 50 size_t blocksize, hashsize; local 52 blocksize = enc->block_size; 54 *length = krb5_roundup(blocksize+inputlen, blocksize) + hashsize; 65 size_t blocksize, plainlen, enclen; local 87 blocksize = enc->block_size; 88 plainlen = krb5_roundup(blocksize+input->length, blocksize); 173 size_t blocksize, hashsize; local 229 size_t blocksize, plainlen, enclen; local [all...] |
H A D | dk_decrypt.c | 85 size_t hashsize, blocksize, enclen, plainlen; local 107 blocksize = enc->block_size; 115 if (input->length < blocksize + hmacsize) 117 if (output->length < input->length - blocksize - hmacsize) 139 if (ivec != NULL && ivec->length == blocksize) { 140 cn = (unsigned char *) d1.data + d1.length - blocksize; 172 plainlen = enclen - blocksize; 181 (void) memcpy(output->data, d2.data+blocksize, output->length); 190 (void) memcpy(ivec->data, cn, blocksize);
|
H A D | derive.c | 264 size_t blocksize, keybytes, keylength, n; local 271 blocksize = enc->block_size; 281 if ((inblockdata = (unsigned char *) MALLOC(blocksize)) == NULL) 284 if ((outblockdata = (unsigned char *) MALLOC(blocksize)) == NULL) { 285 FREE(inblockdata, blocksize); 290 FREE(outblockdata, blocksize); 291 FREE(inblockdata, blocksize); 296 inblock.length = blocksize; 299 outblock.length = blocksize; 339 (void) memset(inblockdata, 0, blocksize); [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/raw/ |
H A D | raw_encrypt.c | 42 size_t blocksize; local 44 blocksize = enc->block_size; 46 *length = krb5_roundup(inputlen, blocksize);
|
/opensolaris-onvv-gate/usr/src/lib/libparted/common/libparted/fs/amiga/ |
H A D | asfs.c | 36 _asfs_probe_root (PedGeometry *geom, uint32_t *block, int blocksize, PedSector root) { argument 41 for (i = 0, sum = 1; i < 128*blocksize; i++) sum += PED_BE32_TO_CPU (block[i]); 43 if (PED_BE32_TO_CPU (block[2]) * blocksize + geom->start != root) { 59 int blocksize = 1, reserved = 1, prealloc = 1; local 66 /* Finds the blocksize, prealloc and reserved values of the partition block */ 67 if (!(part = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) { 77 blocksize = PED_BE32_TO_CPU (part->de_SizeBlock) 83 if (!(block = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) { 89 if (!ped_device_read (geom->dev, block, root, blocksize)) { 99 if (_asfs_probe_root(geom, block, blocksize, roo [all...] |
H A D | apfs.c | 36 _apfs_probe_root (uint32_t *block, uint32_t blocksize, uint32_t kind) { argument 47 uint32_t blocksize = 1, reserved = 2, prealloc = 0; local 52 /* Finds the blocksize, prealloc and reserved values of the partition block */ 53 if (!(part = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) { 61 blocksize = PED_BE32_TO_CPU (part->de_SizeBlock) 67 if (!(block = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) { 72 if (!ped_device_read (geom->dev, block, geom->start, blocksize)) { 82 root = geom->start+reserved*blocksize; 83 if (!ped_device_read (geom->dev, block, root, blocksize)) { 88 if (_apfs_probe_root(block, blocksize, kin [all...] |
H A D | affs.c | 36 _affs_probe_root (uint32_t *block, int blocksize) { argument 41 if (PED_BE32_TO_CPU (block[128*blocksize-1]) != 1) return 0; 42 for (i = 0, sum = 0; i < 128*blocksize; i++) 54 int blocksize = 1, reserved = 2, prealloc = 0; local 59 /* Finds the blocksize, prealloc and reserved values of the partition block */ 60 if (!(part = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) { 69 blocksize = PED_BE32_TO_CPU (part->de_SizeBlock) 75 if (!(block = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) { 80 if (!ped_device_read (geom->dev, block, geom->start, blocksize)) { 90 len = geom->length / blocksize [all...] |
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_tftp.c | 42 int blocksize = fraglen - 4; local 72 blocksize, 73 blocksize < 512 ? " (last block)":""); 118 blocksize < 512 ? " (last block)":""); 120 dlc_header, blocksize), 122 blocksize); local
|
/opensolaris-onvv-gate/usr/src/common/net/wanboot/crypt/ |
H A D | cbc.c | 40 cbc_xorblock(uint8_t *lastp, uint8_t *thisp, int blocksize) argument 48 IS_P2ALIGNED(blocksize, sizeof (uint32_t))) { 53 for (i = 0; i < blocksize; i += 4) { 59 for (i = 0; i < blocksize; i++) { 128 uint32_t blocksize, uint32_t ivsize, 134 ch->blocklen = blocksize; 127 cbc_makehandle(cbc_handle_t *ch, void *cookie, uint32_t keysize, uint32_t blocksize, uint32_t ivsize, void (*encrypt)(void *, uint8_t *), void (*decrypt)(void *, uint8_t *)) argument
|
H A D | cbc.h | 52 uint32_t blocksize, uint32_t ivsize,
|
/opensolaris-onvv-gate/usr/src/cmd/lp/filter/postscript/postio/ |
H A D | slowsend.c | 38 * XOFFs - provided our input buffer (ie. blocksize) is sufficiently small. Was 55 extern int blocksize; 76 * blocksize is sufficiently small (1024 should be safe). It's a totally kludged 89 writeblock(blocksize);
|
/opensolaris-onvv-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_object.c | 31 dmu_object_alloc(objset_t *os, dmu_object_type_t ot, int blocksize, argument 76 dnode_allocate(dn, ot, blocksize, 0, bonustype, bonuslen, tx); 87 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) 98 dnode_allocate(dn, ot, blocksize, 0, bonustype, bonuslen, tx); 107 int blocksize, dmu_object_type_t bonustype, int bonuslen) 122 if (dn->dn_type == ot && dn->dn_datablksz == blocksize && 140 if (dn->dn_nblkptr > nblkptr || dn->dn_datablksz != blocksize) { 154 dnode_reallocate(dn, ot, blocksize, bonustype, bonuslen, tx); 86 dmu_object_claim(objset_t *os, uint64_t object, dmu_object_type_t ot, int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) argument 106 dmu_object_reclaim(objset_t *os, uint64_t object, dmu_object_type_t ot, int blocksize, dmu_object_type_t bonustype, int bonuslen) argument
|
/opensolaris-onvv-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_diskmgt.h | 54 uint32_t blocksize; member in struct:dmgt_disk
|
H A D | libzfs_jni_diskmgt.c | 45 const char *name, uint32_t blocksize, int *error); 47 const char *name, uint32_t blocksize, int *in_use, int *error); 49 uint64_t *size, uint32_t *blocksize, int *error); 53 dm_descriptor_t slice, uint32_t blocksize, int *error); 133 &(dp->size), &(dp->blocksize), 140 dp->blocksize, 255 get_disk_slices(dm_descriptor_t media, const char *name, uint32_t blocksize, argument 275 get_slice(slices[j], blocksize, error); 360 uint32_t blocksize, int *in_use, int *error) 362 dmgt_slice_t **slices = get_disk_slices(media, name, blocksize, erro 359 get_disk_usable_slices(dm_descriptor_t media, const char *name, uint32_t blocksize, int *in_use, int *error) argument 437 get_disk_size(dm_descriptor_t media, char *name, uint64_t *size, uint32_t *blocksize, int *error) argument 537 get_slice(dm_descriptor_t slice, uint32_t blocksize, int *error) argument [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_crypt.c | 75 size_t blocksize; local 79 code = krb5_c_block_size(context, key->enctype, &blocksize); 83 return(blocksize); 93 size_t blocksize; local 96 code = krb5_c_block_size(context, key->enctype, &blocksize); 100 lrandom.length = blocksize; 131 size_t blocksize; local 138 code = krb5_c_block_size(context, key->enctype, &blocksize); 142 ivd.length = blocksize; 179 size_t blocksize; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | old_api_glue.c | 47 size_t blocksize, outlen; local 51 if ((ret = krb5_c_block_size(context, eblock->key->enctype, &blocksize))) 54 ivecd.length = blocksize; 82 size_t blocksize; local 86 if ((ret = krb5_c_block_size(context, eblock->key->enctype, &blocksize))) 89 ivecd.length = blocksize; 290 size_t enclen, blocksize; local 298 if ((ret = krb5_c_block_size(context, key->enctype, &blocksize))) 301 ivecd.length = blocksize; 324 size_t blocksize; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | copyf.c | 251 size_t blocksize; local 254 /* set blocksize for copy */ 256 blocksize = a_iosize; 257 if ((blocksize == 0) || (blocksize > SMALLFILESIZE)) { 258 blocksize = SMALLFILESIZE; 259 } else if (blocksize < pagesize) { 260 blocksize = pagesize; 265 buf = memalign((size_t)pagesize, blocksize); 279 n = read(a_srcFd, buf, blocksize); [all...] |
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/ec/ |
H A D | ec_mult.c | 84 size_t blocksize; /* block size for wNAF splitting */ member in struct:ec_pre_comp_st 109 ret->blocksize = 8; /* default */ 331 size_t blocksize = 0, numblocks = 0; /* for wNAF splitting */ local 392 blocksize = pre_comp->blocksize; 396 numblocks = (BN_num_bits(scalar) / blocksize) + 1; 504 if (tmp_len < numblocks * blocksize) 507 numblocks = (tmp_len + blocksize - 1) / blocksize; 524 wNAF_len[i] = blocksize; 741 size_t i, bits, w, pre_points_per_block, blocksize, numblocks, num; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/libparted/common/libparted/fs/ext2/ |
H A D | ext2_mkfs.c | 131 int blocksize; local 140 blocksize = 1 << (EXT2_SUPER_LOG_BLOCK_SIZE(*sb) + 13); 208 for (j=groupsize;j<blocksize;j++) 218 for (j=EXT2_SUPER_INODES_PER_GROUP(*sb);j<blocksize;j++) 292 uint32_t* data = ped_malloc ((fs->blocksize / 4) * sizeof(uint32_t)); 311 memset(bh->data, 0, fs->blocksize); 312 offset = _set_dirent(bh->data, 0, fs->blocksize, 0, 314 offset = _set_dirent(bh->data, offset, fs->blocksize, 1, 320 memset(data, 0, fs->blocksize); 322 data[1] = PED_CPU_TO_LE32(fs->blocksize); [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/io/ |
H A D | strsun.c | 275 ssize_t blocksize; local 278 blocksize = MIN(iosize, maxblk); 279 ASSERT(blocksize >= 0); 280 if ((mp = allocb_cred(offset + blocksize + tail_len, 286 mp->b_wptr = mp->b_rptr + blocksize; 292 if ((*errorp = uiomove(mp->b_rptr, (size_t)blocksize, 299 iosize -= blocksize;
|