diff options
author | lloyd <[email protected]> | 2009-12-23 00:16:11 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-23 00:16:11 +0000 |
commit | 1e094832bcdf416ec86ea2cf992f9fe5c4871a08 (patch) | |
tree | 11a0f115b3afbd72df6ef007aa9967ba924d91d7 /src/utils | |
parent | 773fd2d974ab9377505fa07dffd75aaade56ecac (diff) |
Use unaligned reads/writes in xor_buf.h - bad macro name!
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/xor_buf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/xor_buf.h b/src/utils/xor_buf.h index 39c4a493d..0d7d587c8 100644 --- a/src/utils/xor_buf.h +++ b/src/utils/xor_buf.h @@ -22,7 +22,7 @@ inline void xor_buf(byte out[], const byte in[], u32bit length) { while(length >= 8) { -#if BOTAN_UNALIGNED_MEMORY_ACCESS_OK +#if BOTAN_TARGET_UNALIGNED_MEMORY_ACCESS_OK *reinterpret_cast<u64bit*>(out) ^= *reinterpret_cast<const u64bit*>(in); #else out[0] ^= in[0]; out[1] ^= in[1]; @@ -51,7 +51,7 @@ inline void xor_buf(byte out[], { while(length >= 8) { -#if BOTAN_UNALIGNED_MEMORY_ACCESS_OK +#if BOTAN_TARGET_UNALIGNED_MEMORY_ACCESS_OK *reinterpret_cast<u64bit*>(out) = *reinterpret_cast<const u64bit*>(in) ^ *reinterpret_cast<const u64bit*>(in2); |