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

123

/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/
H A Dold_encrypt.c42 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 Dold_decrypt.c48 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...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dblock_size.c33 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 Dhmac.c100 * 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 Dcombine_keys.c307 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);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/
H A Ddk_encrypt.c40 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 Ddk_decrypt.c85 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 Dderive.c264 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...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/raw/
H A Draw_encrypt.c42 size_t blocksize; local
44 blocksize = enc->block_size;
46 *length = krb5_roundup(inputlen, blocksize);
/illumos-gate/usr/src/common/net/wanboot/crypt/
H A Dcbc.c40 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 Dcbc.h52 uint32_t blocksize, uint32_t ivsize,
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tftp.c42 int blocksize = fraglen - 4; local
72 blocksize,
73 blocksize < 512 ? " (last block)":"");
118 blocksize < 512 ? " (last block)":"");
120 dlc_header, blocksize),
122 blocksize); local
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/
H A Dslowsend.c38 * 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);
H A Dpostio.c177 int blocksize = BLOCKSIZE; /* and its size in bytes */ variable
354 if ((blocksize = atoi(optarg)) <= 0)
355 blocksize = BLOCKSIZE;
454 blocksize = 1;
464 if (blocksize > 1024) /* don't send too much all at once */
465 blocksize = 1024;
471 if ((block = malloc(blocksize)) == NULL)
484 if ((block = malloc(blocksize)) == NULL)
885 if ((tail = read(fd_in, block, blocksize)) == -1)
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.h54 uint32_t blocksize; member in struct:dmgt_disk
H A Dlibzfs_jni_diskmgt.c47 const char *name, uint32_t blocksize, int *error);
49 const char *name, uint32_t blocksize, int *in_use, int *error);
51 uint64_t *size, uint32_t *blocksize, int *error);
55 dm_descriptor_t slice, uint32_t blocksize, int *error);
135 &(dp->size), &(dp->blocksize),
142 dp->blocksize,
258 get_disk_slices(dm_descriptor_t media, const char *name, uint32_t blocksize, argument
278 get_slice(slices[j], blocksize, error);
363 uint32_t blocksize, int *in_use, int *error)
365 dmgt_slice_t **slices = get_disk_slices(media, name, blocksize, erro
362 get_disk_usable_slices(dm_descriptor_t media, const char *name, uint32_t blocksize, int *in_use, int *error) argument
441 get_disk_size(dm_descriptor_t media, char *name, uint64_t *size, uint32_t *blocksize, int *error) argument
541 get_slice(dm_descriptor_t slice, uint32_t blocksize, int *error) argument
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_crypt.c75 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...]
/illumos-gate/usr/src/boot/sys/boot/usb/storage/
H A Dumass_loader.c114 uint32_t blocksize; local
116 if (usb_msc_read_capacity(umass_uaa.device, 0, &nblock, &blocksize) != 0)
119 return (disk_open(dev, ((uint64_t)nblock + 1) * (uint64_t)blocksize, blocksize, 0));
143 uint32_t blocksize; local
149 &nblock, &blocksize) != 0)
155 *(uint32_t*)buf = blocksize;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dold_api_glue.c47 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...]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dcopyf.c251 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...]
/illumos-gate/usr/src/cmd/od/
H A Dod.c53 static size_t blocksize = 16; variable
310 blocksize = lcm;
311 while (blocksize < 16)
312 blocksize *= 2;
355 while ((input != NULL) && (b->navail < (2 * blocksize))) {
366 want = blocksize;
370 zero = blocksize;
718 buffer.mask = (1 << (ffs(blocksize * 3) + 1)) - 1;
869 if ((!first) && (buffer.navail >= blocksize) && (!doall)) {
871 k = j - blocksize;
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dbpobj.h70 uint64_t bpobj_alloc(objset_t *mos, int blocksize, dmu_tx_t *tx);
71 uint64_t bpobj_alloc_empty(objset_t *os, int blocksize, dmu_tx_t *tx);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu_object.c35 dmu_object_alloc(objset_t *os, dmu_object_type_t ot, int blocksize, argument
95 dnode_allocate(dn, ot, blocksize, 0, bonustype, bonuslen, tx);
106 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx)
117 dnode_allocate(dn, ot, blocksize, 0, bonustype, bonuslen, tx);
126 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx)
139 dnode_reallocate(dn, ot, blocksize, bonustype, bonuslen, tx);
105 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
125 dmu_object_reclaim(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
/illumos-gate/usr/src/uts/common/io/
H A Dstrsun.c275 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;
/illumos-gate/usr/src/cmd/lp/filter/postscript/postcomm/
H A Dpostcomm.c124 int blocksize = BLOCKSIZE; /* and its size in bytes */ variable
285 if ((blocksize = atoi(optarg)) <= 0)
286 blocksize = BLOCKSIZE;
331 if ((block = malloc(blocksize)) == NULL)
504 if ((tail = read(fd_in, block, blocksize)) == -1)

Completed in 79 milliseconds

123