crypto: drbg - use crypto_inc
authorStephan Mueller <smueller@chronox.de>
Tue, 14 Oct 2014 19:50:13 +0000 (21:50 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Oct 2014 14:49:36 +0000 (22:49 +0800)
commit41a84982a1d728165554be3e2be845f2caf83b55
treed49eb7d0d1993a36efd9f4ccbbc8b425fd0eb2bd
parent3e8cffd431464365c9787cea741b755bc64c4b8e
crypto: drbg - use crypto_inc

The DRBG internal buffer addition function is replaced with crypto_inc when
a buffer is to be incremented by one.

The function drbg_add_buf is moved to the CONFIG_CRYPTO_DRBG_HASH ifdef
area as it is now only needed for the Hash DRBG.

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