diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-11-01 08:39:56 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-01-13 00:38:40 -0500 |
commit | d912bb7677f46d78a3cde8a4afd45a3fca4b34e9 (patch) | |
tree | ca71395d275b4408639f98a421b3ce0e735ee99a /include/linux/crypto.h | |
parent | d0b03c5fe469ed0f3d7d94372c8bf77c64fcfce8 (diff) |
crypto: Add CRYPTO_ALG_KERN_DRIVER_ONLY flag
The added CRYPTO_ALG_KERN_DRIVER_ONLY indicates whether a cipher
is only available via a kernel driver. If the cipher implementation
might be available by using an instruction set or by porting the
kernel code, then it must not be set.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r-- | include/linux/crypto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 8a94217b298e..a8fa6541b86c 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -75,6 +75,11 @@ | |||
75 | */ | 75 | */ |
76 | #define CRYPTO_ALG_INSTANCE 0x00000800 | 76 | #define CRYPTO_ALG_INSTANCE 0x00000800 |
77 | 77 | ||
78 | /* Set this bit if the algorithm provided is hardware accelerated but | ||
79 | * not available to userspace via instruction set or so. | ||
80 | */ | ||
81 | #define CRYPTO_ALG_KERN_DRIVER_ONLY 0x00001000 | ||
82 | |||
78 | /* | 83 | /* |
79 | * Transform masks and values (for crt_flags). | 84 | * Transform masks and values (for crt_flags). |
80 | */ | 85 | */ |