]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: rng - Add crypto_rng_set_entropy
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 02:46:39 +0000 (10:46 +0800)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Wed, 13 Sep 2017 21:21:34 +0000 (14:21 -0700)
commit9f9b93cc3302a8a05ac9b68d180b04c4ce89813a
tree7d6c0e5a3a229c6d1d706423b3cff4491a7ce122
parent912272f6ac1e48594bc25292bc923646546356d7
crypto: rng - Add crypto_rng_set_entropy

Orabug: 26330509

This patch adds the function crypto_rng_set_entropy.  It is only
meant to be used by testmgr when testing RNG implementations by
providing fixed entropy data in order to verify test vectors.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 7ca99d814821e8a8ac6d7c48b2ccfc24bda27b1f)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
include/crypto/internal/rng.h
include/crypto/rng.h