| 451 | */ |
| 452 | |
| 453 | static void |
| 454 | xlp_copyiv(struct xlp_sec_softc *sc, struct xlp_sec_command *cmd, |
| 455 | const struct crypto_session_params *csp) |
| 456 | { |
| 457 | struct cryptop *crp = NULL; |
| 458 | |
| 459 | crp = cmd->crp; |
| 460 | |
| 461 | if (crp->crp_flags & CRYPTO_F_IV_SEPARATE) |
| 462 | memcpy(cmd->iv, crp->crp_iv, csp->csp_ivlen); |
| 463 | } |
| 464 | |
| 465 | static int |
| 466 | xlp_get_nsegs(struct cryptop *crp, unsigned int *nsegs) |
no test coverage detected