commit | 04bcbfcf7e28ba502383a8e19d99960ab8e347c8 | [log] [tgz] |
---|---|---|
author | Stephan Mueller <smueller@chronox.de> | Sun Mar 01 20:39:17 2015 +0100 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Mar 04 22:13:29 2015 +1300 |
tree | 36fc2e3be9d626e4396305ece16a7bc8a203940d | |
parent | e8e5995372ac3fc63995915dcb351f38a3560018 [diff] |
crypto: drbg - use single block cipher API The CTR DRBG only encrypts one single block at a time. Thus, use the single block crypto API to avoid additional overhead from the block chaining modes. With the patch, the speed of the DRBG increases between 30% and 40%. The DRBG still passes the CTR DRBG CAVS test. Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>