From b010f12907c861580d39b89184761bcadeb6cba3 Mon Sep 17 00:00:00 2001 From: Tom Cosgrove Date: Fri, 17 Nov 2006 06:48:13 +0000 Subject: 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@ --- sys/arch/i386/i386/via.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch') 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) { -- cgit v1.2.3