]> git.baikalelectronics.ru Git - kernel.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Apr 2015 01:30:07 +0000 (09:30 +0800)
commit473aa4dd0fde53a2c89a049982dd060f8d813256
tree26b035754eb3cf014cbcf7c90351a0bc1711b170
parent060b0dcfe968feaa3e0d3631752fb50e479eea20
crypto: rng - Mark crypto_rng_reset seed as const

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>
crypto/rng.c
include/crypto/rng.h