Skip to content

Commit 5068c7a

Browse files
klassertherbertx
authored andcommitted
crypto: pcrypt - Add pcrypt crypto parallelization wrapper
This patch adds a parallel crypto template that takes a crypto algorithm and converts it to process the crypto transforms in parallel. For the moment only aead algorithms are supported. Signed-off-by: Steffen Klassert <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 16295be commit 5068c7a

File tree

4 files changed

+507
-0
lines changed

4 files changed

+507
-0
lines changed

crypto/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ config CRYPTO_NULL
114114
help
115115
These are 'Null' algorithms, used by IPsec, which do nothing.
116116

117+
config CRYPTO_PCRYPT
118+
tristate "Parallel crypto engine (EXPERIMENTAL)"
119+
depends on SMP && EXPERIMENTAL
120+
select PADATA
121+
select CRYPTO_MANAGER
122+
select CRYPTO_AEAD
123+
help
124+
This converts an arbitrary crypto algorithm into a parallel
125+
algorithm that executes in kernel threads.
126+
117127
config CRYPTO_WORKQUEUE
118128
tristate
119129

crypto/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ obj-$(CONFIG_CRYPTO_XTS) += xts.o
5656
obj-$(CONFIG_CRYPTO_CTR) += ctr.o
5757
obj-$(CONFIG_CRYPTO_GCM) += gcm.o
5858
obj-$(CONFIG_CRYPTO_CCM) += ccm.o
59+
obj-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o
5960
obj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o
6061
obj-$(CONFIG_CRYPTO_DES) += des_generic.o
6162
obj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o

0 commit comments

Comments
 (0)