Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcrypt fix ipad/opad buffer length (was one too much), ...
details: https://anonhg.NetBSD.org/src/rev/9743ae9ba913
branches: trunk
changeset: 765028:9743ae9ba913
user: drochner <drochner%NetBSD.org@localhost>
date: Mon May 16 10:39:12 2011 +0000
description:
fix ipad/opad buffer length (was one too much), just for sanity
diffstat:
lib/libcrypt/hmac.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 5aea68260ba7 -r 9743ae9ba913 lib/libcrypt/hmac.c
--- a/lib/libcrypt/hmac.c Mon May 16 10:27:49 2011 +0000
+++ b/lib/libcrypt/hmac.c Mon May 16 10:39:12 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hmac.c,v 1.2 2009/01/18 12:15:27 lukem Exp $ */
+/* $NetBSD: hmac.c,v 1.3 2011/05/16 10:39:12 drochner Exp $ */
/*
* Copyright (c) 2004, Juniper Networks, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: hmac.c,v 1.2 2009/01/18 12:15:27 lukem Exp $");
+__RCSID("$NetBSD: hmac.c,v 1.3 2011/05/16 10:39:12 drochner Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -70,9 +70,9 @@
{
HASH_CTX context;
/* Inner padding key XOR'd with ipad */
- unsigned char k_ipad[HMAC_BLOCKSZ + 1];
+ unsigned char k_ipad[HMAC_BLOCKSZ];
/* Outer padding key XOR'd with opad */
- unsigned char k_opad[HMAC_BLOCKSZ + 1];
+ unsigned char k_opad[HMAC_BLOCKSZ];
/* HASH(key) if needed */
unsigned char tk[HASH_LENGTH];
size_t i;
Home |
Main Index |
Thread Index |
Old Index