diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:31:44 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:31:44 -0400 |
commit | 2b8c19dbdc692e81243a328725a02efb77b144a5 (patch) | |
tree | f9256d5515cc315d54971f62e0e9812d5db572ba /include | |
parent | 2825982d9d66ebba4b532a07391dfbb357f71c5f (diff) |
[CRYPTO] api: Add cryptomgr
The cryptomgr module is a simple manager of crypto algorithm instances.
It ensures that parameterised algorithms of the type tmpl(alg) (e.g.,
cbc(aes)) are always created.
This is meant to satisfy the needs for most users. For more complex
cases such as deeper combinations or multiple parameters, a netlink
module will be created which allows arbitrary expressions to be parsed
in user-space.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/crypto.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 3e3e95aff133..85f73c381913 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -260,6 +260,15 @@ struct crypto_tfm { | |||
260 | void *__crt_ctx[] CRYPTO_MINALIGN_ATTR; | 260 | void *__crt_ctx[] CRYPTO_MINALIGN_ATTR; |
261 | }; | 261 | }; |
262 | 262 | ||
263 | enum { | ||
264 | CRYPTOA_UNSPEC, | ||
265 | CRYPTOA_ALG, | ||
266 | }; | ||
267 | |||
268 | struct crypto_attr_alg { | ||
269 | char name[CRYPTO_MAX_ALG_NAME]; | ||
270 | }; | ||
271 | |||
263 | /* | 272 | /* |
264 | * Transform user interface. | 273 | * Transform user interface. |
265 | */ | 274 | */ |