aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/ccp-crypto-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/ccp/ccp-crypto-main.c')
-rw-r--r--drivers/crypto/ccp/ccp-crypto-main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/ccp-crypto-main.c b/drivers/crypto/ccp/ccp-crypto-main.c
index e0380e59c361..3f1e36d7a8bf 100644
--- a/drivers/crypto/ccp/ccp-crypto-main.c
+++ b/drivers/crypto/ccp/ccp-crypto-main.c
@@ -33,6 +33,10 @@ static unsigned int sha_disable;
33module_param(sha_disable, uint, 0444); 33module_param(sha_disable, uint, 0444);
34MODULE_PARM_DESC(sha_disable, "Disable use of SHA - any non-zero value"); 34MODULE_PARM_DESC(sha_disable, "Disable use of SHA - any non-zero value");
35 35
36static unsigned int des3_disable;
37module_param(des3_disable, uint, 0444);
38MODULE_PARM_DESC(des3_disable, "Disable use of 3DES - any non-zero value");
39
36/* List heads for the supported algorithms */ 40/* List heads for the supported algorithms */
37static LIST_HEAD(hash_algs); 41static LIST_HEAD(hash_algs);
38static LIST_HEAD(cipher_algs); 42static LIST_HEAD(cipher_algs);
@@ -337,6 +341,12 @@ static int ccp_register_algs(void)
337 return ret; 341 return ret;
338 } 342 }
339 343
344 if (!des3_disable) {
345 ret = ccp_register_des3_algs(&cipher_algs);
346 if (ret)
347 return ret;
348 }
349
340 if (!sha_disable) { 350 if (!sha_disable) {
341 ret = ccp_register_sha_algs(&hash_algs); 351 ret = ccp_register_sha_algs(&hash_algs);
342 if (ret) 352 if (ret)