summaryrefslogtreecommitdiffstats
path: root/sys/dev/random
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-11-26 09:58:18 +0000
committermarkm <markm@FreeBSD.org>2000-11-26 09:58:18 +0000
commitfca882bcb572da6f24be4f18fd403000f88fc471 (patch)
tree43f78db6f2c83dd790ea8b9b19353cb3450025c8 /sys/dev/random
parent54640b61faf6aa99b4e7a9d41943fd8664f078ab (diff)
downloadFreeBSD-src-fca882bcb572da6f24be4f18fd403000f88fc471.zip
FreeBSD-src-fca882bcb572da6f24be4f18fd403000f88fc471.tar.gz
Fix safety-net code. While technically a bug, I'm delighted to see
that it has never (apparently) been invoked. Submitted by: ache
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/hash.c2
1 files changed, 1 insertions, 1 deletions
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 */
OpenPOWER on IntegriCloud