From 3fc924b97934eda75fffff0c561b3d180ae290a6 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 1 Sep 2016 19:09:50 -0400 Subject: Correct macro check --- src/lib/stream/chacha/chacha.cpp | 2 +- src/lib/stream/chacha/chacha.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/stream/chacha/chacha.cpp b/src/lib/stream/chacha/chacha.cpp index fa8f48142..c35363112 100644 --- a/src/lib/stream/chacha/chacha.cpp +++ b/src/lib/stream/chacha/chacha.cpp @@ -22,7 +22,7 @@ void ChaCha::chacha_x4(byte output[64*4], u32bit input[16], size_t rounds) { BOTAN_ASSERT(rounds % 2 == 0, "Valid rounds"); -#if defined(BOTAN_TARGET_SUPPORTS_SSE2) +#if defined(BOTAN_HAS_CHACHA_SSE2) if(CPUID::has_sse2()) { return ChaCha::chacha_sse2_x4(output, input, rounds); diff --git a/src/lib/stream/chacha/chacha.h b/src/lib/stream/chacha/chacha.h index 34b8bbb87..e4d4ae60e 100644 --- a/src/lib/stream/chacha/chacha.h +++ b/src/lib/stream/chacha/chacha.h @@ -51,7 +51,7 @@ class BOTAN_DLL ChaCha final : public StreamCipher void chacha_x4(byte output[64*4], u32bit state[16], size_t rounds); -#if defined(BOTAN_TARGET_SUPPORTS_SSE2) +#if defined(BOTAN_HAS_CHACHA_SSE2) void chacha_sse2_x4(byte output[64*4], u32bit state[16], size_t rounds); #endif -- cgit v1.2.3