Home
last modified time | relevance | path

Searched refs:iv (Results 1 – 25 of 71) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_indirect.c293 indirect_vsd_t *iv = zio->io_vsd; in vdev_indirect_map_free() local
296 while ((is = list_head(&iv->iv_splits)) != NULL) { in vdev_indirect_map_free()
302 list_remove(&iv->iv_splits, is); in vdev_indirect_map_free()
313 kmem_free(iv, sizeof (*iv)); in vdev_indirect_map_free()
1180 indirect_vsd_t *iv = zio->io_vsd; in vdev_indirect_gather_splits() local
1217 list_insert_tail(&iv->iv_splits, is); in vdev_indirect_gather_splits()
1241 indirect_vsd_t *iv = zio->io_vsd; in vdev_indirect_read_all() local
1245 for (indirect_split_t *is = list_head(&iv->iv_splits); in vdev_indirect_read_all()
1246 is != NULL; is = list_next(&iv->iv_splits, is)) { in vdev_indirect_read_all()
1274 iv->iv_reconstruct = B_TRUE; in vdev_indirect_read_all()
[all …]
H A Dzio_crypt.c492 zio_crypt_key_wrap(crypto_key_t *cwkey, zio_crypt_key_t *key, uint8_t *iv, in zio_crypt_key_wrap() argument
508 ret = random_get_pseudo_bytes(iv, WRAPPING_IV_LEN); in zio_crypt_key_wrap()
550 ret = zio_do_crypt_uio(B_TRUE, crypt, cwkey, NULL, iv, enc_len, in zio_crypt_key_wrap()
563 uint64_t guid, uint8_t *keydata, uint8_t *hmac_keydata, uint8_t *iv, in zio_crypt_key_unwrap() argument
612 ret = zio_do_crypt_uio(B_FALSE, crypt, cwkey, NULL, iv, enc_len, in zio_crypt_key_unwrap()
757 zio_crypt_encode_params_bp(blkptr_t *bp, uint8_t *salt, uint8_t *iv) in zio_crypt_encode_params_bp() argument
766 bcopy(iv, &bp->blk_dva[2].dva_word[1], sizeof (uint64_t)); in zio_crypt_encode_params_bp()
767 bcopy(iv + sizeof (uint64_t), &val32, sizeof (uint32_t)); in zio_crypt_encode_params_bp()
773 bcopy(iv, &val64, sizeof (uint64_t)); in zio_crypt_encode_params_bp()
776 bcopy(iv + sizeof (uint64_t), &val32, sizeof (uint32_t)); in zio_crypt_encode_params_bp()
[all …]
H A Ddsl_crypt.c556 uint8_t iv[WRAPPING_IV_LEN]; in dsl_crypto_key_open() local
586 iv); in dsl_crypto_key_open()
603 raw_keydata, raw_hmac_keydata, iv, mac, &dck->dck_key); in dsl_crypto_key_open()
1175 uint64_t root_ddobj, uint64_t guid, uint8_t *iv, uint8_t *mac, in dsl_crypto_key_sync_impl() argument
1186 iv, tx)); in dsl_crypto_key_sync_impl()
1208 uint8_t iv[WRAPPING_IV_LEN]; in dsl_crypto_key_sync() local
1215 VERIFY0(zio_crypt_key_wrap(&dck->dck_wkey->wk_key, key, iv, mac, in dsl_crypto_key_sync()
1220 key->zk_crypt, wkey->wk_ddobj, key->zk_guid, iv, mac, keydata, in dsl_crypto_key_sync()
2259 uint8_t *keydata, *hmac_keydata, *iv, *mac; in dsl_crypto_recv_raw_key_sync() local
2277 VERIFY0(nvlist_lookup_uint8_array(nvl, DSL_CRYPTO_KEY_IV, &iv, &len)); in dsl_crypto_recv_raw_key_sync()
[all …]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddca_3des.c82 des_ctx->dr_ctx.iv[0] = htonl(p[0]); in dca_3des()
83 des_ctx->dr_ctx.iv[1] = htonl(p[1]); in dca_3des()
86 des_ctx->dr_ctx.iv[0] = p[0]<<24 | p[1]<<16 | p[2]<<8 | p[3]; in dca_3des()
87 des_ctx->dr_ctx.iv[1] = p[4]<<24 | p[5]<<16 | p[6]<<8 | p[7]; in dca_3des()
182 des_ctx->dr_ctx.iv[0] = htonl(p[0]); in dca_3desupdate()
183 des_ctx->dr_ctx.iv[1] = htonl(p[1]); in dca_3desupdate()
186 des_ctx->dr_ctx.iv[0] = p[0]<<24 | p[1]<<16 | p[2]<<8 | p[3]; in dca_3desupdate()
187 des_ctx->dr_ctx.iv[1] = p[4]<<24 | p[5]<<16 | p[6]<<8 | p[7]; in dca_3desupdate()
384 uint32_t iv[2]; in dca_3desstart() local
399 iv[0] = ctx->dr_ctx.iv[0]; in dca_3desstart()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Ddbm.c354 static int32_t im, iv; in page_bymacro() local
368 iv = -1; in page_bymacro()
377 if (++iv == nvals[im]) { in page_bymacro()
381 if (iv) in page_bymacro()
384 pp = dbm_get(macros[im][iv].pages); in page_bymacro()
405 dbm_macro_get(int32_t im, int32_t iv) in dbm_macro_get() argument
411 assert(iv >= 0); in dbm_macro_get()
412 assert(iv < nvals[im]); in dbm_macro_get()
413 macro.value = dbm_get(macros[im][iv].value); in dbm_macro_get()
414 macro.pp = dbm_get(macros[im][iv].pages); in dbm_macro_get()
[all …]
H A Ddba_read.c45 int32_t im, ip, iv, npages; in dba_read() local
67 for (iv = 0; iv < dbm_macro_count(im); iv++) { in dba_read()
68 mdata = dbm_macro_get(im, iv); in dba_read()
/illumos-gate/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c284 ipc_ops_vec_t *iv) in ds_print() argument
295 if (mdb_walk_dcmd(iv->iv_wcmd, oflags ? iv->iv_ocmd : "ipcperm", in ds_print()
297 mdb_warn("can't walk '%s'", iv->iv_wcmd); in ds_print()
303 iddata = mdb_alloc(iv->iv_idsize, UM_SLEEP | UM_GC); in ds_print()
304 if (mdb_vread(iddata, iv->iv_idsize, addr) == -1) { in ds_print()
305 mdb_warn("failed to read %s at %#lx", iv->iv_ocmd, addr); in ds_print()
309 if (!DCMD_HDRSPEC(flags) && iv->iv_print) in ds_print()
312 if (DCMD_HDRSPEC(flags) || iv->iv_print) in ds_print()
316 if (iv->iv_print) { in ds_print()
318 iv->iv_print(iddata, addr); in ds_print()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzio_crypt.h114 int zio_crypt_key_wrap(crypto_key_t *cwkey, zio_crypt_key_t *key, uint8_t *iv,
117 uint64_t guid, uint8_t *keydata, uint8_t *hmac_keydata, uint8_t *iv,
123 void zio_crypt_encode_params_bp(blkptr_t *bp, uint8_t *salt, uint8_t *iv);
124 void zio_crypt_decode_params_bp(const blkptr_t *bp, uint8_t *salt, uint8_t *iv);
140 dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv,
144 dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv,
H A Darc.h200 uint8_t *iv, uint8_t *mac);
204 dmu_object_type_t ot, const uint8_t *salt, const uint8_t *iv,
211 boolean_t byteorder, const uint8_t *salt, const uint8_t *iv,
218 const uint8_t *salt, const uint8_t *iv, const uint8_t *mac,
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_wep.c130 uint32_t iv; in wep_encap() local
149 iv = ctx->wc_iv; in wep_encap()
154 if ((iv & 0xff00) == 0xff00) { in wep_encap()
155 int B = (iv & 0xff0000) >> 16; in wep_encap()
157 iv = (B+1) << 16; in wep_encap()
159 ctx->wc_iv = iv + 1; in wep_encap()
161 ivp[2] = (uint8_t)(iv >> 0); in wep_encap()
162 ivp[1] = (uint8_t)(iv >> 8); in wep_encap()
163 ivp[0] = (uint8_t)(iv >> 16); in wep_encap()
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_attr.c404 int irv, iv, ndn; in findDNs() local
419 for (iv = 0; iv < rv[irv].numAttrs; iv++) { in findDNs()
421 if (rv[irv].attrName[iv] != 0 && in findDNs()
422 rv[irv].attrVal[iv].type == vt_string && in findDNs()
423 rv[irv].attrVal[iv].numVals >= 1 && in findDNs()
424 strcasecmp("dn", rv[irv].attrName[iv]) == 0) { in findDNs()
427 rv[irv].attrVal[iv].val[0].value, in findDNs()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_crypt.c121 kg_encrypt(context, key, usage, iv, in, out, length) in kg_encrypt() argument
125 krb5_pointer iv;
137 if (iv) {
146 (void) memcpy(ivd.data, iv, ivd.length);
169 kg_decrypt(context, key, usage, iv, in, out, length) in kg_decrypt() argument
173 krb5_pointer iv;
184 if (iv) {
193 (void) memcpy(ivd.data, iv, ivd.length);
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c1174 soft_gen_iv(CK_BYTE *iv) in soft_gen_iv() argument
1176 return (pkcs11_get_nzero_urandom(iv, 16) < 0 ? in soft_gen_iv()
1249 CK_BYTE iv[OBJ_IV_SIZE], old_iv[OBJ_IV_SIZE]; in reencrypt_obj() local
1302 if (soft_gen_iv(iv) != CKR_OK) { in reencrypt_obj()
1306 if (writen_nointr(new_fd, (char *)iv, OBJ_IV_SIZE) != OBJ_IV_SIZE) { in reencrypt_obj()
1343 if (soft_keystore_crypt(new_enc_key, iv, B_TRUE, decrypted_buf, in reencrypt_obj()
1355 if (soft_keystore_crypt(new_enc_key, iv, B_TRUE, decrypted_buf, in reencrypt_obj()
2022 uchar_t iv[OBJ_IV_SIZE], obj_hmac[OBJ_HMAC_SIZE]; in soft_keystore_get_single_obj() local
2059 if (readn_nointr(fd, iv, OBJ_IV_SIZE) != OBJ_IV_SIZE) { in soft_keystore_get_single_obj()
2092 if (soft_keystore_crypt(enc_key, iv, B_FALSE, buf, nread, in soft_keystore_get_single_obj()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dcryptmod.h97 #define CR_IVUSAGE_OK(iv) \ argument
98 ((iv) == IVEC_NEVER || (iv) == IVEC_REUSE || (iv) == IVEC_ONETIME)
/illumos-gate/usr/src/lib/libm/common/complex/
H A Dcpowf.c58 int ix, iy, hx, hy, hv, hu, iu, iv, j; in cpowf() local
71 iv = hv & 0x7fffffff; in cpowf()
74 if (iv == 0) { /* z**(real) */ in cpowf()
127 if (iu >= hiinf || iv >= hiinf || ix >= hiinf || iy >= hiinf) { in cpowf()
158 if (iv == 0) { /* dv = 0 */ in cpowf()
H A Dcpow.c156 int ix, iy, hx, lx, hy, ly, hv, hu, iu, iv, lu, lv; in cpow() local
174 iv = hv & 0x7fffffff; in cpow()
177 if ((iv | lv) == 0) { /* z**(real) */ in cpow()
240 if (iu >= hiinf || iv >= hiinf || ix >= hiinf || iy >= hiinf) { in cpow()
248 if (iu > 0x7f000000 || iv > 0x7f000000) { in cpow()
H A Dcpowl.c111 int ix, iy, hx, hy, hv, hu, iu, iv, i, j, k; in cpowl() local
124 iv = hv & 0x7fffffff; in cpowl()
190 if (iu >= hiinf || iv >= hiinf || ix >= hiinf || iy >= hiinf) { in cpowl()
198 if (iu > 0x7ffe0000 || iv > 0x7ffe0000) { in cpowl()
/illumos-gate/usr/src/lib/crypt_modules/bsdbf/
H A Dblowfish.c595 blf_cbc_encrypt(blf_ctx *c, uint8_t *iv, uint8_t *data, uint32_t len) in blf_cbc_encrypt() argument
602 data[j] ^= iv[j]; in blf_cbc_encrypt()
614 iv = data; in blf_cbc_encrypt()
623 uint8_t *iv; in blf_cbc_decrypt() local
626 iv = data + len - 16; in blf_cbc_decrypt()
641 data[j] ^= iv[j]; in blf_cbc_decrypt()
642 iv -= 8; in blf_cbc_decrypt()
/illumos-gate/usr/src/uts/sun4/ml/
H A Dinterrupt.S49 ! %g2 - pointer to intr_vec_t (iv)
65 brnz,pt %g2, 0f ! check list head (iv) is NULL
67 ba ptl1_panic ! panic, list head (iv) is NULL
70 lduh [%g2 + IV_FLAGS], %g7 ! %g7 = iv->iv_flags
71 and %g7, IV_SOFTINT_MT, %g3 ! %g3 = iv->iv_flags & IV_SOFTINT_MT
73 add %g2, IV_PIL_NEXT, %g7 ! g7% = &iv->iv_pil_next
76 add %g7, %g3, %g7 ! %g5 = &iv->iv_xpil_next[cpuid]
114 lduh [%g2 + IV_FLAGS], %g3 ! %g3 = iv->iv_flags
115 andn %g3, IV_SOFTINT_PEND, %g3 ! %g3 = !(iv->iv_flags & PEND)
117 stn %g0, [%g7] ! clear iv->iv_pil_next or
[all …]
/illumos-gate/usr/src/cmd/zstreamdump/
H A Dzstreamdump.c177 char iv[ZIO_DATA_IV_LEN * 2 + 1]; in main() local
466 sprintf_bytes(iv, drrw->drr_iv, in main()
489 iv, in main()
571 sprintf_bytes(iv, drrs->drr_iv, in main()
589 iv, in main()
640 sprintf_bytes(iv, drror->drr_iv, in main()
652 iv, in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Doptions.c708 int iv, a; local
745 iv = 0;
747 if (!int_option(*argv, &iv))
749 if ((((opt->flags & OPT_LLIMIT) && (iv < opt->lower_limit)) ||
750 ((opt->flags & OPT_ULIMIT) && (iv > opt->upper_limit))) &&
751 !((opt->flags & OPT_ZEROOK) && (iv == 0))) {
773 iv += a;
775 iv += *(int *)(opt->addr);
779 if ((opt->flags & OPT_ZEROINF) && (iv == 0)) {
785 } else if (iv > oldv) {
[all …]
/illumos-gate/usr/src/uts/common/io/ural/
H A Dural_reg.h187 uint32_t iv; member
203 uint32_t iv; member
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dchacha_tv.c277 chacha_test(uint8_t *key, uint8_t keylen, uint8_t *iv, uint8_t *bl0, in chacha_test() argument
288 chacha_ivsetup(&ctx, iv); in chacha_test()
/illumos-gate/usr/src/uts/common/io/rum/
H A Drum_reg.h205 uint32_t iv; member
229 uint32_t iv; member
/illumos-gate/usr/src/common/crypto/modes/
H A Dgcm.c513 gcm_format_initial_blocks(uchar_t *iv, ulong_t iv_len, in gcm_format_initial_blocks() argument
527 bcopy(iv, cb, 12); in gcm_format_initial_blocks()
539 bcopy(&(iv[processed]), cb, remainder); in gcm_format_initial_blocks()
543 datap = (uint8_t *)(&(iv[processed])); in gcm_format_initial_blocks()
564 gcm_init(gcm_ctx_t *ctx, unsigned char *iv, size_t iv_len, in gcm_init() argument
578 gcm_format_initial_blocks(iv, iv_len, ctx, block_size, in gcm_init()

123