It looks good to me too. I also did a quick smoke test using AF_ALG and I didn't find any issues. Average of 10 runs doing a million reads of 8, 32, 64 and 128 bytes each time with drbg_nopr_sha256. Without the patch: bsize count total (secs) user (secs) system (secs) 8 1000000 3,739 0,483 3,247 32 1000000 3,835 0,49 3,337 64 1000000 4,652 0,502 4,14 128 1000000 6,3 0,562 5,73 With the patch: bsize count total (secs) user (secs) system (secs) 8 1000000 3,376 0,429 2,936 32 1000000 3,361 0,422 2,927 64 1000000 4,072 0,446 3,614 128 1000000 5,439 0,424 4,981 Reviewed-by: Marcelo Henrique Cerri <marcelo.cerri@xxxxxxxxxxxxx> -- Regards, Marcelo