From f78e5e3fbd87d2e903f5ff4a230b65ac6d44f281 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 5 Nov 2014 11:58:49 +0000 Subject: These should be template specializations --- src/lib/utils/xor_buf.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/utils/xor_buf.h b/src/lib/utils/xor_buf.h index 3c348659e..20ca211c2 100644 --- a/src/lib/utils/xor_buf.h +++ b/src/lib/utils/xor_buf.h @@ -68,7 +68,8 @@ template void xor_buf(T out[], #if BOTAN_TARGET_UNALIGNED_MEMORY_ACCESS_OK -inline void xor_buf(byte out[], const byte in[], size_t length) +template<> +inline void xor_buf(byte out[], const byte in[], size_t length) { while(length >= 8) { @@ -80,10 +81,11 @@ inline void xor_buf(byte out[], const byte in[], size_t length) out[i] ^= in[i]; } -inline void xor_buf(byte out[], - const byte in[], - const byte in2[], - size_t length) +template<> +inline void xor_buf(byte out[], + const byte in[], + const byte in2[], + size_t length) { while(length >= 8) { -- cgit v1.2.3