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.c313 kmem_free(iv, sizeof (*iv)); in vdev_indirect_map_free()
1281 indirect_vsd_t *iv = kmem_zalloc(sizeof (*iv), KM_SLEEP); in vdev_indirect_io_start() local
1285 zio->io_vsd = iv; in vdev_indirect_io_start()
1503 iv->iv_attempts = 0; in vdev_indirect_splits_enumerate_all()
1510 iv->iv_attempts++; in vdev_indirect_splits_enumerate_all()
1529 ASSERT3S(iv->iv_attempts, <=, iv->iv_unique_combinations); in vdev_indirect_splits_enumerate_all()
1542 iv->iv_attempts = 0; in vdev_indirect_splits_enumerate_randomly()
1544 while (iv->iv_attempts < iv->iv_attempts_max) { in vdev_indirect_splits_enumerate_randomly()
1545 iv->iv_attempts++; in vdev_indirect_splits_enumerate_randomly()
1604 iv->iv_attempts_max = 1; in vdev_indirect_splits_damage()
[all …]
H A Dzio_crypt.c508 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()
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()
792 bzero(iv, ZIO_DATA_IV_LEN); in zio_crypt_decode_params_bp()
798 bcopy(&bp->blk_dva[2].dva_word[1], iv, sizeof (uint64_t)); in zio_crypt_decode_params_bp()
801 bcopy(&val32, iv + sizeof (uint64_t), sizeof (uint32_t)); in zio_crypt_decode_params_bp()
807 bcopy(&val64, iv, sizeof (uint64_t)); in zio_crypt_decode_params_bp()
[all …]
H A Ddsl_crypt.c555 uint8_t iv[WRAPPING_IV_LEN]; in dsl_crypto_key_open() local
585 iv); in dsl_crypto_key_open()
602 raw_keydata, raw_hmac_keydata, iv, mac, &dck->dck_key); in dsl_crypto_key_open()
1185 iv, tx)); in dsl_crypto_key_sync_impl()
1207 uint8_t iv[WRAPPING_IV_LEN]; in dsl_crypto_key_sync() local
2257 uint8_t *keydata, *hmac_keydata, *iv, *mac; in dsl_crypto_recv_raw_key_sync() local
2418 uint8_t iv[WRAPPING_IV_LEN]; in dsl_crypto_populate_key_nvlist() local
2451 iv); in dsl_crypto_populate_key_nvlist()
2834 ret = zio_crypt_generate_iv(iv); in spa_do_crypt_abd()
2839 plainbuf, datalen, iv, salt); in spa_do_crypt_abd()
[all …]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddca_3des.c384 uint32_t iv[2]; in dca_3desstart() local
399 iv[0] = ctx->dr_ctx.iv[0]; in dca_3desstart()
400 iv[1] = ctx->dr_ctx.iv[1]; in dca_3desstart()
446 ctx->dr_ctx.iv[0] = in dca_3desstart()
448 ctx->dr_ctx.iv[1] = in dca_3desstart()
585 (uchar_t *)iv); in dca_3desdone()
594 ctx->dr_ctx.iv[0] = htonl(iv[0]); in dca_3desdone()
595 ctx->dr_ctx.iv[1] = htonl(iv[1]); in dca_3desdone()
597 ctx->dr_ctx.iv[0] = in dca_3desdone()
598 iv[0]<<24 | iv[1]<<16 | iv[2]<<8 | iv[3]; in dca_3desdone()
[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()
411 assert(iv >= 0); in dbm_macro_get()
412 assert(iv < nvals[im]); in dbm_macro_get()
448 iv = 0; in macro_bypage()
456 while (iv < nvals[im]) { in macro_bypage()
460 iv++; in macro_bypage()
466 if (iv == nvals[im]) { in macro_bypage()
[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()
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()
355 ipc_ops_vec_t *iv = wsp->walk_arg; in ds_walk_init() local
363 iv->iv_service); in ds_walk_init()
519 ipc_ops_vec_t *iv) in ds_ptr() argument
[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/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/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/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
1302 if (soft_gen_iv(iv) != CKR_OK) { in reencrypt_obj()
2195 CK_BYTE iv[OBJ_IV_SIZE]; in soft_keystore_put_new_obj() local
2297 bzero(iv, sizeof (iv)); in soft_keystore_put_new_obj()
2300 if (soft_gen_iv(iv) != CKR_OK) { in soft_keystore_put_new_obj()
2306 if (writen_nointr(obj_fd, (void *)iv, sizeof (iv)) != sizeof (iv)) { in soft_keystore_put_new_obj()
2421 explicit_bzero(iv, sizeof (iv)); in soft_keystore_put_new_obj()
2440 explicit_bzero(iv, sizeof (iv)); in soft_keystore_put_new_obj()
2553 if (soft_gen_iv(iv) != CKR_OK) { in soft_keystore_modify_obj()
2668 explicit_bzero(iv, sizeof (iv)); in soft_keystore_modify_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
73 add %g2, IV_PIL_NEXT, %g7 ! g7% = &iv->iv_pil_next
114 lduh [%g2 + IV_FLAGS], %g3 ! %g3 = iv->iv_flags
117 stn %g0, [%g7] ! clear iv->iv_pil_next or
118 ! iv->iv_pil_xnext
125 ! %g2 - pointer to current intr_vec_t (iv),
1451 lduh [%i0 + IV_PIL], %l2 ! %l2 = iv->iv_pil
[all …]
/illumos-gate/usr/src/cmd/zstreamdump/
H A Dzstreamdump.c222 char iv[ZIO_DATA_IV_LEN * 2 + 1]; in main() local
511 sprintf_bytes(iv, drrw->drr_iv, in main()
534 iv, in main()
616 sprintf_bytes(iv, drrs->drr_iv, in main()
634 iv, in main()
685 sprintf_bytes(iv, drror->drr_iv, in main()
697 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))
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) {
791 *(int *)(opt->addr) = iv;
[all …]
/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/ural/
H A Dural_reg.h187 uint32_t iv; member
203 uint32_t iv; member
/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