Skip to content

Commit d6a72e2

Browse files
committed
PPC32 ARM ASM SHA-256: SPE impl, tidy up original
Implement using SPE instructions that allow for 64-bit registers as a vector of 2 32-bit values. Tidy up original implementation to not use stack.
1 parent ff80d62 commit d6a72e2

3 files changed

Lines changed: 7546 additions & 2598 deletions

File tree

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3564,6 +3564,9 @@ then
35643564
small)
35653565
ENABLED_PPC32_ASM_SMALL=yes
35663566
;;
3567+
spe)
3568+
ENABLED_PPC32_ASM_SPE=yes
3569+
;;
35673570
*)
35683571
AC_MSG_ERROR([Invalid RISC-V option [yes,inline,small]: $ENABLED_PPC32_ASM.])
35693572
break
@@ -3584,6 +3587,10 @@ if test "$ENABLED_PPC32_ASM_SMALL" = "yes"; then
35843587
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_PPC32_ASM_SMALL"
35853588
AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_PPC32_ASM_SMALL"
35863589
fi
3590+
if test "$ENABLED_PPC32_ASM_SPE" = "yes"; then
3591+
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_PPC32_ASM_SPE"
3592+
AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_PPC32_ASM_SPE"
3593+
fi
35873594

35883595
# Xilinx hardened crypto
35893596
AC_ARG_ENABLE([xilinx],

0 commit comments

Comments
 (0)