summaryrefslogtreecommitdiff
path: root/crypto/blkcipher.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-27 21:33:24 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:16:43 +1100
commitfb065dfaf40813e3989affc942394442bc7f15b1 (patch)
tree125d01343ce28e44c4d16263d2d07d9c50e694fe /crypto/blkcipher.c
parenta2af6e569d02e8b74dc417ca62fe14a45efe9fcd (diff)
downloadlinux-crypto-fb065dfaf40813e3989affc942394442bc7f15b1.tar.gz
linux-crypto-fb065dfaf40813e3989affc942394442bc7f15b1.zip
[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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c
index 7939504d..7a3e1a30 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)
seq_printf(m, "min keysize : %u\n", alg->cra_blkcipher.min_keysize);
seq_printf(m, "max keysize : %u\n", alg->cra_blkcipher.max_keysize);
seq_printf(m, "ivsize : %u\n", alg->cra_blkcipher.ivsize);
+ seq_printf(m, "geniv : %s\n", alg->cra_blkcipher.geniv ?:
+ "<default>");
}
const struct crypto_type crypto_blkcipher_type = {