Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 25 of 68) sorted by relevance

123

/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/
H A Ddk_encrypt.c50 size_t blocksize, hashsize; in krb5_dk_encrypt_length() local
52 blocksize = enc->block_size; in krb5_dk_encrypt_length()
54 *length = krb5_roundup(blocksize+inputlen, blocksize) + hashsize; in krb5_dk_encrypt_length()
65 size_t blocksize, plainlen, enclen; in krb5_dk_encrypt() local
87 blocksize = enc->block_size; in krb5_dk_encrypt()
88 plainlen = krb5_roundup(blocksize+input->length, blocksize); in krb5_dk_encrypt()
100 d1.length = blocksize; in krb5_dk_encrypt()
106 (void) memcpy(plaintext+blocksize, input->data, input->length); in krb5_dk_encrypt()
108 (void) memset(plaintext+blocksize+input->length, 0, in krb5_dk_encrypt()
109 plainlen - (blocksize+input->length)); in krb5_dk_encrypt()
[all …]
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 …]
H A Ddk_decrypt.c85 size_t hashsize, blocksize, enclen, plainlen; in krb5_dk_decrypt_maybe_trunc_hmac() local
107 blocksize = enc->block_size; in krb5_dk_decrypt_maybe_trunc_hmac()
115 if (input->length < blocksize + hmacsize) in krb5_dk_decrypt_maybe_trunc_hmac()
117 if (output->length < input->length - blocksize - hmacsize) in krb5_dk_decrypt_maybe_trunc_hmac()
139 if (ivec != NULL && ivec->length == blocksize) { in krb5_dk_decrypt_maybe_trunc_hmac()
140 cn = (unsigned char *) d1.data + d1.length - blocksize; in krb5_dk_decrypt_maybe_trunc_hmac()
172 plainlen = enclen - blocksize; in krb5_dk_decrypt_maybe_trunc_hmac()
181 (void) memcpy(output->data, d2.data+blocksize, output->length); in krb5_dk_decrypt_maybe_trunc_hmac()
190 (void) memcpy(ivec->data, cn, blocksize); in krb5_dk_decrypt_maybe_trunc_hmac()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/
H A Dold_decrypt.c48 size_t blocksize, hashsize, plainsize; in krb5_old_decrypt() local
54 blocksize = enc->block_size; in krb5_old_decrypt()
58 if (input->length < blocksize + hashsize || input->length % blocksize != 0) in krb5_old_decrypt()
60 plainsize = input->length - blocksize - hashsize; in krb5_old_decrypt()
83 if (ivec != NULL && ivec->length == blocksize) { in krb5_old_decrypt()
84 cn = MALLOC(blocksize); in krb5_old_decrypt()
89 (void) memcpy(cn, input->data + input->length - blocksize, blocksize); in krb5_old_decrypt()
105 (void) memcpy(orig_cksum, output.data+blocksize, hashsize); in krb5_old_decrypt()
106 (void) memset(output.data+blocksize, 0, hashsize); in krb5_old_decrypt()
122 (void) memcpy(arg_output->data, output.data+blocksize+hashsize, in krb5_old_decrypt()
[all …]
H A Dold_encrypt.c42 size_t blocksize, hashsize; in krb5_old_encrypt_length() local
44 blocksize = enc->block_size; in krb5_old_encrypt_length()
47 *length = krb5_roundup(blocksize+hashsize+inputlen, blocksize); in krb5_old_encrypt_length()
62 size_t blocksize, hashsize, enclen; in krb5_old_encrypt() local
66 blocksize = enc->block_size; in krb5_old_encrypt()
80 datain.length = blocksize; in krb5_old_encrypt()
85 (void) memcpy(output->data+blocksize+hashsize, input->data, input->length); in krb5_old_encrypt()
90 datain.data = output->data+blocksize; in krb5_old_encrypt()
110 if (real_ivec && ivec != NULL && ivec->length == blocksize) in krb5_old_encrypt()
111 (void) memcpy(ivec->data, output->data + output->length - blocksize, in krb5_old_encrypt()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dhmac.c113 size_t hashsize, blocksize; in krb5_hmac() local
140 blocksize = hash->blocksize; in krb5_hmac()
142 if (key->length > blocksize) in krb5_hmac()
153 if ((xorkey = (unsigned char *) MALLOC(blocksize)) == NULL) in krb5_hmac()
156 FREE(xorkey, blocksize); in krb5_hmac()
161 FREE(xorkey, blocksize); in krb5_hmac()
168 (void) memset(xorkey, 0x36, blocksize); in krb5_hmac()
176 hashin[0].length = blocksize; in krb5_hmac()
191 (void) memset(xorkey, 0x5c, blocksize); in krb5_hmac()
198 hashin[0].length = blocksize; in krb5_hmac()
[all …]
H A Dcombine_keys.c307 size_t blocksize, keybytes, keylength, n; in dr() local
311 blocksize = enc->block_size; in dr()
317 if ((inblockdata = (unsigned char *) malloc(blocksize)) == NULL) in dr()
320 if ((outblockdata = (unsigned char *) malloc(blocksize)) == NULL) { in dr()
326 inblock.length = blocksize; in dr()
329 outblock.length = blocksize; in dr()
359 memset(inblockdata, 0, blocksize); in dr()
360 memset(outblockdata, 0, blocksize); in dr()
H A Dblock_size.c33 size_t *blocksize) in krb5_c_block_size() argument
45 *blocksize = krb5_enctypes_list[i].enc->block_size; in krb5_c_block_size()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu_object.c46 dmu_object_alloc_impl(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_impl() argument
176 dnode_allocate(dn, ot, blocksize, 0, in dmu_object_alloc_impl()
201 dmu_object_alloc(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc() argument
204 return (dmu_object_alloc_impl(os, ot, blocksize, 0, bonustype, in dmu_object_alloc()
209 dmu_object_alloc_ibs(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_ibs() argument
213 return (dmu_object_alloc_impl(os, ot, blocksize, indirect_blockshift, in dmu_object_alloc_ibs()
218 dmu_object_alloc_dnsize(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_dnsize() argument
221 return (dmu_object_alloc_impl(os, ot, blocksize, 0, bonustype, in dmu_object_alloc_dnsize()
227 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) in dmu_object_claim() argument
229 return (dmu_object_claim_dnsize(os, object, ot, blocksize, bonustype, in dmu_object_claim()
[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/lib/gss_mechs/mech_krb5/crypto/
H A Dold_api_glue.c47 size_t blocksize, outlen; in krb5_encrypt() local
51 if ((ret = krb5_c_block_size(context, eblock->key->enctype, &blocksize))) in krb5_encrypt()
54 ivecd.length = blocksize; in krb5_encrypt()
82 size_t blocksize; in krb5_decrypt() local
86 if ((ret = krb5_c_block_size(context, eblock->key->enctype, &blocksize))) in krb5_decrypt()
89 ivecd.length = blocksize; in krb5_decrypt()
290 size_t enclen, blocksize; in krb5_encrypt_data() local
298 if ((ret = krb5_c_block_size(context, key->enctype, &blocksize))) in krb5_encrypt_data()
301 ivecd.length = blocksize; in krb5_encrypt_data()
324 size_t blocksize; in krb5_decrypt_data() local
[all …]
/illumos-gate/usr/src/lib/libzfs_jni/common/
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), in get_disk()
142 dp->blocksize, in get_disk()
258 get_disk_slices(dm_descriptor_t media, const char *name, uint32_t blocksize, in get_disk_slices() argument
278 get_slice(slices[j], blocksize, error); in get_disk_slices()
363 uint32_t blocksize, int *in_use, int *error) in get_disk_usable_slices() argument
365 dmgt_slice_t **slices = get_disk_slices(media, name, blocksize, error); in get_disk_usable_slices()
[all …]
/illumos-gate/usr/src/cmd/od/
H A Dod.c57 static size_t blocksize = 16; variable
314 blocksize = lcm; in add_out()
315 while (blocksize < 16) in add_out()
316 blocksize *= 2; in add_out()
359 while ((input != NULL) && (b->navail < (2 * blocksize))) { in refill()
370 want = blocksize; in refill()
374 zero = blocksize; in refill()
721 buffer.mask = (1 << (ffs(blocksize * 3) + 1)) - 1; in main()
872 if ((!first) && (buffer.navail >= blocksize) && (!doall)) { in main()
874 k = j - blocksize; in main()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dcopyf.c251 size_t blocksize; in copyFile() local
256 blocksize = a_iosize; in copyFile()
257 if ((blocksize == 0) || (blocksize > SMALLFILESIZE)) { in copyFile()
258 blocksize = SMALLFILESIZE; in copyFile()
259 } else if (blocksize < pagesize) { in copyFile()
260 blocksize = pagesize; in copyFile()
265 buf = memalign((size_t)pagesize, blocksize); in copyFile()
279 n = read(a_srcFd, buf, blocksize); in copyFile()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_reiserfs.c331 __u16 blocksize; member
612 INFO->blocksize = super.s_blocksize; in reiserfs_mount()
620 INFO->version, INFO->blocksize); in reiserfs_mount()
647 if (! block_read (super.s_root_block, 0, INFO->blocksize, (char*) ROOT)) in reiserfs_mount()
663 memcpy (LEAF, ROOT, INFO->blocksize); in reiserfs_mount()
712 if (! block_read (blockNr, 0, INFO->blocksize, cache)) in read_tree_node()
889 unsigned int blocksize; in reiserfs_read() local
912 blocksize = INFO->current_ih->ih_item_len; in reiserfs_read()
916 filepos, len, offset, blocksize); in reiserfs_read()
920 && offset < blocksize) in reiserfs_read()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tftp.c46 int blocksize = fraglen - 4; in interpret_tftp() local
93 ntohs(tftp->th_block), blocksize, in interpret_tftp()
94 blocksize < opts.blksize ? " (last block)":""); in interpret_tftp()
139 blocksize < opts.blksize ? " (last block)" : ""); in interpret_tftp()
142 blocksize), "[ %d bytes of data ]", blocksize); in interpret_tftp()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/raw/
H A Draw_encrypt.c42 size_t blocksize; in krb5_raw_encrypt_length() local
44 blocksize = enc->block_size; in krb5_raw_encrypt_length()
46 *length = krb5_roundup(inputlen, blocksize); in krb5_raw_encrypt_length()
/illumos-gate/usr/src/uts/common/io/
H A Dstrsun.c275 ssize_t blocksize; in mcopyinuio() local
278 blocksize = MIN(iosize, maxblk); in mcopyinuio()
279 ASSERT(blocksize >= 0); in mcopyinuio()
280 if ((mp = allocb_cred(offset + blocksize + tail_len, in mcopyinuio()
286 mp->b_wptr = mp->b_rptr + blocksize; in mcopyinuio()
292 if ((*errorp = uiomove(mp->b_rptr, (size_t)blocksize, in mcopyinuio()
299 iosize -= blocksize; in mcopyinuio()
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/
H A Dpostio.c175 int blocksize = BLOCKSIZE; /* and its size in bytes */ variable
352 if ((blocksize = atoi(optarg)) <= 0) in options()
353 blocksize = BLOCKSIZE; in options()
452 blocksize = 1; in initialize()
462 if (blocksize > 1024) /* don't send too much all at once */ in initialize()
463 blocksize = 1024; in initialize()
469 if ((block = malloc(blocksize)) == NULL) in initialize()
482 if ((block = malloc(blocksize)) == NULL) in initialize_parallel()
883 if ((tail = read(fd_in, block, blocksize)) == -1) in readblock()
H A Dslowsend.c54 extern int blocksize;
88 writeblock(blocksize); in slowsend()
/illumos-gate/usr/src/cmd/lp/filter/postscript/postcomm/
H A Dpostcomm.c122 int blocksize = BLOCKSIZE; /* and its size in bytes */ variable
279 if ((blocksize = atoi(optarg)) <= 0) in options()
280 blocksize = BLOCKSIZE; in options()
324 if ((block = malloc(blocksize)) == NULL) in initialize()
495 if ((tail = read(fd_in, block, blocksize)) == -1) in readblock()
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_menu.c81 char *buf, int32_t flag, int32_t blocksize, int32_t no_raw_rw);
845 int32_t blocksize; in process_V_flag() local
860 blocksize = med_info.sm_blocksize; in process_V_flag()
864 read_buf = (char *)malloc(blocksize * verify_size); in process_V_flag()
869 write_buf = (char *)malloc(blocksize * verify_size); in process_V_flag()
889 VERIFY_READ, blocksize, no_raw_rw); in process_V_flag()
894 VERIFY_READ, blocksize, no_raw_rw); in process_V_flag()
908 VERIFY_READ, blocksize, in process_V_flag()
931 for (j = 0; j < blocksize * verify_size; j++) { in process_V_flag()
937 VERIFY_WRITE, blocksize, no_raw_rw); in process_V_flag()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/
H A Dk5_arcfour.c27 size_t blocksize, hashsize; local
29 blocksize = enc->block_size;
33 *length = hashsize + krb5_roundup(8 + inputlen, blocksize);
86 size_t keybytes, blocksize, hashsize; local
89 blocksize = enc->block_size;
156 plaintext.length=krb5_roundup(input->length+CONFOUNDERLENGTH,blocksize);
173 ciphertext.length=krb5_roundup(input->length+CONFOUNDERLENGTH,blocksize);
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dkcmd.c476 size_t blocksize; in init_encrypt() local
519 &blocksize); in init_encrypt()
526 encivec_o[0].length = encivec_o[1].length = blocksize; in init_encrypt()
538 (void) memset(encivec_i[0].data, amclient, blocksize); in init_encrypt()
539 (void) memset(encivec_o[0].data, 1 - amclient, blocksize); in init_encrypt()
540 (void) memset(encivec_i[1].data, 2 | amclient, blocksize); in init_encrypt()
541 (void) memset(encivec_o[1].data, 2 | (1 - amclient), blocksize); in init_encrypt()
/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);

123