Lines Matching refs:iv
533 char *iv;
544 /* lsp->ls_mech.cm_param{_len} has already been set for static iv */
556 iv = kmem_zalloc(iv_len, KM_SLEEP);
559 iv = lsp->ls_mech.cm_param;
560 bzero(iv, iv_len);
565 /* iv is not static, lblkno changes each time */
576 * write blkno into the iv buffer padded on the left in case
578 * or a variation other than blkno is used for the iv data
581 bcopy(data, iv + (iv_len - min), min);
584 SETUP_C_DATA(cdata, iv, iv_len);
589 cmn_err(CE_WARN, "failed to create iv for block %lld: (0x%x)",
591 if (lsp->ls_mech.cm_param != iv)
592 kmem_free(iv, iv_len);
597 /* clean up the iv from the last computation */
598 if (lsp->ls_mech.cm_param != NULL && lsp->ls_mech.cm_param != iv)
602 lsp->ls_mech.cm_param = iv;
1927 cmn_err(CE_WARN, "invalid iv cipher %s requested"
1932 /* iv mech must itself take a null iv */