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 /include/linux | |
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 'include/linux')
-rw-r--r-- | include/linux/crypto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 3656a24ea7f0..facafa1bd8ca 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -183,6 +183,8 @@ struct ablkcipher_alg { | |||
183 | int (*givencrypt)(struct skcipher_givcrypt_request *req); | 183 | int (*givencrypt)(struct skcipher_givcrypt_request *req); |
184 | int (*givdecrypt)(struct skcipher_givcrypt_request *req); | 184 | int (*givdecrypt)(struct skcipher_givcrypt_request *req); |
185 | 185 | ||
186 | const char *geniv; | ||
187 | |||
186 | unsigned int min_keysize; | 188 | unsigned int min_keysize; |
187 | unsigned int max_keysize; | 189 | unsigned int max_keysize; |
188 | unsigned int ivsize; | 190 | unsigned int ivsize; |
@@ -209,6 +211,8 @@ struct blkcipher_alg { | |||
209 | struct scatterlist *dst, struct scatterlist *src, | 211 | struct scatterlist *dst, struct scatterlist *src, |
210 | unsigned int nbytes); | 212 | unsigned int nbytes); |
211 | 213 | ||
214 | const char *geniv; | ||
215 | |||
212 | unsigned int min_keysize; | 216 | unsigned int min_keysize; |
213 | unsigned int max_keysize; | 217 | unsigned int max_keysize; |
214 | unsigned int ivsize; | 218 | unsigned int ivsize; |