Skip to content

Commit 32788b8

Browse files
author
Mamatha Inamdar
committed
crypto: ppc/curve25519 - Update Kconfig and Makefile for ppc64le
JIRA: https://issues.redhat.com/browse/RHEL-52758 commit b42519d Author: Danny Tsen <dtsen@linux.ibm.com> Date: Thu May 16 11:19:57 2024 -0400 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> Signed-off-by: Mamatha Inamdar <minamdar@redhat.com>
1 parent 40d4290 commit 32788b8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

arch/powerpc/crypto/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ obj-$(CONFIG_CRYPTO_VPMSUM_TESTER) += crc-vpmsum_test.o
1616
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
19+
obj-$(CONFIG_CRYPTO_CURVE25519_PPC64) += curve25519-ppc64le.o
1920

2021
aes-ppc-spe-y := aes-spe-core.o aes-spe-keys.o aes-tab-4k.o aes-spe-modes.o aes-spe-glue.o
2122
md5-ppc-y := md5-asm.o md5-glue.o
@@ -27,6 +28,7 @@ crct10dif-vpmsum-y := crct10dif-vpmsum_asm.o crct10dif-vpmsum_glue.o
2728
aes-gcm-p10-crypto-y := aes-gcm-p10-glue.o aes-gcm-p10.o ghashp10-ppc.o aesp10-ppc.o
2829
chacha-p10-crypto-y := chacha-p10-glue.o chacha-p10le-8x.o
2930
poly1305-p10-crypto-y := poly1305-p10-glue.o poly1305-p10le_64.o
31+
curve25519-ppc64le-y := curve25519-ppc64le-core.o curve25519-ppc64le_asm.o
3032

3133
quiet_cmd_perl = PERL $@
3234
cmd_perl = $(PERL) $< $(if $(CONFIG_CPU_LITTLE_ENDIAN), linux-ppc64le, linux-ppc64) > $@

crypto/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,14 @@ config CRYPTO_CRCT10DIF_PCLMUL
775775
'crct10dif-pclmul' module, which is faster when computing the
776776
crct10dif checksum as compared with the generic table implementation.
777777

778+
config CRYPTO_CURVE25519_PPC64
779+
tristate "Public key crypto: Curve25519 (PowerPC64)"
780+
depends on PPC64 && CPU_LITTLE_ENDIAN
781+
select CRYPTO_LIB_CURVE25519_GENERIC
782+
select CRYPTO_ARCH_HAVE_LIB_CURVE25519
783+
help
784+
Support curve25519 algorithm for PowerPC64 in little-endian mode.
785+
778786
config CRYPTO_CRCT10DIF_VPMSUM
779787
tristate "CRC32T10DIF powerpc64 hardware acceleration"
780788
depends on PPC64 && ALTIVEC && CRC_T10DIF

0 commit comments

Comments
 (0)