summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2010-11-15 14:24:14 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2010-11-15 14:24:14 +0000
commit233d48dbb182434fb2ce6a57229b01e4bc372527 (patch)
treed4ad7c479c1e6296f0f08c1faf41f50c19f8f603 /sys/arch
parente5ebb9188292eeeeb20dd5c59b27a4e9e6d1e7d9 (diff)
thrash less cache lines and zero out only what we've touched
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/aesni.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/aesni.c b/sys/arch/amd64/amd64/aesni.c
index 1b52cc01ff3..ca71d150164 100644
--- a/sys/arch/amd64/amd64/aesni.c
+++ b/sys/arch/amd64/amd64/aesni.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aesni.c,v 1.13 2010/11/15 12:57:24 mikeb Exp $ */
+/* $OpenBSD: aesni.c,v 1.14 2010/11/15 14:24:13 mikeb Exp $ */
/*-
* Copyright (c) 2003 Jason Wright
* Copyright (c) 2003, 2004 Theo de Raadt
@@ -430,7 +430,7 @@ aesni_encdec(struct cryptop *crp, struct cryptodesc *crd,
}
out:
- bzero(buf, aesni_sc->sc_buflen);
+ bzero(buf, roundup(crd->crd_len, EALG_MAX_BLOCK_LEN));
return (err);
}