aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-11-05 11:58:49 +0000
committerlloyd <[email protected]>2014-11-05 11:58:49 +0000
commitf78e5e3fbd87d2e903f5ff4a230b65ac6d44f281 (patch)
treec4889993bf20373679788afeeab136670d211a9a /src/lib/utils
parent3c3c28d9bf8dca1d46fb25204b038643a9ec7d5d (diff)
These should be template specializations
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/xor_buf.h12
1 files changed, 7 insertions, 5 deletions
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<typename T> 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>(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>(byte out[],
+ const byte in[],
+ const byte in2[],
+ size_t length)
{
while(length >= 8)
{