From 465a3fac1584648e0762a7ac8e4f52946a1e7a1a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 1 Jan 2023 15:12:19 +0000 Subject: [PATCH] add -mno-altivec option to xchacha20 test --- crypto/chacha20/Makefile.cross | 4 +++- crypto/chacha20/src/xchacha20.c | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/chacha20/Makefile.cross b/crypto/chacha20/Makefile.cross index fb79bb85..178cbeab 100755 --- a/crypto/chacha20/Makefile.cross +++ b/crypto/chacha20/Makefile.cross @@ -5,7 +5,7 @@ AS = $(CROSS)as CC = $(CROSS)gcc LD = $(CROSS)ld OBJCOPY = $(CROSS)objcopy -CFLAGS = -O3 -Wall -Wextra -mno-vsx +CFLAGS = -O3 -Wall -Wextra -mno-vsx -mno-altivec AFLAGS ?= -mpwr9 @@ -37,3 +37,5 @@ tests: $(OBJ) ls -altr chacha20.sh ./chacha20.sh $$i $$DUMP$$i || exit 1; +clean: + rm $(OBJ) $(OBJECTS) diff --git a/crypto/chacha20/src/xchacha20.c b/crypto/chacha20/src/xchacha20.c index aa9c9043..2b29f60b 100644 --- a/crypto/chacha20/src/xchacha20.c +++ b/crypto/chacha20/src/xchacha20.c @@ -130,8 +130,6 @@ void xchacha_encrypt_bytes(XChaCha_ctx *ctx, const uint8_t *m, uint8_t *c, uint3 uint8_t tmp[64]; uint32_t i; - return; - if (!bytes) return; j0 = ctx->input[0]; -- 2.30.2