Skip to content

Commit

Permalink
Bug 1613235 - Add POWER ChaCha20 stream cipher vector acceleration. r…
Browse files Browse the repository at this point in the history
…=bbeurdouche

Differential Revision: https://phabricator.services.mozilla.com/D107220

--HG--
extra : moz-landing-system : lando
  • Loading branch information
aoeuh committed Mar 10, 2021
1 parent 78579dc commit fcf26d1
Show file tree
Hide file tree
Showing 6 changed files with 1,199 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/freebl/Makefile
Expand Up @@ -298,6 +298,8 @@ ifdef USE_64
PPC_ABI := $(shell $(CC) -dM -E - < /dev/null | awk '$$2 == "_CALL_ELF" {print $$3}')
ifeq ($(PPC_ABI),2)
ASFILES += sha512-p8.s
EXTRA_SRCS += chacha20poly1305-ppc.c
ASFILES += chacha20-ppc64le.s
endif
endif # USE_64
endif # ppc
Expand Down Expand Up @@ -762,6 +764,7 @@ $(OBJDIR)/$(PROG_PREFIX)gcm$(OBJ_SUFFIX): CFLAGS += -mcrypto -maltivec -mvsx
$(OBJDIR)/$(PROG_PREFIX)rijndael$(OBJ_SUFFIX): CFLAGS += -mcrypto -maltivec -mvsx
$(OBJDIR)/$(PROG_PREFIX)sha512$(OBJ_SUFFIX): CFLAGS += -mcrypto -maltivec -mvsx \
-funroll-loops -fpeel-loops
$(OBJDIR)/$(PROG_PREFIX)chacha20poly1305-ppc$(OBJ_SUFFIX): CFLAGS += -mcrypto -maltivec -mvsx
endif
endif

Expand Down

0 comments on commit fcf26d1

Please sign in to comment.