]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: rng - Mark crypto_rng_reset seed as const
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 02:46:37 +0000 (10:46 +0800)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Wed, 13 Sep 2017 21:21:34 +0000 (14:21 -0700)
commitc2566dcfca7927b3c1be17da63463e96f34778ea
treef32aa3e03cc6e5273e558ffb794758ce9127971b
parent10c5ff895672ac9dec1571f770c319b6317334a3
crypto: rng - Mark crypto_rng_reset seed as const

Orabug: 26330509

There is no reason why crypto_rng_reset should modify the seed
so this patch marks it as const.  Since our algorithms don't
export a const seed function yet we have to go through some
contortions for now.

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