diff options
author | Tom Cosgrove <tom@cvs.openbsd.org> | 2006-11-17 06:48:13 +0000 |
---|---|---|
committer | Tom Cosgrove <tom@cvs.openbsd.org> | 2006-11-17 06:48:13 +0000 |
commit | b010f12907c861580d39b89184761bcadeb6cba3 (patch) | |
tree | 36ccaf3be82263c7afb52e5a42420611ae87bbf4 /sys/arch | |
parent | 8b84f88caa1fada1da2f1f9191cfdc6c24dd831a (diff) |
Make sure we copy the IV back into the session structure, not the
softc. Fortunately this branch (when neither CRYPTO_F_IMBUF nor
CRYPTO_F_IOV is specified) is not currently used.
ok hshoexer@ jason@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/via.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/via.c b/sys/arch/i386/i386/via.c index 3c097297e42..fe5f6ff18ec 100644 --- a/sys/arch/i386/i386/via.c +++ b/sys/arch/i386/i386/via.c @@ -1,4 +1,4 @@ -/* $OpenBSD: via.c,v 1.6 2006/08/24 12:29:54 hshoexer Exp $ */ +/* $OpenBSD: via.c,v 1.7 2006/11/17 06:48:12 tom Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -437,10 +437,10 @@ viac3_crypto_encdec(struct cryptop *crp, struct cryptodesc *crd, else if (crp->crp_flags & CRYPTO_F_IOV) cuio_copydata((struct uio *)crp->crp_buf, crd->crd_skip + crd->crd_len - 16, 16, - sc->op_iv); + ses->ses_iv); else bcopy(crp->crp_buf + crd->crd_skip + - crd->crd_len - 16, sc->op_iv, 16); + crd->crd_len - 16, sc->ses->ses_iv, 16); } if (sc->op_buf != NULL) { |