From fca882bcb572da6f24be4f18fd403000f88fc471 Mon Sep 17 00:00:00 2001 From: markm Date: Sun, 26 Nov 2000 09:58:18 +0000 Subject: Fix safety-net code. While technically a bug, I'm delighted to see that it has never (apparently) been invoked. Submitted by: ache --- sys/dev/random/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/random') diff --git a/sys/dev/random/hash.c b/sys/dev/random/hash.c index fbd1163..21c89e0 100644 --- a/sys/dev/random/hash.c +++ b/sys/dev/random/hash.c @@ -94,7 +94,7 @@ yarrow_encrypt_init(struct yarrowkey *context, void *data, size_t size) size_t count; count = size > KEYSIZE ? KEYSIZE : size; - BF_set_key(&context->key, size, data); + BF_set_key(&context->key, count, data); } /* Encrypt the supplied data using the key schedule preset in the context */ -- cgit v1.1