diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-11-27 08:33:24 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-10 16:16:43 -0500 |
commit | 23508e11ab3bb405dca66bf4d77e488bf2b07b0c (patch) | |
tree | f1eead8ce9115097e4c2a73d5cbaf8264085a296 /crypto/ablkcipher.c | |
parent | 61da88e2b800eed2b03834a73c46cc89ad48716d (diff) |
[CRYPTO] skcipher: Added geniv field
This patch introduces the geniv field which indicates the default IV
generator for each algorithm. It should point to a string that is not
freed as long as the algorithm is registered.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ablkcipher.c')
-rw-r--r-- | crypto/ablkcipher.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c index e403d8137ecd..8f48b4d58fca 100644 --- a/crypto/ablkcipher.c +++ b/crypto/ablkcipher.c | |||
@@ -96,6 +96,7 @@ static void crypto_ablkcipher_show(struct seq_file *m, struct crypto_alg *alg) | |||
96 | seq_printf(m, "min keysize : %u\n", ablkcipher->min_keysize); | 96 | seq_printf(m, "min keysize : %u\n", ablkcipher->min_keysize); |
97 | seq_printf(m, "max keysize : %u\n", ablkcipher->max_keysize); | 97 | seq_printf(m, "max keysize : %u\n", ablkcipher->max_keysize); |
98 | seq_printf(m, "ivsize : %u\n", ablkcipher->ivsize); | 98 | seq_printf(m, "ivsize : %u\n", ablkcipher->ivsize); |
99 | seq_printf(m, "geniv : %s\n", ablkcipher->geniv ?: "<default>"); | ||
99 | } | 100 | } |
100 | 101 | ||
101 | const struct crypto_type crypto_ablkcipher_type = { | 102 | const struct crypto_type crypto_ablkcipher_type = { |
@@ -142,6 +143,7 @@ static void crypto_givcipher_show(struct seq_file *m, struct crypto_alg *alg) | |||
142 | seq_printf(m, "min keysize : %u\n", ablkcipher->min_keysize); | 143 | seq_printf(m, "min keysize : %u\n", ablkcipher->min_keysize); |
143 | seq_printf(m, "max keysize : %u\n", ablkcipher->max_keysize); | 144 | seq_printf(m, "max keysize : %u\n", ablkcipher->max_keysize); |
144 | seq_printf(m, "ivsize : %u\n", ablkcipher->ivsize); | 145 | seq_printf(m, "ivsize : %u\n", ablkcipher->ivsize); |
146 | seq_printf(m, "geniv : %s\n", ablkcipher->geniv ?: "<built-in>"); | ||
145 | } | 147 | } |
146 | 148 | ||
147 | const struct crypto_type crypto_givcipher_type = { | 149 | const struct crypto_type crypto_givcipher_type = { |