]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: drbg - Select correct DRBG core for stdrng
authorStephan Mueller <smueller@chronox.de>
Sun, 6 Jul 2014 00:25:04 +0000 (02:25 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 8 Jul 2014 13:18:24 +0000 (21:18 +0800)
commit04d196ffc8bc26b905c64934b6a59dce90a7487c
treeb2f1748308eb0d553a598d6368d76848ae3fd6e1
parent10daa7d39eccaa4450b7d56b6a1e5a13af826d8a
crypto: drbg - Select correct DRBG core for stdrng

When the DRBG is initialized, the core is looked up using the DRBG name.
The name that can be used for the lookup is registered in
cra_driver_name. The cra_name value contains stdrng.

Thus, the lookup code must use crypto_tfm_alg_driver_name to obtain the
precise DRBG name and select the correct DRBG.

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