sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit ce124c489421be1593979a01e986e3b9ed35e18e
parent af4af8a0d8882f28ec19326a88614812f40578eb
Author: sin <sin@2f30.org>
Date:   Fri, 19 Jul 2013 14:31:42 +0100

Do not hardcode the size of md

Diffstat:
Mutil/md5.c | 2+-
Mutil/sha1.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/util/md5.c b/util/md5.c @@ -105,7 +105,7 @@ void md5_init(void *ctx) s->h[3] = 0x10325476; } -void md5_sum(void *ctx, uint8_t md[16]) +void md5_sum(void *ctx, uint8_t md[MD5_DIGEST_LENGTH]) { struct md5 *s = ctx; int i; diff --git a/util/sha1.c b/util/sha1.c @@ -101,7 +101,7 @@ void sha1_init(void *ctx) s->h[4] = 0xC3D2E1F0; } -void sha1_sum(void *ctx, uint8_t md[20]) +void sha1_sum(void *ctx, uint8_t md[SHA1_DIGEST_LENGTH]) { struct sha1 *s = ctx; int i;