Commit 3741ac2
committed
crypto: drbg - Align buffers to at least a cache line
None of the ciphers used by the DRBG have an alignment requirement; thus,
they all return 0 from .crypto_init, resulting in inconsistent alignment
across all buffers.
Align all buffers to at least a cache line to improve performance. This is
especially useful when multiple DRBG instances are used, since it prevents
false sharing of cache lines between the different instances.
Signed-off-by: Sultan Alsawaf <[email protected]>1 parent 3c8c29a commit 3741ac2
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
1286 | 1292 | | |
1287 | 1293 | | |
1288 | 1294 | | |
| |||
0 commit comments