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/blkcipher.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/blkcipher.c')
-rw-r--r-- | crypto/blkcipher.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c index 7939504dfd8b..7a3e1a308074 100644 --- a/crypto/blkcipher.c +++ b/crypto/blkcipher.c | |||
@@ -496,6 +496,8 @@ static void crypto_blkcipher_show(struct seq_file *m, struct crypto_alg *alg) | |||
496 | seq_printf(m, "min keysize : %u\n", alg->cra_blkcipher.min_keysize); | 496 | seq_printf(m, "min keysize : %u\n", alg->cra_blkcipher.min_keysize); |
497 | seq_printf(m, "max keysize : %u\n", alg->cra_blkcipher.max_keysize); | 497 | seq_printf(m, "max keysize : %u\n", alg->cra_blkcipher.max_keysize); |
498 | seq_printf(m, "ivsize : %u\n", alg->cra_blkcipher.ivsize); | 498 | seq_printf(m, "ivsize : %u\n", alg->cra_blkcipher.ivsize); |
499 | seq_printf(m, "geniv : %s\n", alg->cra_blkcipher.geniv ?: | ||
500 | "<default>"); | ||
499 | } | 501 | } |
500 | 502 | ||
501 | const struct crypto_type crypto_blkcipher_type = { | 503 | const struct crypto_type crypto_blkcipher_type = { |