HomeFreeBSD

random(4): Fix a regression in short AES mode reads

Description

random(4): Fix a regression in short AES mode reads

In r349154, random device reads of size < 16 bytes (AES block size) were
accidentally broken to loop forever. Correct the loop condition for small
reads.

(cherry picked from commit 22eedc9722746206bf2f8b0c5fcdab58917c7bd5)

Details

Provenance
cemAuthored on Jun 18 2019, 6:50 PM
obrienCommitted on Feb 15 2022, 2:09 AM
Parents
rG8665ca1fce6e: random(4): Fortuna: allow increased concurrency
Branches
Unknown
Tags
Unknown