diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-08-29 19:27:26 +0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:55:40 -0700 |
commit | 39e1ee011f42dbbcb0210c73ea728ae54cf63b06 (patch) | |
tree | 0689571972f9678f93cec8bd7f3dac2934c5bc59 /include/linux/crypto.h | |
parent | 1ae978208e2ee9ba1b01d309164bc5e590cd242d (diff) | |
download | op-kernel-dev-39e1ee011f42dbbcb0210c73ea728ae54cf63b06.zip op-kernel-dev-39e1ee011f42dbbcb0210c73ea728ae54cf63b06.tar.gz |
[CRYPTO] api: Add support for multiple template parameters
This patch adds support for having multiple parameters to
a template, separated by a comma. It also adds support
for integer parameters in addition to the current algorithm
parameter type.
This will be used by the authenc template which will have
four parameters: the authentication algorithm, the encryption
algorithm, the authentication size and the encryption key
length.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r-- | include/linux/crypto.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 1072f9a..da09b4a 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h @@ -425,11 +425,15 @@ enum { CRYPTOA_UNSPEC, CRYPTOA_ALG, CRYPTOA_TYPE, + CRYPTOA_U32, __CRYPTOA_MAX, }; #define CRYPTOA_MAX (__CRYPTOA_MAX - 1) +/* Maximum number of (rtattr) parameters for each template. */ +#define CRYPTO_MAX_ATTRS 32 + struct crypto_attr_alg { char name[CRYPTO_MAX_ALG_NAME]; }; @@ -439,6 +443,10 @@ struct crypto_attr_type { u32 mask; }; +struct crypto_attr_u32 { + u32 num; +}; + /* * Transform user interface. */ |