Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/netinet6 Pull up revision 1.37 (requested by tron in ...
details: https://anonhg.NetBSD.org/src/rev/294bff305e01
branches: netbsd-3
changeset: 576735:294bff305e01
user: riz <riz%NetBSD.org@localhost>
date: Sat Jul 23 15:56:24 2005 +0000
description:
Pull up revision 1.37 (requested by tron in ticket #611):
Remove unnecessary bzero() calls before calling the algorithm specific
init function.
diffstat:
sys/netinet6/ah_core.c | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
diffs (114 lines):
diff -r 7f395c2a2f24 -r 294bff305e01 sys/netinet6/ah_core.c
--- a/sys/netinet6/ah_core.c Sat Jul 23 15:54:52 2005 +0000
+++ b/sys/netinet6/ah_core.c Sat Jul 23 15:56:24 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ah_core.c,v 1.36 2004/03/10 03:45:04 itojun Exp $ */
+/* $NetBSD: ah_core.c,v 1.36.14.1 2005/07/23 15:56:24 riz Exp $ */
/* $KAME: ah_core.c,v 1.57 2003/07/25 09:33:36 itojun Exp $ */
/*
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ah_core.c,v 1.36 2004/03/10 03:45:04 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ah_core.c,v 1.36.14.1 2005/07/23 15:56:24 riz Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -722,7 +722,6 @@
/* compress the key if necessery */
if (64 < _KEYLEN(state->sav->key_auth)) {
bzero(tk, sizeof(tk));
- bzero(ctxt, sizeof(*ctxt));
SHA256_Init(ctxt);
SHA256_Update(ctxt, _KEYBUF(state->sav->key_auth),
_KEYLEN(state->sav->key_auth));
@@ -743,7 +742,6 @@
opad[i] ^= 0x5c;
}
- bzero(ctxt, sizeof(*ctxt));
SHA256_Init(ctxt);
SHA256_Update(ctxt, ipad, 64);
@@ -785,7 +783,6 @@
SHA256_Final((caddr_t)digest, ctxt);
- bzero(ctxt, sizeof(*ctxt));
SHA256_Init(ctxt);
SHA256_Update(ctxt, opad, 64);
SHA256_Update(ctxt, (caddr_t)digest, sizeof(digest));
@@ -826,7 +823,6 @@
/* compress the key if necessery */
if (64 < _KEYLEN(state->sav->key_auth)) {
bzero(tk, sizeof(tk));
- bzero(ctxt, sizeof(*ctxt));
SHA384_Init(ctxt);
SHA384_Update(ctxt, _KEYBUF(state->sav->key_auth),
_KEYLEN(state->sav->key_auth));
@@ -847,7 +843,6 @@
opad[i] ^= 0x5c;
}
- bzero(ctxt, sizeof(*ctxt));
SHA384_Init(ctxt);
SHA384_Update(ctxt, ipad, 64);
@@ -889,7 +884,6 @@
SHA384_Final((caddr_t)digest, ctxt);
- bzero(ctxt, sizeof(*ctxt));
SHA384_Init(ctxt);
SHA384_Update(ctxt, opad, 64);
SHA384_Update(ctxt, (caddr_t)digest, sizeof(digest));
@@ -930,7 +924,6 @@
/* compress the key if necessery */
if (64 < _KEYLEN(state->sav->key_auth)) {
bzero(tk, sizeof(tk));
- bzero(ctxt, sizeof(*ctxt));
SHA512_Init(ctxt);
SHA512_Update(ctxt, _KEYBUF(state->sav->key_auth),
_KEYLEN(state->sav->key_auth));
@@ -951,7 +944,6 @@
opad[i] ^= 0x5c;
}
- bzero(ctxt, sizeof(*ctxt));
SHA512_Init(ctxt);
SHA512_Update(ctxt, ipad, 64);
@@ -993,7 +985,6 @@
SHA512_Final((caddr_t)digest, ctxt);
- bzero(ctxt, sizeof(*ctxt));
SHA512_Init(ctxt);
SHA512_Update(ctxt, opad, 64);
SHA512_Update(ctxt, (caddr_t)digest, sizeof(digest));
@@ -1034,7 +1025,6 @@
/* compress the key if necessery */
if (64 < _KEYLEN(state->sav->key_auth)) {
bzero(tk, sizeof(tk));
- bzero(ctxt, sizeof(*ctxt));
RMD160Init(ctxt);
RMD160Update(ctxt, _KEYBUF(state->sav->key_auth),
_KEYLEN(state->sav->key_auth));
@@ -1055,7 +1045,6 @@
opad[i] ^= 0x5c;
}
- bzero(ctxt, sizeof(*ctxt));
RMD160Init(ctxt);
RMD160Update(ctxt, ipad, 64);
@@ -1097,7 +1086,6 @@
RMD160Final((caddr_t)digest, ctxt);
- bzero(ctxt, sizeof(*ctxt));
RMD160Init(ctxt);
RMD160Update(ctxt, opad, 64);
RMD160Update(ctxt, (caddr_t)digest, sizeof(digest));
Home |
Main Index |
Thread Index |
Old Index