Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/netkey pullup 1.39 -> 1.40 (approved by releng-1-5)
details: https://anonhg.NetBSD.org/src/rev/6085cce09371
branches: netbsd-1-5
changeset: 489713:6085cce09371
user: itojun <itojun%NetBSD.org@localhost>
date: Sun Oct 08 13:27:40 2000 +0000
description:
pullup 1.39 -> 1.40 (approved by releng-1-5)
don't waste entropy by use of key_random(). use key_randomfill() for
IV initialization.
diffstat:
sys/netkey/key.c | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
diffs (30 lines):
diff -r 97ee250c8857 -r 6085cce09371 sys/netkey/key.c
--- a/sys/netkey/key.c Sun Oct 08 09:55:26 2000 +0000
+++ b/sys/netkey/key.c Sun Oct 08 13:27:40 2000 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: key.c,v 1.23.2.8 2000/10/05 14:51:58 itojun Exp $ */
-/* $KAME: key.c,v 1.167 2000/10/05 04:02:57 itojun Exp $ */
+/* $NetBSD: key.c,v 1.23.2.9 2000/10/08 13:27:40 itojun Exp $ */
+/* $KAME: key.c,v 1.170 2000/10/07 12:03:02 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -2785,16 +2785,9 @@
}
/* initialize */
- {
- int i;
- u_int8_t *p = (u_int8_t *)sav->iv;
- for (i = 0; i < sav->ivlen; i++)
- p[i] = key_random() & 0xff;
- }
+ key_randomfill(sav->iv, sav->ivlen);
+#endif
break;
-#else
- break;
-#endif
case SADB_SATYPE_AH:
case SADB_X_SATYPE_IPCOMP:
break;
Home |
Main Index |
Thread Index |
Old Index