Kconfig

CONFIG_CRYPTO_HW Hardware crypto devices

On

Say Y here to get to see options for hardware crypto devices and processors. This option alone does not add any kernel code.

If you say N, all options in this submenu will be skipped and disabled.

If CRYPTO_HW

Includedrivers/crypto/allwinner/Kconfig Open file

CONFIG_CRYPTO_DEV_PADLOCK Support for VIA PadLock ACE

  • Off
  • Module
  • Built in

Some VIA processors come with an integrated crypto engine (so called VIA PadLock ACE, Advanced Cryptography Engine) that provides instructions for very fast cryptographic operations with supported algorithms.

The instructions are used only when the CPU supports them. Otherwise software encryption is used.

If CRYPTO_DEV_PADLOCK

CONFIG_CRYPTO_DEV_GEODE Support for the Geode LX AES engine

  • Off
  • Module
  • Built in
Unknown

Say 'Y' here to use the AMD Geode LX processor on-board AES engine for the CryptoAPI AES algorithm.

To compile this driver as a module, choose M here: the module will be called geode-aes.

CONFIG_ZCRYPT Support for s390 cryptographic adapters

  • Off
  • Module
  • Built in
Unknown

Select this option if you want to enable support for s390 cryptographic adapters like Crypto Express 4 up to 8 in Coprocessor (CEXxC), EP11 Coprocessor (CEXxP) or Accelerator (CEXxA) mode.

CONFIG_PKEY Kernel API for protected key handling

  • Off
  • Module
  • Built in
Unknown

With this option enabled the pkey kernel modules provide an API for creation and handling of protected keys. Other parts of the kernel or userspace applications may use these functions.

The protected key support is distributed into:
- A pkey base and API kernel module (pkey.ko) which offers the
  infrastructure for the pkey handler kernel modules, the ioctl
  and the sysfs API and the in-kernel API to the crypto cipher
  implementations using protected key.
- A pkey pckmo kernel module (pkey-pckmo.ko) which is automatically
  loaded when pckmo support (that is generation of protected keys
  from clear key values) is available.
- A pkey CCA kernel module (pkey-cca.ko) which is automatically
  loaded when a CEX crypto card is available.
- A pkey EP11 kernel module (pkey-ep11.ko) which is automatically
  loaded when a CEX crypto card is available.
- A pkey UV kernel module (pkey-uv.ko) which is automatically
  loaded when the Ultravisor feature is available within a
  protected execution environment.

Select this option if you want to enable the kernel and userspace API for protected key handling.

If PKEY

CONFIG_PKEY_CCA PKEY CCA support handler

  • Off
  • Module
  • Built in
Unknown

This is the CCA support handler for deriving protected keys from CCA (secure) keys. Also this handler provides an alternate way to make protected keys from clear key values.

The PKEY CCA support handler needs a Crypto Express card (CEX) in CCA mode.

If you have selected the PKEY option then you should also enable this option unless you are sure you never need to derive protected keys from CCA key material.

CONFIG_PKEY_EP11 PKEY EP11 support handler

  • Off
  • Module
  • Built in
Unknown

This is the EP11 support handler for deriving protected keys from EP11 (secure) keys. Also this handler provides an alternate way to make protected keys from clear key values.

The PKEY EP11 support handler needs a Crypto Express card (CEX) in EP11 mode.

If you have selected the PKEY option then you should also enable this option unless you are sure you never need to derive protected keys from EP11 key material.

CONFIG_PKEY_PCKMO PKEY PCKMO support handler

  • Off
  • Module
  • Built in
Unknown

This is the PCKMO support handler for deriving protected keys from clear key values via invoking the PCKMO instruction.

The PCKMO instruction can be enabled and disabled in the crypto settings at the LPAR profile. This handler checks for availability during initialization and if build as a kernel module unloads itself if PCKMO is disabled.

The PCKMO way of deriving protected keys from clear key material is especially used during self test of protected key ciphers like PAES but the CCA and EP11 handler provide alternate ways to generate protected keys from clear key values.

If you have selected the PKEY option then you should also enable this option unless you are sure you never need to derive protected keys from clear key values directly via PCKMO.

CONFIG_PKEY_UV PKEY UV support handler

  • Off
  • Module
  • Built in
