/illumos-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);
|
/illumos-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
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_diskmgt.h | 54 uint32_t blocksize; member in struct:dmgt_disk
|
/illumos-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);
|
/illumos-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
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/ |
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...] |
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...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | mk_priv.c | 48 size_t blocksize, enclen; local 81 &blocksize))) 84 ivdata.length = blocksize;
|
H A D | rd_priv.c | 66 size_t blocksize; local 78 &blocksize))) 81 ivdata.length = blocksize;
|
H A D | auth_con.c | 283 size_t blocksize; local 286 &blocksize))) 288 if ((auth_context->i_vector = (krb5_pointer)malloc(blocksize))) { 289 memset(auth_context->i_vector, 0, blocksize);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/ |
H A D | k5_arcfour.c | 27 size_t blocksize, hashsize; local 29 blocksize = enc->block_size; 32 /* checksum + (confounder + inputlen, in even blocksize) */ 33 *length = hashsize + krb5_roundup(8 + inputlen, blocksize); 86 size_t keybytes, blocksize, hashsize; local 89 blocksize = enc->block_size; 154 /* is "input" already blocksize aligned? if it is, then we need this 156 plaintext.length=krb5_roundup(input->length+CONFOUNDERLENGTH,blocksize); 173 ciphertext.length=krb5_roundup(input->length+CONFOUNDERLENGTH,blocksize);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/ |
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...] |
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...] |
/illumos-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...] |
H A D | k5unseal.c | 88 size_t sumlen, blocksize; local 274 * pad length, so we know it can not be more than the blocksize. 276 code = krb5_c_block_size(context, ctx->enc->enctype, &blocksize); 283 if (plain[tmsglen-1] > blocksize) {
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_object.c | 35 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/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...] |
/illumos-gate/usr/src/boot/sys/boot/usb/storage/ |
H A D | umass_loader.c | 114 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 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...] |
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_menu.c | 81 char *buf, int32_t flag, int32_t blocksize, int32_t no_raw_rw); 845 int32_t blocksize; local 860 blocksize = med_info.sm_blocksize; 864 read_buf = (char *)malloc(blocksize * verify_size); 869 write_buf = (char *)malloc(blocksize * verify_size); 889 VERIFY_READ, blocksize, no_raw_rw); 894 VERIFY_READ, blocksize, no_raw_rw); 908 VERIFY_READ, blocksize, 931 for (j = 0; j < blocksize * verify_size; j++) { 937 VERIFY_WRITE, blocksize, no_raw_r [all...] |
/illumos-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;
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postcomm/ |
H A D | postcomm.c | 124 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)
|