Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/kame/racoon xx_keylen has to return bits, not by...



details:   https://anonhg.NetBSD.org/src/rev/476f53efbedb
branches:  trunk
changeset: 550064:476f53efbedb
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jul 29 04:30:54 2003 +0000

description:
xx_keylen has to return bits, not bytes.  KAME-PR-488

diffstat:

 crypto/dist/kame/racoon/crypto_openssl.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 6ea4ec4688ce -r 476f53efbedb crypto/dist/kame/racoon/crypto_openssl.c
--- a/crypto/dist/kame/racoon/crypto_openssl.c  Tue Jul 29 02:48:47 2003 +0000
+++ b/crypto/dist/kame/racoon/crypto_openssl.c  Tue Jul 29 04:30:54 2003 +0000
@@ -1,4 +1,4 @@
-/*     $KAME: crypto_openssl.c,v 1.79 2003/07/12 08:44:44 itojun Exp $ */
+/*     $KAME: crypto_openssl.c,v 1.80 2003/07/29 04:29:24 itojun Exp $ */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: crypto_openssl.c,v 1.9 2003/07/24 14:16:57 itojun Exp $");
+__RCSID("$NetBSD: crypto_openssl.c,v 1.10 2003/07/29 04:30:54 itojun Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1147,7 +1147,7 @@
                return 448;
        if (len < 40 || len > 448)
                return -1;
-       return (len + 7) / 8;
+       return len;
 }
 
 #ifdef HAVE_OPENSSL_RC5_H
@@ -1212,7 +1212,7 @@
                return 128;
        if (len < 40 || len > 2040)
                return -1;
-       return (len + 7) / 8;
+       return len;
 }
 #endif
 
@@ -1354,7 +1354,7 @@
                return 128;
        if (len < 40 || len > 128)
                return -1;
-       return (len + 7) / 8;
+       return len;
 }
 
 /*



Home | Main Index | Thread Index | Old Index