| 713 | void *vdst); |
| 714 | |
| 715 | static __inline void |
| 716 | crypto_read_iv(struct cryptop *crp, void *iv) |
| 717 | { |
| 718 | const struct crypto_session_params *csp; |
| 719 | |
| 720 | csp = crypto_get_params(crp->crp_session); |
| 721 | if (crp->crp_flags & CRYPTO_F_IV_SEPARATE) |
| 722 | memcpy(iv, crp->crp_iv, csp->csp_ivlen); |
| 723 | else |
| 724 | crypto_copydata(crp, crp->crp_iv_start, csp->csp_ivlen, iv); |
| 725 | } |
| 726 | |
| 727 | #endif /* _KERNEL */ |
| 728 | #endif /* _CRYPTO_CRYPTO_H_ */ |
no test coverage detected