summaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.h
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
commit23508e11ab3bb405dca66bf4d77e488bf2b07b0c (patch)
treef1eead8ce9115097e4c2a73d5cbaf8264085a296 /include/linux/crypto.h
parent61da88e2b800eed2b03834a73c46cc89ad48716d (diff)
downloadop-kernel-dev-23508e11ab3bb405dca66bf4d77e488bf2b07b0c.zip
op-kernel-dev-23508e11ab3bb405dca66bf4d77e488bf2b07b0c.tar.gz
[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 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 3656a24e..facafa1 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -183,6 +183,8 @@ struct ablkcipher_alg {
int (*givencrypt)(struct skcipher_givcrypt_request *req);
int (*givdecrypt)(struct skcipher_givcrypt_request *req);
+ const char *geniv;
+
unsigned int min_keysize;
unsigned int max_keysize;
unsigned int ivsize;
@@ -209,6 +211,8 @@ struct blkcipher_alg {
struct scatterlist *dst, struct scatterlist *src,
unsigned int nbytes);
+ const char *geniv;
+
unsigned int min_keysize;
unsigned int max_keysize;
unsigned int ivsize;
OpenPOWER on IntegriCloud