add -mno-altivec option to xchacha20 test
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 1 Jan 2023 15:12:19 +0000 (15:12 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 1 Jan 2023 15:12:25 +0000 (15:12 +0000)
crypto/chacha20/Makefile.cross
crypto/chacha20/src/xchacha20.c

index fb79bb85d12109c30b65aa9dc3bc46b3af1651f1..178cbeab893ee2475925115c22bf412e29c1c311 100755 (executable)
@@ -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)
index aa9c9043218e76bb00e0e9b69a034eee8bbd3b6e..2b29f60b431ac82d12a4c29e8e1fb6ca9ed57a6c 100644 (file)
@@ -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];