Unknown

This is the PKEY Ultravisor support handler for deriving protected keys from secrets stored within the Ultravisor (UV).

This module works together with the UV device and supports the retrieval of protected keys from secrets stored within the UV firmware layer. This service is only available within a protected execution guest and thus this module will fail upon modprobe if no protected execution environment is detected.

Enable this option if you intend to run this kernel with an KVM guest with protected execution and you want to use UV retrievable secrets via PKEY API.

CONFIG_CRYPTO_PAES_S390 PAES cipher algorithms

  • Off
  • Module
  • Built in
Unknown

This is the s390 hardware accelerated implementation of the AES cipher algorithms for use with protected key.

Select this option if you want to use the paes cipher for example to use protected key encrypted devices.

CONFIG_CRYPTO_PHMAC_S390 PHMAC cipher algorithms

  • Off
  • Module
  • Built in
Unknown

This is the s390 hardware accelerated implementation of the protected key HMAC support for SHA224, SHA256, SHA384 and SHA512.

Select this option if you want to use the phmac digests for example to use dm-integrity with secure/protected keys.

CONFIG_S390_PRNG Pseudo random number generator device driver

  • Off
  • Module
  • Built in
Unknown

Select this option if you want to use the s390 pseudo random number generator. The PRNG is part of the cryptographic processor functions and uses triple-DES to generate secure random numbers like the ANSI X9.17 standard. User-space programs access the pseudo-random-number device through the char device /dev/prandom.

It is available as of z9.

CONFIG_CRYPTO_DEV_SL3516 Storlink SL3516 crypto offloader

  • Off
  • Module
  • Built in

This option allows you to have support for SL3516 crypto offloader.

If CRYPTO_DEV_SL3516

CONFIG_CRYPTO_DEV_SL3516_DEBUG Enable SL3516 stats

On

Say y to enable SL3516 debug stats. This will create /sys/kernel/debug/sl3516/stats for displaying the number of requests per algorithm and other internal stats.

If CRYPTO_DEV_HIFN_795X

CONFIG_CRYPTO_DEV_HIFN_795X_RNG HIFN 795x random number generator

Unknown

Select this option if you want to enable the random number generator on the HIFN 795x crypto adapters.

Includedrivers/crypto/caam/Kconfig Open file

CONFIG_CRYPTO_DEV_TALITOS Talitos Freescale Security Engine (SEC)

  • Off
  • Module
  • Built in
Unknown

Say 'Y' here to use the Freescale Security Engine (SEC) to offload cryptographic algorithm computation.

The Freescale SEC is present on PowerQUICC 'E' processors, such as the MPC8349E and MPC8548E.

To compile this driver as a module, choose M here: the module will be called talitos.

If CRYPTO_DEV_TALITOS

CONFIG_CRYPTO_DEV_PPC4XX Driver AMCC PPC4xx crypto accelerator

  • Off
  • Module
  • Built in
Unknown

This option allows you to have support for AMCC crypto acceleration.

If CRYPTO_DEV_PPC4XX

CONFIG_CRYPTO_DEV_OMAP Support for OMAP crypto HW accelerators

  • Off
  • Module
  • Built in

OMAP processors have various crypto HW accelerators. Select this if you want to use the OMAP modules for any of the crypto algorithms.

If CRYPTO_DEV_OMAP

CONFIG_CRYPTO_DEV_OMAP_SHAM Support for OMAP MD5/SHA1/SHA2 hw accelerator

  • Off
  • Module
  • Built in
Unknown

OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you want to use the OMAP module for MD5/SHA1/SHA2 algorithms.

CONFIG_CRYPTO_DEV_OMAP_AES Support for OMAP AES hw engine

  • Off
  • Module
  • Built in
Unknown

OMAP processors have AES module accelerator. Select this if you want to use the OMAP module for AES algorithms.

CONFIG_CRYPTO_DEV_OMAP_DES Support for OMAP DES/3DES hw engine

  • Off
  • Module
  • Built in

OMAP processors have DES/3DES module accelerator. Select this if you want to use the OMAP module for DES and 3DES algorithms. Currently the ECB and CBC modes of operation are supported by the driver. Also accesses made on unaligned boundaries are supported.

