Searched refs:blocksize (Results 1 - 25 of 54) sorted by relevance

123

/osnet-11/usr/src/grub/grub2/grub-core/disk/
H A DAFSplitter.c28 grub_uint8_t * dst, grub_size_t blocksize,
70 grub_size_t blocksize, grub_size_t blocknumbers)
75 bufblock = grub_zalloc (blocksize);
79 grub_memset (bufblock, 0, blocksize);
82 grub_crypto_xor (bufblock, src + (blocksize * i), bufblock, blocksize);
83 diffuse (hash, bufblock, bufblock, blocksize);
85 grub_crypto_xor (dst, src + (i * blocksize), bufblock, blocksize);
69 AF_merge(const gcry_md_spec_t * hash, grub_uint8_t * src, grub_uint8_t * dst, grub_size_t blocksize, grub_size_t blocknumbers) argument
H A Dluks.c64 grub_uint8_t * dst, grub_size_t blocksize,
182 if (cipher->cipher->blocksize != GRUB_CRYPTODISK_GF_BYTES)
186 cipher->cipher->blocksize);
189 if (secondary_cipher->cipher->blocksize != GRUB_CRYPTODISK_GF_BYTES)
193 secondary_cipher->cipher->blocksize);
201 if (cipher->cipher->blocksize != GRUB_CRYPTODISK_GF_BYTES)
205 cipher->cipher->blocksize);
224 if (cipher->cipher->blocksize & (cipher->cipher->blocksize - 1)
225 || cipher->cipher->blocksize
[all...]
H A Dscsi.c188 scsi->blocksize = grub_be_to_cpu32 (rcd.blocksize);
214 err = scsi->dev->read (scsi, sizeof (rd), (char *) &rd, size * scsi->blocksize, buf);
246 err = scsi->dev->read (scsi, sizeof (rd), (char *) &rd, size * scsi->blocksize, buf);
280 err = scsi->dev->write (scsi, sizeof (wr), (char *) &wr, size * scsi->blocksize, buf);
312 err = scsi->dev->write (scsi, sizeof (wr), (char *) &wr, size * scsi->blocksize, buf);
490 if (scsi->blocksize & (scsi->blocksize - 1) || !scsi->blocksize)
494 scsi->blocksize);
[all...]
H A Dcryptodisk.c114 grub_uint8_t ivt[cipher->cipher->blocksize];
117 if (size % cipher->cipher->blocksize != 0)
121 inptr += cipher->cipher->blocksize, outptr += cipher->cipher->blocksize)
123 grub_memcpy (ivt, inptr, cipher->cipher->blocksize);
125 grub_crypto_xor (outptr, outptr, iv, cipher->cipher->blocksize);
126 grub_crypto_xor (iv, ivt, outptr, cipher->cipher->blocksize);
206 grub_size_t sz = ((dev->cipher->cipher->blocksize
264 dev->cipher->cipher->blocksize);
288 dev->cipher->cipher->blocksize);
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/amiga/
H A Dasfs.c37 _asfs_probe_root (PedGeometry *geom, uint32_t *block, int blocksize, PedSector root) { argument
42 for (i = 0, sum = 1; i < 128*blocksize; i++) sum += PED_BE32_TO_CPU (block[i]);
44 if (PED_BE32_TO_CPU (block[2]) * blocksize + geom->start != root) {
60 int blocksize = 1; local
67 /* Finds the blocksize of the partition block */
68 if (!(part = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) {
74 blocksize = PED_BE32_TO_CPU (part->de_SizeBlock)
80 if (!(block = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) {
86 if (!ped_device_read (geom->dev, block, root, blocksize)) {
96 if (_asfs_probe_root(geom, block, blocksize, roo
[all...]
H A Dapfs.c37 _apfs_probe_root (uint32_t *block, uint32_t blocksize, uint32_t kind) { argument
48 uint32_t blocksize = 1, reserved = 2; local
53 /* Finds the blocksize and reserved values of the partition block */
54 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 Daffs.c37 _affs_probe_root (uint32_t *block, int blocksize) { argument
42 if (PED_BE32_TO_CPU (block[128*blocksize-1]) != 1) return 0;
43 for (i = 0, sum = 0; i < 128*blocksize; i++)
55 int blocksize = 1, reserved = 2, prealloc = 0; local
60 /* Finds the blocksize, prealloc and reserved values of the partition block */
61 if (!(part = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) {
70 blocksize = PED_BE32_TO_CPU (part->de_SizeBlock)
76 if (!(block = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) {
81 if (!ped_device_read (geom->dev, block, geom->start, blocksize)) {
91 len = geom->length / blocksize
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/lib/libgcrypt/cipher/
H A Dcipher.c642 len = ((gcry_cipher_spec_t *) cipher->spec)->blocksize;
644 log_bug ("cipher %d w/o blocksize\n", algorithm);
898 memset (c->u_iv.iv, 0, c->cipher->blocksize);
901 if (ivlen != c->cipher->blocksize)
904 ivlen, (unsigned int)c->cipher->blocksize);
907 if (ivlen > c->cipher->blocksize)
908 ivlen = c->cipher->blocksize;
923 memset (c->u_iv.iv, 0, c->cipher->blocksize);
924 memset (c->lastiv, 0, c->cipher->blocksize);
925 memset (c->ctr, 0, c->cipher->blocksize);
963 size_t blocksize = c->cipher->blocksize; local
1029 size_t blocksize = c->cipher->blocksize; local
1095 size_t blocksize = c->cipher->blocksize; local
1174 size_t blocksize = c->cipher->blocksize; local
1270 size_t blocksize = c->cipher->blocksize; local
1318 size_t blocksize = c->cipher->blocksize; local
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/lib/
H A Dcrypto.c180 if (size % cipher->cipher->blocksize != 0)
184 inptr += cipher->cipher->blocksize, outptr += cipher->cipher->blocksize)
197 if (size % cipher->cipher->blocksize != 0)
201 inptr += cipher->cipher->blocksize, outptr += cipher->cipher->blocksize)
215 if (size % cipher->cipher->blocksize != 0)
220 inptr += cipher->cipher->blocksize, outptr += cipher->cipher->blocksize)
222 grub_crypto_xor (outptr, inptr, iv, cipher->cipher->blocksize);
[all...]
H A Dcrc64.c102 .blocksize = 64
/osnet-11/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.h51 uint32_t blocksize; member in struct:dmgt_disk
H A Dlibzfs_jni_diskmgt.c45 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...]
/osnet-11/usr/src/grub/grub2/grub-core/partmap/
H A Dapple.c35 grub_uint16_t blocksize; member in struct:grub_apple_header
128 pos = grub_be_to_cpu16 (aheader.blocksize);
152 * grub_be_to_cpu16 (aheader.blocksize))
155 * grub_be_to_cpu16 (aheader.blocksize))
170 pos += grub_be_to_cpu16 (aheader.blocksize);
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dold_api_glue.c45 size_t blocksize, outlen; local
49 if ((ret = krb5_c_block_size(context, eblock->key->enctype, &blocksize)))
52 ivecd.length = blocksize;
80 size_t blocksize; local
84 if ((ret = krb5_c_block_size(context, eblock->key->enctype, &blocksize)))
87 ivecd.length = blocksize;
294 size_t enclen, blocksize; local
302 if ((ret = krb5_c_block_size(context, key->enctype, &blocksize)))
305 ivecd.length = blocksize;
328 size_t blocksize; local
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/fs/
H A Daffs.c113 int blocksize;
151 node->block_cache[curblock - 1] + data->blocksize - 1,
152 data->blocksize * (GRUB_DISK_SECTOR_SIZE
181 int blocksize = 0;
221 /* The filesystem blocksize is not stored anywhere in the filesystem
224 for (blocksize = 0; blocksize < 8; blocksize++)
226 grub_uint32_t *currblock = rootblock + GRUB_DISK_SECTOR_SIZE * blocksize;
237 grub_error (GRUB_ERR_BAD_FS, "AFFS blocksize could
112 int blocksize; member in struct:grub_affs_data
179 int blocksize = 0; local
[all...]
H A Dsfs.c46 grub_uint32_t blocksize; member in struct:grub_sfs_rblock
89 /* The amount of objects depends on the blocksize. */
137 unsigned int blocksize;
159 treeblock = grub_malloc (data->blocksize);
169 grub_disk_read (data->disk, next, 0, data->blocksize, treeblock);
289 data->blocksize = grub_be_to_cpu32 (data->rblock.blocksize);
290 rootobjc_data = grub_malloc (data->blocksize);
296 data->blocksize, rootobjc_data);
329 block = grub_malloc (data->blocksize);
136 unsigned int blocksize; member in struct:grub_sfs_data
[all...]
H A Dfshelp.c237 int blocksize = 1 << (log2blocksize + GRUB_DISK_SECTOR_BITS); local
243 blockcnt = ((len + pos) + blocksize - 1) >> (log2blocksize + GRUB_DISK_SECTOR_BITS);
248 int blockoff = pos & (blocksize - 1);
249 int blockend = blocksize;
262 blockend = (len + pos) & (blocksize - 1);
264 /* The last portion is exactly blocksize. */
266 blockend = blocksize;
291 buf += blocksize - skipfirst;
311 "the blocksize is not a power of two");
/osnet-11/usr/src/lib/libparted/common/libparted/fs/ext2/
H A Dext2_mkfs.c131 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,
321 memset(data, 0, fs->blocksize);
323 data[1] = PED_CPU_TO_LE32(fs->blocksize);
[all...]
H A Dext2.c37 unsigned char* buf = ped_malloc (fs->blocksize);
221 buf = ped_malloc (fs->blocksize);
226 memset(buf, 0, fs->blocksize);
275 return offset & (fs->blocksize - 1);
357 size = EXT2_INODE_SIZE(*inode) + delta * fs->blocksize;
370 int u32perblock = fs->blocksize >> 2;
601 unsigned char* sb = ped_malloc(fs->blocksize);
749 fs->blocksize = 1 << fs->logsize;
756 fs->blocksize);
759 fs->blocksize);
[all...]
/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dfsys_reiserfs.c326 /* SECTOR_SIZE << blocksize_shift == blocksize. */
328 /* 1 << full_blocksize_shift == blocksize. */
331 __u16 blocksize; member in struct:fsys_reiser_info
612 INFO->blocksize = super.s_blocksize;
619 printf ("reiserfs_mount: version=%d, blocksize=%d\n",
620 INFO->version, INFO->blocksize);
647 if (! block_read (super.s_root_block, 0, INFO->blocksize, (char*) ROOT))
663 memcpy (LEAF, ROOT, INFO->blocksize);
712 if (! block_read (blockNr, 0, INFO->blocksize, cache))
889 unsigned int blocksize; local
[all...]
/osnet-11/usr/src/grub/grub2/include/grub/
H A Dscsi.h101 int blocksize; member in struct:grub_scsi
/osnet-11/usr/src/lib/libsoftcrypto/common/
H A Dcrypt.c54 uint8_t blocksize; /* for padding, blocksize multiple */ member in struct:ucrypto_ctx
55 uint8_t remain; /* for padding, remainder % blocksize */
87 int blocksize; local
92 blocksize = AES_BLOCK_LEN; /* i.e., padding needed */
97 blocksize = 0; /* i.e., no padding needed */
153 uctx->blocksize = blocksize; /* constant based on mech type */
337 if (uctx->blocksize != 0)
338 uctx->remain = ((uctx->remain + in_len) % uctx->blocksize);
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dmk_priv.c52 size_t blocksize, enclen; local
84 if ((retval = krb5_c_block_size(context, enctype, &blocksize)))
87 ivdata.length = blocksize;
H A Drd_priv.c72 size_t blocksize; local
85 if ((retval = krb5_c_block_size(context, enctype, &blocksize)))
88 ivdata.length = blocksize;
/osnet-11/usr/src/grub/grub2/grub-core/lib/libgcrypt-grub/cipher/
H A Dcrc.c285 .blocksize = 64
298 .blocksize = 64
311 .blocksize = 64

Completed in 192 milliseconds

123