Skip to content

Commit b42519d

Browse files
Danny Tsenherbertx
authored andcommitted
crypto: ppc/curve25519 - Update Kconfig and Makefile for ppc64le
Defined CRYPTO_CURVE25519_PPC64 to support X25519 for ppc64le. Added new module curve25519-ppc64le for X25519. Signed-off-by: Danny Tsen <dtsen@linux.ibm.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent a1bfed3 commit b42519d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

arch/powerpc/crypto/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
menu "Accelerated Cryptographic Algorithms for CPU (powerpc)"
44

5+
config CRYPTO_CURVE25519_PPC64
6+
tristate "Public key crypto: Curve25519 (PowerPC64)"
7+
depends on PPC64 && CPU_LITTLE_ENDIAN
8+
select CRYPTO_LIB_CURVE25519_GENERIC
9+
select CRYPTO_ARCH_HAVE_LIB_CURVE25519
10+
help
11+
Curve25519 algorithm
12+
13+
Architecture: PowerPC64
14+
- Little-endian
15+
516
config CRYPTO_CRC32C_VPMSUM
617
tristate "CRC32c"
718
depends on PPC64 && ALTIVEC

arch/powerpc/crypto/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ obj-$(CONFIG_CRYPTO_AES_GCM_P10) += aes-gcm-p10-crypto.o
1717
obj-$(CONFIG_CRYPTO_CHACHA20_P10) += chacha-p10-crypto.o
1818
obj-$(CONFIG_CRYPTO_POLY1305_P10) += poly1305-p10-crypto.o
1919
obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o
20+
obj-$(CONFIG_CRYPTO_CURVE25519_PPC64) += curve25519-ppc64le.o
2021

2122
aes-ppc-spe-y := aes-spe-core.o aes-spe-keys.o aes-tab-4k.o aes-spe-modes.o aes-spe-glue.o
2223
md5-ppc-y := md5-asm.o md5-glue.o
@@ -29,6 +30,7 @@ aes-gcm-p10-crypto-y := aes-gcm-p10-glue.o aes-gcm-p10.o ghashp10-ppc.o aesp10-p
2930
chacha-p10-crypto-y := chacha-p10-glue.o chacha-p10le-8x.o
3031
poly1305-p10-crypto-y := poly1305-p10-glue.o poly1305-p10le_64.o
3132
vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o
33+
curve25519-ppc64le-y := curve25519-ppc64le-core.o curve25519-ppc64le_asm.o
3234

3335
ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
3436
override flavour := linux-ppc64le

0 commit comments

Comments
 (0)