]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: drbg - fix shadow copy of the test buffer
authorJacob Wen <jian.w.wen@oracle.com>
Fri, 1 Jun 2018 13:54:26 +0000 (21:54 +0800)
committerBrian Maly <brian.maly@oracle.com>
Wed, 13 Jun 2018 03:10:49 +0000 (23:10 -0400)
commit2864dd51f2ceee929da52961321a615044e5523a
treead61001badd30a856a45ed825a09e76eb770c15e
parenteecbdd56c1f51f0d2ea9888a28751b8ec4a14eb9
crypto: drbg - fix shadow copy of the test buffer

drbg->test_data.list is expected to be empty.
tmp->test_data.list should be empty(head->next == head) as well,
otherwise the specified test entropy will not be used in drbg_seed.

Fixes: b07ca65d8 ("crypto: drbg - Convert to new rng interface")
Orabug: 28078838

Signed-off-by: Jacob Wen <jian.w.wen@oracle.com>
Reviewed-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
crypto/drbg.c