diff --git a/GNUmakefile b/GNUmakefile index fc4b756c..31b4fcdb 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -391,13 +391,6 @@ endif # ELF/ELF64 endif # CXXFLAGS endif # Gold -# Aligned access testing. Issue 'make aligned'. -ifneq ($(filter align aligned,$(MAKECMDGOALS)),) -ifeq ($(findstring -DCRYPTOPP_NO_UNALIGNED_DATA_ACCESS,$(CXXFLAGS)),) -CXXFLAGS += -DCRYPTOPP_NO_UNALIGNED_DATA_ACCESS -endif # CXXFLAGS -endif # Aligned access - # GCC code coverage. Issue 'make coverage'. ifneq ($(filter coverage,$(MAKECMDGOALS)),) ifeq ($(findstring -coverage,$(CXXFLAGS)),) @@ -522,8 +515,8 @@ deps GNUmakefile.deps: $(CXX) $(strip $(CXXFLAGS)) -MM *.cpp > GNUmakefile.deps # CXXFLAGS are tuned earlier. -.PHONY: asan ubsan align aligned -asan ubsan align aligned: libcryptopp.a cryptest.exe +.PHONY: asan ubsan +asan ubsan: libcryptopp.a cryptest.exe # CXXFLAGS are tuned earlier. Applications must use linker flags # -Wl,--gc-sections (Linux and Unix) or -Wl,-dead_strip (OS X) diff --git a/blake2.cpp b/blake2.cpp index dd9de2e5..5d3154fb 100644 --- a/blake2.cpp +++ b/blake2.cpp @@ -28,7 +28,7 @@ NAMESPACE_BEGIN(CryptoPP) inline __m128i MM_SET_EPI64X(const word64 a, const word64 b) { const word64 t[2] = {b,a}; __m128i r; - memcpy(&r, &t, sizeof(r)); + memcpy(&r, &t, sizeof(t)); return r; } #else @@ -3905,7 +3905,6 @@ static void BLAKE2_NEON_Compress64(const byte* input, BLAKE2_State #define BLAKE2B_LOAD_MSG_9_4(b0, b1) \ do { b0 = vextq_u64(m5, m7, 1); b1 = vcombine_u64(vget_low_u64(m6), vget_low_u64(m0)); } while(0) - #undef BLAKE2B_LOAD_MSG_10_1 #define BLAKE2B_LOAD_MSG_10_1(b0, b1) \ do { b0 = vcombine_u64(vget_low_u64(m0), vget_low_u64(m1)); b1 = vcombine_u64(vget_low_u64(m2), vget_low_u64(m3)); } while(0)