diff --git a/sys/dev/random/hash.c b/sys/dev/random/hash.c index fbd1163c0739..21c89e077da1 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 */