diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-11-30 05:38:37 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-10 16:16:48 -0500 |
commit | 0a270321dbf948963aeb0e8382fe17d2c2eb3771 (patch) | |
tree | bdb6c12f88bd02b62853ff6bf26bf9d4a736fdbd /crypto/Kconfig | |
parent | 45d44eb56ad197cfccb8f84b5df64abff8b7cb96 (diff) |
[CRYPTO] seqiv: Add Sequence Number IV Generator
This generator generates an IV based on a sequence number by xoring it
with a salt. This algorithm is mainly useful for CTR and similar modes.
This patch also sets it as the default IV generator for ctr.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r-- | crypto/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index c4b6c9125582..7ad9711eec98 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -32,6 +32,14 @@ config CRYPTO_BLKCIPHER | |||
32 | tristate | 32 | tristate |
33 | select CRYPTO_ALGAPI | 33 | select CRYPTO_ALGAPI |
34 | 34 | ||
35 | config CRYPTO_SEQIV | ||
36 | tristate "Sequence Number IV Generator" | ||
37 | select CRYPTO_BLKCIPHER | ||
38 | help | ||
39 | This IV generator generates an IV based on a sequence number by | ||
40 | xoring it with a salt. This algorithm is mainly useful for CTR | ||
41 | and similar modes. | ||
42 | |||
35 | config CRYPTO_HASH | 43 | config CRYPTO_HASH |
36 | tristate | 44 | tristate |
37 | select CRYPTO_ALGAPI | 45 | select CRYPTO_ALGAPI |
@@ -197,6 +205,7 @@ config CRYPTO_XTS | |||
197 | config CRYPTO_CTR | 205 | config CRYPTO_CTR |
198 | tristate "CTR support" | 206 | tristate "CTR support" |
199 | select CRYPTO_BLKCIPHER | 207 | select CRYPTO_BLKCIPHER |
208 | select CRYPTO_SEQIV | ||
200 | select CRYPTO_MANAGER | 209 | select CRYPTO_MANAGER |
201 | help | 210 | help |
202 | CTR: Counter mode | 211 | CTR: Counter mode |