Stephan Mueller cf862cbc83 crypto: drbg - eliminate constant reinitialization of SGL
The CTR DRBG requires two SGLs pointing to input/output buffers for the
CTR AES operation. The used SGLs always have only one entry. Thus, the
SGL can be initialized during allocation time, preventing a
re-initialization of the SGLs during each call.

The performance is increased by about 1 to 3 percent depending on the
size of the requested buffer size.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-07-20 13:51:21 +08:00
..
2018-05-26 09:16:44 +02:00
2018-05-26 09:16:44 +02:00
2017-11-03 21:35:35 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-07-20 13:51:21 +08:00
2018-03-31 01:33:10 +08:00
2018-04-21 00:58:34 +08:00
2018-05-16 07:23:35 +02:00
2018-02-22 22:16:54 +08:00
2018-03-03 00:03:33 +08:00
2018-04-21 00:58:30 +08:00