crypto: drbg - use full CTR AES for update
authorStephan Mueller <smueller@chronox.de>
Tue, 14 Jun 2016 05:35:37 +0000 (07:35 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Jun 2016 09:07:53 +0000 (17:07 +0800)
commita07203fbfcf146b737781ee4658ed198956036ca
tree9e9363c209c5180745039ed672b9b5f0682315a6
parent3cfc3b97211238ffc1a7885ebe62f899180fe043
crypto: drbg - use full CTR AES for update

The CTR DRBG update function performs a full CTR AES operation including
the XOR with "plaintext" data. Hence, remove the XOR from the code and
use the CTR mode to do the XOR.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c