summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-05-13 15:56:10 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-05-13 15:56:10 +0000
commit4864d97f29d7576646579a9673c981f39b978f57 (patch)
treeaad2f970939569ee803816ab8c9cebc45ee7a2db
parent5ccb8153219422f8a4f65bb7ea4392786452a31c (diff)
use criov_copydata for grabbing iv for next packet
-rw-r--r--sys/dev/pci/ubsec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c
index 458a11bbfe3..dcbeeb619fb 100644
--- a/sys/dev/pci/ubsec.c
+++ b/sys/dev/pci/ubsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsec.c,v 1.46 2001/05/13 15:39:27 deraadt Exp $ */
+/* $OpenBSD: ubsec.c,v 1.47 2001/05/13 15:56:09 jason Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -1038,9 +1038,9 @@ ubsec_callback(q)
crd->crd_skip + crd->crd_len - 8, 8,
(caddr_t)q->q_sc->sc_sessions[q->q_sesn].ses_iv);
else if (crp->crp_flags & CRYPTO_F_IOV) {
- /* XXX need last 8 bytes of encrypted data, and shove
- * it into ses_iv */
- /* MISSING bcopy */
+ criov_copydata((struct criov *)crp->crp_buf,
+ crd->crd_skip + crd->crd_len - 8, 8,
+ (caddr_t)q->q_sc->sc_sessions[q->q_sesn].ses_iv);
}
break;
}