diff options
author | Stephan Mueller <smueller@chronox.de> | 2015-03-30 16:02:36 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-03-31 09:21:07 -0400 |
commit | 4b3f4e37ec9b0d95255e1b5b445ad063c7341f67 (patch) | |
tree | c20779d8292f5d619f4134f6dcddd18277c6398e /arch/arm | |
parent | 6a9b52b7fa1a376c1749cf441d1aeb8572d3b691 (diff) |
crypto: ghash-ce - mark GHASH ARMv8 vmull.p64 helper ciphers
Flag all GHASH ARMv8 vmull.p64 helper ciphers as internal ciphers
to prevent them from being called by normal users.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/crypto/ghash-ce-glue.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/crypto/ghash-ce-glue.c b/arch/arm/crypto/ghash-ce-glue.c index 8c959d128065..03a39fe29246 100644 --- a/arch/arm/crypto/ghash-ce-glue.c +++ b/arch/arm/crypto/ghash-ce-glue.c | |||
@@ -141,7 +141,7 @@ static struct shash_alg ghash_alg = { | |||
141 | .cra_name = "ghash", | 141 | .cra_name = "ghash", |
142 | .cra_driver_name = "__driver-ghash-ce", | 142 | .cra_driver_name = "__driver-ghash-ce", |
143 | .cra_priority = 0, | 143 | .cra_priority = 0, |
144 | .cra_flags = CRYPTO_ALG_TYPE_SHASH, | 144 | .cra_flags = CRYPTO_ALG_TYPE_SHASH | CRYPTO_ALG_INTERNAL, |
145 | .cra_blocksize = GHASH_BLOCK_SIZE, | 145 | .cra_blocksize = GHASH_BLOCK_SIZE, |
146 | .cra_ctxsize = sizeof(struct ghash_key), | 146 | .cra_ctxsize = sizeof(struct ghash_key), |
147 | .cra_module = THIS_MODULE, | 147 | .cra_module = THIS_MODULE, |
@@ -248,7 +248,9 @@ static int ghash_async_init_tfm(struct crypto_tfm *tfm) | |||
248 | struct cryptd_ahash *cryptd_tfm; | 248 | struct cryptd_ahash *cryptd_tfm; |
249 | struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); | 249 | struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); |
250 | 250 | ||
251 | cryptd_tfm = cryptd_alloc_ahash("__driver-ghash-ce", 0, 0); | 251 | cryptd_tfm = cryptd_alloc_ahash("__driver-ghash-ce", |
252 | CRYPTO_ALG_INTERNAL, | ||
253 | CRYPTO_ALG_INTERNAL); | ||
252 | if (IS_ERR(cryptd_tfm)) | 254 | if (IS_ERR(cryptd_tfm)) |
253 | return PTR_ERR(cryptd_tfm); | 255 | return PTR_ERR(cryptd_tfm); |
254 | ctx->cryptd_tfm = cryptd_tfm; | 256 | ctx->cryptd_tfm = cryptd_tfm; |