CONFIG_CRYPTO_DEV_S5P Support for Samsung S5PV210/Exynos crypto accelerator

  • Off
  • Module
  • Built in

This option allows you to have support for S5P crypto acceleration. Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES algorithms execution.

If CRYPTO_DEV_S5P

CONFIG_CRYPTO_DEV_NX Support for IBM PowerPC Nest (NX) cryptographic acceleration

Unknown

This enables support for the NX hardware cryptographic accelerator coprocessor that is in IBM PowerPC P7+ or later processors. This does not actually enable any drivers, it only allows you to select which acceleration type (encryption and/or compression) to enable.

If CRYPTO_DEV_NX

Includedrivers/crypto/nx/Kconfig Open file

CONFIG_CRYPTO_DEV_ATMEL_AUTHENC Support for Atmel IPSEC/SSL hw accelerator

On

Some Atmel processors can combine the AES and SHA hw accelerators to enhance support of IPSEC/SSL. Select this if you want to use the Atmel modules for authenc(hmac(shaX),Y(cbc)) algorithms.

CONFIG_CRYPTO_DEV_ATMEL_AES Support for Atmel AES hw accelerator

  • Off
  • Module
  • Built in

Some Atmel processors have AES hw accelerator. Select this if you want to use the Atmel module for AES algorithms.

To compile this driver as a module, choose M here: the module will be called atmel-aes.

CONFIG_CRYPTO_DEV_ATMEL_TDES Support for Atmel DES/TDES hw accelerator

  • Off
  • Module
  • Built in

Some Atmel processors have DES/TDES hw accelerator. Select this if you want to use the Atmel module for DES/TDES algorithms.

To compile this driver as a module, choose M here: the module will be called atmel-tdes.

CONFIG_CRYPTO_DEV_ATMEL_SHA Support for Atmel SHA hw accelerator

  • Off
  • Module
  • Built in

Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512 hw accelerator. Select this if you want to use the Atmel module for SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.

To compile this driver as a module, choose M here: the module will be called atmel-sha.

CONFIG_CRYPTO_DEV_ATMEL_SHA204A Support for Microchip / Atmel SHA accelerator and RNG

  • Off
  • Module
  • Built in

Microchip / Atmel SHA accelerator and RNG. Select this if you want to use the Microchip / Atmel SHA204A module as a random number generator. (Other functions of the chip are currently not exposed by this driver)

To compile this driver as a module, choose M here: the module will be called atmel-sha204a.

CONFIG_CRYPTO_DEV_CCP Support for AMD Secure Processor

On

The AMD Secure Processor provides support for the Cryptographic Coprocessor (CCP) and the Platform Security Processor (PSP) devices.

If CRYPTO_DEV_CCP

Includedrivers/crypto/ccp/Kconfig Open file

CONFIG_CRYPTO_DEV_MXS_DCP Support for Freescale MXS DCP

  • Off
  • Module
  • Built in
Unknown

The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB co-processor on the die.

To compile this driver as a module, choose M here: the module will be called mxs-dcp.

Includedrivers/crypto/cavium/cpt/Kconfig Open file
Includedrivers/crypto/cavium/nitrox/Kconfig Open file
Includedrivers/crypto/marvell/Kconfig Open file
Includedrivers/crypto/intel/Kconfig Open file

CONFIG_CRYPTO_DEV_QCE Qualcomm crypto engine accelerator

  • Off
  • Module
  • Built in

This driver supports Qualcomm crypto engine accelerator hardware. To compile this driver as a module, choose M here. The module will be called qcrypto.

This driver does not have exclusive access to the hardware, causing races with the secure world. It is also slower than the CPU.

If CRYPTO_DEV_QCE

Algorithms enabled for QCE acceleration

This option allows to choose whether to build support for all algorithms (default), hashes-only, or skciphers-only.

The QCE engine does not appear to scale as well as the CPU to handle multiple crypto requests. While the ipq40xx chips have 4-core CPUs, the QCE handles only 2 requests in parallel.

Ipsec throughput seems to improve when disabling either family of algorithms, sharing the load with the CPU. Enabling skciphers-only appears to work best.

End of Algorithms enabled for QCE acceleration

