diff options
author | markm <markm@FreeBSD.org> | 2000-11-26 09:58:18 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-11-26 09:58:18 +0000 |
commit | fca882bcb572da6f24be4f18fd403000f88fc471 (patch) | |
tree | 43f78db6f2c83dd790ea8b9b19353cb3450025c8 /sys/dev/random | |
parent | 54640b61faf6aa99b4e7a9d41943fd8664f078ab (diff) | |
download | FreeBSD-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.c | 2 |
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 */ |