xref: /linux/drivers/crypto/intel/keembay/Kconfig (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1*fbf31dd5STom Zanussiconfig CRYPTO_DEV_KEEMBAY_OCS_AES_SM4
2*fbf31dd5STom Zanussi	tristate "Support for Intel Keem Bay OCS AES/SM4 HW acceleration"
3*fbf31dd5STom Zanussi	depends on HAS_IOMEM
4*fbf31dd5STom Zanussi	depends on ARCH_KEEMBAY || COMPILE_TEST
5*fbf31dd5STom Zanussi	select CRYPTO_SKCIPHER
6*fbf31dd5STom Zanussi	select CRYPTO_AEAD
7*fbf31dd5STom Zanussi	select CRYPTO_ENGINE
8*fbf31dd5STom Zanussi	help
9*fbf31dd5STom Zanussi	  Support for Intel Keem Bay Offload and Crypto Subsystem (OCS) AES and
10*fbf31dd5STom Zanussi	  SM4 cipher hardware acceleration for use with Crypto API.
11*fbf31dd5STom Zanussi
12*fbf31dd5STom Zanussi	  Provides HW acceleration for the following transformations:
13*fbf31dd5STom Zanussi	  cbc(aes), ctr(aes), ccm(aes), gcm(aes), cbc(sm4), ctr(sm4), ccm(sm4)
14*fbf31dd5STom Zanussi	  and gcm(sm4).
15*fbf31dd5STom Zanussi
16*fbf31dd5STom Zanussi	  Optionally, support for the following transformations can also be
17*fbf31dd5STom Zanussi	  enabled: ecb(aes), cts(cbc(aes)), ecb(sm4) and cts(cbc(sm4)).
18*fbf31dd5STom Zanussi
19*fbf31dd5STom Zanussiconfig CRYPTO_DEV_KEEMBAY_OCS_AES_SM4_ECB
20*fbf31dd5STom Zanussi	bool "Support for Intel Keem Bay OCS AES/SM4 ECB HW acceleration"
21*fbf31dd5STom Zanussi	depends on CRYPTO_DEV_KEEMBAY_OCS_AES_SM4
22*fbf31dd5STom Zanussi	help
23*fbf31dd5STom Zanussi	  Support for Intel Keem Bay Offload and Crypto Subsystem (OCS)
24*fbf31dd5STom Zanussi	  AES/SM4 ECB mode hardware acceleration for use with Crypto API.
25*fbf31dd5STom Zanussi
26*fbf31dd5STom Zanussi	  Provides OCS version of ecb(aes) and ecb(sm4)
27*fbf31dd5STom Zanussi
28*fbf31dd5STom Zanussi	  Intel does not recommend use of ECB mode with AES/SM4.
29*fbf31dd5STom Zanussi
30*fbf31dd5STom Zanussiconfig CRYPTO_DEV_KEEMBAY_OCS_AES_SM4_CTS
31*fbf31dd5STom Zanussi	bool "Support for Intel Keem Bay OCS AES/SM4 CTS HW acceleration"
32*fbf31dd5STom Zanussi	depends on CRYPTO_DEV_KEEMBAY_OCS_AES_SM4
33*fbf31dd5STom Zanussi	help
34*fbf31dd5STom Zanussi	  Support for Intel Keem Bay Offload and Crypto Subsystem (OCS)
35*fbf31dd5STom Zanussi	  AES/SM4 CBC with CTS mode hardware acceleration for use with
36*fbf31dd5STom Zanussi	  Crypto API.
37*fbf31dd5STom Zanussi
38*fbf31dd5STom Zanussi	  Provides OCS version of cts(cbc(aes)) and cts(cbc(sm4)).
39*fbf31dd5STom Zanussi
40*fbf31dd5STom Zanussi	  Intel does not recommend use of CTS mode with AES/SM4.
41*fbf31dd5STom Zanussi
42*fbf31dd5STom Zanussiconfig CRYPTO_DEV_KEEMBAY_OCS_ECC
43*fbf31dd5STom Zanussi	tristate "Support for Intel Keem Bay OCS ECC HW acceleration"
44*fbf31dd5STom Zanussi	depends on ARCH_KEEMBAY || COMPILE_TEST
45*fbf31dd5STom Zanussi	depends on OF
46*fbf31dd5STom Zanussi	depends on HAS_IOMEM
47*fbf31dd5STom Zanussi	select CRYPTO_ECDH
48*fbf31dd5STom Zanussi	select CRYPTO_ENGINE
49*fbf31dd5STom Zanussi	help
50*fbf31dd5STom Zanussi	  Support for Intel Keem Bay Offload and Crypto Subsystem (OCS)
51*fbf31dd5STom Zanussi	  Elliptic Curve Cryptography (ECC) hardware acceleration for use with
52*fbf31dd5STom Zanussi	  Crypto API.
53*fbf31dd5STom Zanussi
54*fbf31dd5STom Zanussi	  Provides OCS acceleration for ECDH-256 and ECDH-384.
55*fbf31dd5STom Zanussi
56*fbf31dd5STom Zanussi	  Say Y or M if you are compiling for the Intel Keem Bay SoC. The
57*fbf31dd5STom Zanussi	  module will be called keembay-ocs-ecc.
58*fbf31dd5STom Zanussi
59*fbf31dd5STom Zanussi	  If unsure, say N.
60*fbf31dd5STom Zanussi
61*fbf31dd5STom Zanussiconfig CRYPTO_DEV_KEEMBAY_OCS_HCU
62*fbf31dd5STom Zanussi	tristate "Support for Intel Keem Bay OCS HCU HW acceleration"
63*fbf31dd5STom Zanussi	select CRYPTO_HASH
64*fbf31dd5STom Zanussi	select CRYPTO_ENGINE
65*fbf31dd5STom Zanussi	depends on HAS_IOMEM
66*fbf31dd5STom Zanussi	depends on ARCH_KEEMBAY || COMPILE_TEST
67*fbf31dd5STom Zanussi	depends on OF
68*fbf31dd5STom Zanussi	help
69*fbf31dd5STom Zanussi	  Support for Intel Keem Bay Offload and Crypto Subsystem (OCS) Hash
70*fbf31dd5STom Zanussi	  Control Unit (HCU) hardware acceleration for use with Crypto API.
71*fbf31dd5STom Zanussi
72*fbf31dd5STom Zanussi	  Provides OCS HCU hardware acceleration of sha256, sha384, sha512, and
73*fbf31dd5STom Zanussi	  sm3, as well as the HMAC variant of these algorithms.
74*fbf31dd5STom Zanussi
75*fbf31dd5STom Zanussi	  Say Y or M if you're building for the Intel Keem Bay SoC. If compiled
76*fbf31dd5STom Zanussi	  as a module, the module will be called keembay-ocs-hcu.
77*fbf31dd5STom Zanussi
78*fbf31dd5STom Zanussi	  If unsure, say N.
79*fbf31dd5STom Zanussi
80*fbf31dd5STom Zanussiconfig CRYPTO_DEV_KEEMBAY_OCS_HCU_HMAC_SHA224
81*fbf31dd5STom Zanussi	bool "Enable sha224 and hmac(sha224) support in Intel Keem Bay OCS HCU"
82*fbf31dd5STom Zanussi	depends on CRYPTO_DEV_KEEMBAY_OCS_HCU
83*fbf31dd5STom Zanussi	help
84*fbf31dd5STom Zanussi	  Enables support for sha224 and hmac(sha224) algorithms in the Intel
85*fbf31dd5STom Zanussi	  Keem Bay OCS HCU driver. Intel recommends not to use these
86*fbf31dd5STom Zanussi	  algorithms.
87*fbf31dd5STom Zanussi
88*fbf31dd5STom Zanussi	  Provides OCS HCU hardware acceleration of sha224 and hmac(224).
89*fbf31dd5STom Zanussi
90*fbf31dd5STom Zanussi	  If unsure, say N.
91