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.

Reported by: pho
Reviewed by: delphij
Approved by: secteam(delphij)
Differential Revision: https://reviews.freebsd.org/D20686

Details

Provenance
cemAuthored on
Reviewer
delphij
Differential Revision
D20686: random(4): Fix a regression in short AES mode reads
Parents
rS349175: bhyve: vtnet: fix locking on receive
Branches
Unknown
Tags
Unknown