CONFIG_CRYPTO_DEV_QCE_SW_MAX_LEN Default maximum request size to use software for AES

This sets the default maximum request size to perform AES requests using software instead of the crypto engine. It can be changed by setting the aes_sw_max_len parameter.

Small blocks are processed faster in software than hardware. Considering the 256-bit ciphers, software is 2-3 times faster than qce at 256-bytes, 30% faster at 512, and about even at 768-bytes. With 128-bit keys, the break-even point would be around 1024-bytes.

The default is set a little lower, to 512 bytes, to balance the cost in CPU usage. The minimum recommended setting is 16-bytes (1 AES block), since AES-GCM will fail if you set it lower. Setting this to zero will send all requests to the hardware.

Note that 192-bit keys are not supported by the hardware and are always processed by the software fallback, and all DES requests are done by the hardware.

CONFIG_CRYPTO_DEV_IMGTEC_HASH Imagination Technologies hardware hash accelerator

  • Off
  • Module
  • Built in

This driver interfaces with the Imagination Technologies hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256 hashing algorithms.

CONFIG_CRYPTO_DEV_ROCKCHIP Rockchip's Cryptographic Engine driver

  • Off
  • Module
  • Built in
Unknown

This driver interfaces with the hardware crypto accelerator. Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.

If CRYPTO_DEV_ROCKCHIP

CONFIG_CRYPTO_DEV_ROCKCHIP_DEBUG Enable Rockchip crypto stats

Unknown

Say y to enable Rockchip crypto debug stats. This will create /sys/kernel/debug/rk3288_crypto/stats for displaying the number of requests per algorithm and other internal stats.

CONFIG_CRYPTO_DEV_ZYNQMP_AES Support for Xilinx ZynqMP AES hw accelerator

  • Off
  • Module
  • Built in

Xilinx ZynqMP has AES-GCM engine used for symmetric key encryption and decryption. This driver interfaces with AES hw accelerator. Select this if you want to use the ZynqMP module for AES algorithms.

Includedrivers/crypto/chelsio/Kconfig Open file
Includedrivers/crypto/virtio/Kconfig Open file

CONFIG_CRYPTO_DEV_BCM_SPU Broadcom symmetric crypto/hash acceleration support

  • Off
  • Module
  • Built in
Unknown

This driver provides support for Broadcom crypto acceleration using the Secure Processing Unit (SPU). The SPU driver registers skcipher, ahash, and aead algorithms with the kernel cryptographic API.

Includedrivers/crypto/stm32/Kconfig Open file

CONFIG_CRYPTO_DEV_SAFEXCEL Inside Secure's SafeXcel cryptographic engine driver

  • Off
  • Module
  • Built in

This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic engines designed by Inside Secure. It currently accelerates DES, 3DES and AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256, SHA384 and SHA512 hash algorithms for both basic hash and HMAC. Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.

CONFIG_CRYPTO_DEV_ARTPEC6 Support for Axis ARTPEC-6/7 hardware crypto acceleration.

  • Off
  • Module
  • Built in
Unknown

Enables the driver for the on-chip crypto accelerator of Axis ARTPEC SoCs.

To compile this driver as a module, choose M here.

CONFIG_CRYPTO_DEV_CCREE Support for ARM TrustZone CryptoCell family of security processors

  • Off
  • Module
  • Built in

Say 'Y' to enable a driver for the REE interface of the Arm TrustZone CryptoCell family of processors. Currently the CryptoCell 713, 703, 712, 710 and 630 are supported. Choose this if you wish to use hardware acceleration of cryptographic operations on the system REE. If unsure say Y.

Includedrivers/crypto/hisilicon/Kconfig Open file
Includedrivers/crypto/amlogic/Kconfig Open file

CONFIG_CRYPTO_DEV_SA2UL Support for TI security accelerator

  • Off
  • Module
  • Built in

K3 devices include a security accelerator engine that may be used for crypto offload. Select this if you want to use hardware acceleration for cryptographic algorithms on these devices.

Includedrivers/crypto/aspeed/Kconfig Open file
Includedrivers/crypto/starfive/Kconfig Open file
Includedrivers/crypto/inside-secure/eip93/Kconfig Open file
Includedrivers/crypto/ti/Kconfig Open file