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/caam/caamalg.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/caam/caamalg.c')
-rw-r--r-- | drivers/crypto/caam/caamalg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c index e73cf2e8110a..e9acadbb1d34 100644 --- a/drivers/crypto/caam/caamalg.c +++ b/drivers/crypto/caam/caamalg.c | |||
@@ -2205,7 +2205,8 @@ static struct caam_crypto_alg *caam_alg_alloc(struct device *ctrldev, | |||
2205 | alg->cra_blocksize = template->blocksize; | 2205 | alg->cra_blocksize = template->blocksize; |
2206 | alg->cra_alignmask = 0; | 2206 | alg->cra_alignmask = 0; |
2207 | alg->cra_ctxsize = sizeof(struct caam_ctx); | 2207 | alg->cra_ctxsize = sizeof(struct caam_ctx); |
2208 | alg->cra_flags = CRYPTO_ALG_ASYNC | template->type; | 2208 | alg->cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY | |
2209 | template->type; | ||
2209 | switch (template->type) { | 2210 | switch (template->type) { |
2210 | case CRYPTO_ALG_TYPE_ABLKCIPHER: | 2211 | case CRYPTO_ALG_TYPE_ABLKCIPHER: |
2211 | alg->cra_type = &crypto_ablkcipher_type; | 2212 | alg->cra_type = &crypto_ablkcipher_type; |