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 /drivers/crypto/omap-sham.c | |
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 'drivers/crypto/omap-sham.c')
-rw-r--r-- | drivers/crypto/omap-sham.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 6399a8f1938a..a3fd6fc504b1 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c | |||
@@ -953,6 +953,7 @@ static struct ahash_alg algs[] = { | |||
953 | .cra_driver_name = "omap-sha1", | 953 | .cra_driver_name = "omap-sha1", |
954 | .cra_priority = 100, | 954 | .cra_priority = 100, |
955 | .cra_flags = CRYPTO_ALG_TYPE_AHASH | | 955 | .cra_flags = CRYPTO_ALG_TYPE_AHASH | |
956 | CRYPTO_ALG_KERN_DRIVER_ONLY | | ||
956 | CRYPTO_ALG_ASYNC | | 957 | CRYPTO_ALG_ASYNC | |
957 | CRYPTO_ALG_NEED_FALLBACK, | 958 | CRYPTO_ALG_NEED_FALLBACK, |
958 | .cra_blocksize = SHA1_BLOCK_SIZE, | 959 | .cra_blocksize = SHA1_BLOCK_SIZE, |
@@ -975,6 +976,7 @@ static struct ahash_alg algs[] = { | |||
975 | .cra_driver_name = "omap-md5", | 976 | .cra_driver_name = "omap-md5", |
976 | .cra_priority = 100, | 977 | .cra_priority = 100, |
977 | .cra_flags = CRYPTO_ALG_TYPE_AHASH | | 978 | .cra_flags = CRYPTO_ALG_TYPE_AHASH | |
979 | CRYPTO_ALG_KERN_DRIVER_ONLY | | ||
978 | CRYPTO_ALG_ASYNC | | 980 | CRYPTO_ALG_ASYNC | |
979 | CRYPTO_ALG_NEED_FALLBACK, | 981 | CRYPTO_ALG_NEED_FALLBACK, |
980 | .cra_blocksize = SHA1_BLOCK_SIZE, | 982 | .cra_blocksize = SHA1_BLOCK_SIZE, |
@@ -998,6 +1000,7 @@ static struct ahash_alg algs[] = { | |||
998 | .cra_driver_name = "omap-hmac-sha1", | 1000 | .cra_driver_name = "omap-hmac-sha1", |
999 | .cra_priority = 100, | 1001 | .cra_priority = 100, |
1000 | .cra_flags = CRYPTO_ALG_TYPE_AHASH | | 1002 | .cra_flags = CRYPTO_ALG_TYPE_AHASH | |
1003 | CRYPTO_ALG_KERN_DRIVER_ONLY | | ||
1001 | CRYPTO_ALG_ASYNC | | 1004 | CRYPTO_ALG_ASYNC | |
1002 | CRYPTO_ALG_NEED_FALLBACK, | 1005 | CRYPTO_ALG_NEED_FALLBACK, |
1003 | .cra_blocksize = SHA1_BLOCK_SIZE, | 1006 | .cra_blocksize = SHA1_BLOCK_SIZE, |
@@ -1022,6 +1025,7 @@ static struct ahash_alg algs[] = { | |||
1022 | .cra_driver_name = "omap-hmac-md5", | 1025 | .cra_driver_name = "omap-hmac-md5", |
1023 | .cra_priority = 100, | 1026 | .cra_priority = 100, |
1024 | .cra_flags = CRYPTO_ALG_TYPE_AHASH | | 1027 | .cra_flags = CRYPTO_ALG_TYPE_AHASH | |
1028 | CRYPTO_ALG_KERN_DRIVER_ONLY | | ||
1025 | CRYPTO_ALG_ASYNC | | 1029 | CRYPTO_ALG_ASYNC | |
1026 | CRYPTO_ALG_NEED_FALLBACK, | 1030 | CRYPTO_ALG_NEED_FALLBACK, |
1027 | .cra_blocksize = SHA1_BLOCK_SIZE, | 1031 | .cra_blocksize = SHA1_BLOCK_SIZE, |