mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
crypto: skcipher - Use RNG interface instead of get_random_bytes
This patch makes the IV generators use the new RNG interface so that the user can pick an RNG other than the default get_random_bytes. Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
17f0f4a47d
commit
a0f000ec9b
4 changed files with 75 additions and 13 deletions
|
|
@ -41,6 +41,7 @@ config CRYPTO_AEAD
|
|||
config CRYPTO_BLKCIPHER
|
||||
tristate
|
||||
select CRYPTO_ALGAPI
|
||||
select CRYPTO_RNG
|
||||
|
||||
config CRYPTO_HASH
|
||||
tristate
|
||||
|
|
@ -125,6 +126,7 @@ config CRYPTO_SEQIV
|
|||
tristate "Sequence Number IV Generator"
|
||||
select CRYPTO_AEAD
|
||||
select CRYPTO_BLKCIPHER
|
||||
select CRYPTO_RNG
|
||||
help
|
||||
This IV generator generates an IV based on a sequence number by
|
||||
xoring it with a salt. This algorithm is mainly useful for CTR
|
||||
|
|
|
|||
Loading…
Reference in a new issue