From 2ab434d7a09bd89b7a7da70703a903c9f2803b24 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 5 Jul 2009 19:33:47 +0000 Subject: Buffer in RMD160_CTX is length RMD160_BLOCK_LENGTH not RMD160_DIGEST_LENGTH. Userland version was already correct. From Jason Fritcher. OK deraadt@ --- sys/crypto/rmd160.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/crypto') diff --git a/sys/crypto/rmd160.h b/sys/crypto/rmd160.h index 74962998efd..26b59e75254 100644 --- a/sys/crypto/rmd160.h +++ b/sys/crypto/rmd160.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rmd160.h,v 1.4 2008/11/04 23:08:47 hshoexer Exp $ */ +/* $OpenBSD: rmd160.h,v 1.5 2009/07/05 19:33:46 millert Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * @@ -32,7 +32,7 @@ typedef struct RMD160Context { u_int32_t state[5]; /* state */ u_int64_t count; /* number of bits, mod 2^64 */ - u_char buffer[RMD160_DIGEST_LENGTH]; /* input buffer */ + u_char buffer[RMD160_BLOCK_LENGTH]; /* input buffer */ } RMD160_CTX; __BEGIN_DECLS -- cgit v1.2.3