Skip to content

Commit

Permalink
Do not use stitched AES-GCM implementation on PPC32
Browse files Browse the repository at this point in the history
The implementation is not usable there at all.
Fixes openssl#21301
  • Loading branch information
t8m committed Jun 28, 2023
1 parent f41c712 commit 1348861
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crypto/modes/build.info
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ IF[{- !$disabled{asm} -}]
$MODESDEF_parisc20_64=$MODESDEF_parisc11

$MODESASM_ppc32=ghashp8-ppc.s
IF[{- $target{sys_id} ne "AIX" && $target{sys_id} ne "MACOSX" -}]
$MODESASM_ppc32=ghashp8-ppc.s aes-gcm-ppc.s
ENDIF
$MODESDEF_ppc32=
$MODESASM_ppc64=$MODESASM_ppc32
IF[{- $target{sys_id} ne "AIX" && $target{sys_id} ne "MACOSX" -}]
$MODESASM_ppc64=$MODESASM_ppc32 aes-gcm-ppc.s
ENDIF
$MODESDEF_ppc64=$MODESDEF_ppc32

$MODESASM_c64xplus=ghash-c64xplus.s
Expand Down
2 changes: 1 addition & 1 deletion providers/implementations/ciphers/cipher_aes_gcm_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static const PROV_GCM_HW aes_gcm = {
# include "cipher_aes_gcm_hw_t4.inc"
#elif defined(AES_PMULL_CAPABLE) && defined(AES_GCM_ASM)
# include "cipher_aes_gcm_hw_armv8.inc"
#elif defined(PPC_AES_GCM_CAPABLE)
#elif defined(PPC_AES_GCM_CAPABLE) && defined(_ARCH_PPC64)
# include "cipher_aes_gcm_hw_ppc.inc"
#elif defined(RV64I_ZKND_ZKNE_CAPABLE)
# include "cipher_aes_gcm_hw_rv64i_zknd_zkne.inc"
Expand Down

0 comments on commit 1348861

Please sign in to comment.