diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2009-07-05 19:33:47 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2009-07-05 19:33:47 +0000 |
commit | 2ab434d7a09bd89b7a7da70703a903c9f2803b24 (patch) | |
tree | 38ba378904025343a2838fa8754b749034c3f1f5 | |
parent | 5d440cb59bb58d58c171b1235312dd3ea9aaf3f1 (diff) |
Buffer in RMD160_CTX is length RMD160_BLOCK_LENGTH not RMD160_DIGEST_LENGTH.
Userland version was already correct. From Jason Fritcher. OK deraadt@
-rw-r--r-- | sys/crypto/rmd160.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |